Undefined array key "public_cache_location"
Posted: Fri May 30, 2025 2:23 am
Hi, I moved my CMSMS version 2.1.6 site to a different server using the backup/restore options in cPanel, including the database. I didn't know there was a guide at the time, but I also moved a WordPress installation using the same process, and that site works, so I believe my method is sound
I imported the database and recreated the user (with permissions) on the new server, edited the config.php file to reflect a slight change in db_name, but the site is only getting a generic HTTP Error 500 message.
I've double-checked my config settings and they are correct; it's a very basic setup with only these lines:
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = '**********';
$config['db_password'] = '**********';
$config['db_name'] = '**********';
$config['db_prefix'] = '**********';
$config['timezone'] = 'America/St_Johns';
$config['public_cache_location'].'/';
I have tried '/tmp/cache' on the last line but there was no difference.
I checked the error log in the root of the installation folder and this line is present whenever I refresh the site:
PHP Warning: Undefined array key "public_cache_location" in /home/*************/config.php on line 12
Can anyone help resolve this?
Thanks.
I imported the database and recreated the user (with permissions) on the new server, edited the config.php file to reflect a slight change in db_name, but the site is only getting a generic HTTP Error 500 message.
I've double-checked my config settings and they are correct; it's a very basic setup with only these lines:
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = '**********';
$config['db_password'] = '**********';
$config['db_name'] = '**********';
$config['db_prefix'] = '**********';
$config['timezone'] = 'America/St_Johns';
$config['public_cache_location'].'/';
I have tried '/tmp/cache' on the last line but there was no difference.
I checked the error log in the root of the installation folder and this line is present whenever I refresh the site:
PHP Warning: Undefined array key "public_cache_location" in /home/*************/config.php on line 12
Can anyone help resolve this?
Thanks.