[SOLVED} New install problem

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
cantass
New Member
New Member
Posts: 4
Joined: Thu Mar 27, 2014 9:29 pm

[SOLVED} New install problem

Post by cantass »

Just downloaded CMSMS through Bitnami. Running on a Mac with OS X 10.9.4

On charging up and running application I get the following error:-

Notice: Undefined index: HTTPS in /Applications/mampstack-5.4.26-0/apps/cmsmadesimple/htdocs/config.php on line 13


This is the offending line:
if ($_SERVER['HTTPS'] == 'on') {
$config['root_url'] = 'https://' . $_SERVER['HTTP_HOST'] . '/cmsmadesimple';
} else {
$config['root_url'] = 'http://' . $_SERVER['HTTP_HOST'] . '/cmsmadesimple';
}


Being brand new at this any help would be appreciated

Brian
Last edited by cantass on Wed Sep 17, 2014 8:42 pm, edited 1 time in total.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1973
Joined: Mon Jan 29, 2007 4:47 pm

Re: New install problem

Post by Jo Morg »

cantass wrote:On charging up and running application I get the following error:-

Notice: Undefined index: HTTPS in /Applications/mampstack-5.4.26-0/apps/cmsmadesimple/htdocs/config.php on line 13
This is a notice, not an error, and (in this case) won't affect CMSMS in any way. You may need to change the error level of your server so that it doesn't display notices or warnings.
cantass wrote:This is the offending line:
if ($_SERVER['HTTPS'] == 'on') {
$config['root_url'] = 'https://' . $_SERVER['HTTP_HOST'] . '/cmsmadesimple';
} else {
$config['root_url'] = 'http://' . $_SERVER['HTTP_HOST'] . '/cmsmadesimple';
}
This line is not created by CMSMS normal install, and it shouldn't be needed at all, however if it is needed, a quick fix may eventually be this (note the @):

Code: Select all

if (@$_SERVER['HTTPS'] == 'on') {
$config['root_url'] = 'https://' . $_SERVER['HTTP_HOST'] . '/cmsmadesimple';
} else {
$config['root_url'] = 'http://' . $_SERVER['HTTP_HOST'] . '/cmsmadesimple';
}
"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!
cantass
New Member
New Member
Posts: 4
Joined: Thu Mar 27, 2014 9:29 pm

Re: New install problem

Post by cantass »

Thanks for the prompt response. I do not understand why this is not a normal CMSMS install (unless it is due to it being downloaded from Bitnami) as I have only just installed it.

Not the less, thanks for your help.

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

Re: [SOLVED} New install problem

Post by Jo Morg »

cantass wrote:I do not understand why this is not a normal CMSMS install (unless it is due to it being downloaded from Bitnami) as I have only just installed it.
I never tried Bitnami myself, but a stock install of CMSMS would create a config.php similar to this one:

Code: Select all

$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'hostname';
$config['db_username'] = '***************';
$config['db_password'] = '***************';
$config['db_name'] = 'dbname';
$config['db_prefix'] = 'cms_';
$config['timezone'] = 'Europe/Lisbon'; 
AFAIK, if there is already one created, CMSMS won't overwrite it, allowing one click installs or server auto install scrips to create a customized one.
Note: I also recommend to read the reference pdf that comes with CMSMS and which can be usually found on: <root_of_cmsms>/doc/CMSMS_config_reference.pdf
"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!
Post Reply

Return to “CMSMS Core”