Default page is not working since upgrate to 1.11.11

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
alexliard
New Member
New Member
Posts: 4
Joined: Fri Oct 03, 2014 9:10 pm

Default page is not working since upgrate to 1.11.11

Post by alexliard »

Hi,
We upgraded to CMSMS 1.11.11 and after the upgrade we are not able to use the default page anymore.

the page marked as default is for example home.

When browsing to 'http://oururl/home or 'http://oururl/index.php?page=home

nothing happen or I can a blank error page like if there was a dns issue.

All the other pages are working.

Can you help me ?

Regards,

Alex
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Default page is not working since upgrate to 1.11.11

Post by Jo Morg »

"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
alexliard
New Member
New Member
Posts: 4
Joined: Fri Oct 03, 2014 9:10 pm

Re: Default page is not working since upgrate to 1.11.11

Post by alexliard »

Thank you for this link, I agree my post was not detailled.

Here are more information:

I'm currently using CMSMS 1.11.11, PHP 5.3.29, mysql 5.5.34. I don't know which webserver as it is on a thirdparty server.

We upgraded recently from version 1.10. After the upgrade, we are not able to use the default page. There is no error message displayed. The only thing I can notice is that the server is sending a header containing a 301 moved permanently redirectling to http:/// (which I think this is the problem because http:/// points nowhere)

I don't know where this http:/// comes from.

I suspected the module Multi domains to be part of the problem but I disabled it and I'm experiencing the same Issue.

In order to workaround this I created a blank page and made it default. As my home screens are manage from the multi domain module the users never get redirected to the default page.

Howerer If I try to go on http://mydomain/mydefault or http://mydomain/index.php?page=mydefault I got a blank page.

Using dev tools in the browser I was able to see the request to be canceled and having the 301 redirect to http:///

Here is also the detail of the system information page:

----------------------------------------------
Cms Version: 1.11.11
Installed Modules:
CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.5
MenuManager: 1.8.6
MicroTiny: 1.2.7
ModuleManager: 1.5.8
News: 2.14.4
Search: 1.7.11
ThemeManager: 1.1.8
CGExtensions: 1.42.2
MleCMS: 1.11.4
FormBuilder: 0.7.3
MleDomains: 1.4
MultiDomains: 2.1.2
SiteMapMadeSimple: 1.2.8
TinyMCE: 2.9.12

Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 128000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:
phpversion: 5.3.29
md5_function: On (Vrai)
gd_version: 2
tempnam_function: On (Vrai)
magic_quotes_runtime: Off (Faux)
E_STRICT: 0
E_DEPRECATED: 8192
memory_limit: 256M
max_execution_time: 30
output_buffering: 4096
safe_mode: Off (Faux)
file_uploads: On (Vrai)
post_max_size: 128M
upload_max_filesize: 128M
session_save_path: /tmp (0700)
session_use_cookies: On (Vrai)
xml_function: On (Vrai)
xmlreader_class: On (Vrai)

Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.5.34
Server Db Grants: Trouvé un privilège "GRANT ALL" qui semble être adapté
Server Time Diff: Aucune différence de date du système de fichiers trouvées
Last edited by Jo Morg on Mon Oct 06, 2014 7:02 pm, edited 1 time in total.
Reason: Please avoid auto-link of pseudo links by using "Do not automatically parse URLs" checkbox option. Thanks.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Default page is not working since upgrate to 1.11.11

Post by Jo Morg »

alexliard wrote:I suspected the module Multi domains to be part of the problem but I disabled it and I'm experiencing the same Issue.
Actually it seems like you have installed both MleDomains 1.4 and MultiDomains 2.1.2, which may have that effect... it seems that you have 2 modules to do the same thing. Also check config.php and .htaccess for errors.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
alexliard
New Member
New Member
Posts: 4
Joined: Fri Oct 03, 2014 9:10 pm

Re: Default page is not working since upgrate to 1.11.11

Post by alexliard »

I just uninstalled and deleted MleDomain which is older than MultiDomains.

I still have a 301 with redirection to location: http:///

I looked at both config.php and .htaccess and cannot find any problem.

Here are the files (I blanked passwords and domain)

config.php:

<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'DBuser';
$config['db_password'] = 'DBpassword';
$config['db_name'] = 'DBName';
$config['db_prefix'] = 'cms_';
$config['db_port'] = 0;
$config['root_url'] = 'http://primarydomain';
$config['timezone'] = 'Europe/Paris';
$config['default_encoding'] = 'utf-8';
$config['url_rewriting'] = 'mod_rewrite';
$config['admin_url'] = 'https://primarydomain/adminfolder';
$config['max_upload_size'] = 15000000;
$config['ssl_url'] = 'https://primarydomain';
$config['debug'] = false;

switch(strtolower($_SERVER["HTTP_HOST"])) {
case "primarydomain":
$config['root_url'] = 'http://primarydomain';
$config['ssl_url'] = 'https://primarydomain';
break;
case "secondarydomain":
$config['root_url'] = 'http://secondarydomain';
$config['ssl_url'] = 'https://secondarydomain';
break;
}

?>

.htaccess:

Options +FollowSymLinks
RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Default page is not working since upgrate to 1.11.11

Post by Jo Morg »

Did you clear CMSMS cache? It may have some impact on the redirects.

Also I would comment out the following:

Code: Select all

#$config['root_url'] = 'http://primarydomain';
#$config['admin_url'] = 'https://primarydomain/adminfolder';
#$config['ssl_url'] = 'https://primarydomain';
/* *** TEMP OUT
switch(strtolower($_SERVER["HTTP_HOST"])) {
case "primarydomain":
$config['root_url'] = 'http://primarydomain';
$config['ssl_url'] = 'https://primarydomain';
break;
case "secondarydomain":
$config['root_url'] = 'http://secondarydomain';
$config['ssl_url'] = 'https://secondarydomain';
break;
}
****** 
*/ 
... to test if it works.

Additionally, MleCMS also may do redirects on some configurations, but make sure you have full backups before installing or uninstalling any module. Preferably just deactivate the module, instead of uninstalling it.
To further debug this you should also test the site without pretty URLs configured, and see if the site behavior changes. Also make sure you don't have any UDT with some kind of redirection on a template or page.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Default page is not working since upgrate to 1.11.11

Post by Jo Morg »

Just an afterthought: make sure the default page is set (maybe just set another one an set the default back); additionally go to the Site Admin->System Maintenance and in Database status check for errors, and on Cache and content tab check for errors too.
.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
alexliard
New Member
New Member
Posts: 4
Joined: Fri Oct 03, 2014 9:10 pm

Re: Default page is not working since upgrate to 1.11.11

Post by alexliard »

Hi,

I did the test to remove urlrewrite and commented the lines you suggested. Still not able to load default page.

I looked for errors in system maintenance for both database and cache, still nothing.

Is there a way to have a debug trace on the index.php page to see where it redirects to http:/// ?

Regards,

Alex
Locked

Return to “[locked] Installation, Setup and Upgrade”