Page 1 of 1

[SOLVED] Error after changing admin dir in V1.10

Posted: Fri Oct 28, 2011 7:56 am
by hdriezen
Hi all,

I have a fresh install of CMSMS V1.10. After I change the admin-directory into something else, lets say 'foo'. And having added this code to config.php:

Code: Select all

$config['admin_dir'] = 'foo';
I get the following error when trying to enter the admin console via mysite.com/foo

Code: Select all

Warning: include(/www/l/m/j/lmjd.nl/public_html/admin/themes/default/login.php) [function.include]: failed to open stream: No such file or directory in /www/l/m/j/lmjd.nl/public_html/admin/login.php on line 314

Warning: include() [function.include]: Failed opening '/www/l/m/j/lmjd.nl/public_html/admin/themes/default/login.php' for inclusion (include_path='.:/usr/local/share/pear:/www/scripts/webshop:/www/scripts/public') in /www/l/m/j/lmjd.nl/public_html/admin/login.php on line 314
Seems like something is still pointing to the old admin directory.

Any thoughts?

Thanks!

Hans

Re: Error after changing admin dir in V1.10

Posted: Fri Oct 28, 2011 11:00 am
by M@rtijn
Did you also change the name of the folder on the server to 'foo'?

(Note that with every upgrade of the CMSms core you'll have to manually change the name of the folder and the admin_dir in the config.php file)

Re: Error after changing admin dir in V1.10

Posted: Fri Oct 28, 2011 4:12 pm
by hdriezen
M@rtijn wrote:Did you also change the name of the folder on the server to 'foo'?
I did indeed, I don' t really understand what's going wrong.
Never had any problems with updates. Today I updated another website from 1.9.3.4 to 1.10 and then changed the admin_dir and there was no problem.

Re: Error after changing admin dir in V1.10

Posted: Wed Nov 02, 2011 7:33 pm
by hdriezen
Looks like my root_path in config.php was incorrect...