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

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
hdriezen
Forum Members
Forum Members
Posts: 78
Joined: Fri Dec 17, 2010 7:59 am

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

Post 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
Last edited by hdriezen on Wed Nov 02, 2011 7:34 pm, edited 2 times in total.
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm

Re: Error after changing admin dir in V1.10

Post 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)
Make your community a better place!
hdriezen
Forum Members
Forum Members
Posts: 78
Joined: Fri Dec 17, 2010 7:59 am

Re: Error after changing admin dir in V1.10

Post 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.
hdriezen
Forum Members
Forum Members
Posts: 78
Joined: Fri Dec 17, 2010 7:59 am

Re: Error after changing admin dir in V1.10

Post by hdriezen »

Looks like my root_path in config.php was incorrect...
Post Reply

Return to “CMSMS Core”