Page 1 of 1

Restriction with web host (Unable to use www.mysite.com/admin)

Posted: Sat Sep 30, 2006 5:19 am
by Debon
Colleagues, I find myself in a very awkward position in that my webhost has advised that I am not able to use www.mysite.com/admin as the login screen for the site administrator as their front-end software uses that specific folder. With this in mind I have gone ahead and changed the admin_dir in the config.php file but whenever I log in as administrator I get the following messages:

Warning: AdminTheme::ShowHeader() [function.ShowHeader]: Unable to access /var/www/html/lib/classes/../../admin/lang/en_US/admin.inc.php in /var/www/html/lib/classes/class.admintheme.inc.php on line 1359

Warning: AdminTheme::ShowHeader(/var/www/html/lib/classes/../../admin/lang/en_US/admin.inc.php) [function.ShowHeader]: failed to open stream: No such file or directory in /var/www/html/lib/classes/class.admintheme.inc.php on line 1359

Warning: AdminTheme::ShowHeader() [function.include]: Failed opening '/var/www/html/lib/classes/../../admin/lang/en_US/admin.inc.php' for inclusion (include_path='/usr/lib/php:.') in /var/www/html/lib/classes/class.admintheme.inc.php on line 1359


I must advise though that the admin screen still comes up. This I know is not a CMSMS problem but has anyone else ever had this problem and how did you get around it?

Re: Restriction with web host (Unable to use www.mysite.com/admin)

Posted: Sat Sep 30, 2006 9:03 am
by tsw
hmm where did you move the admin directory? and doublecheck config.php

Re: Restriction with web host (Unable to use www.mysite.com/admin)

Posted: Sat Sep 30, 2006 12:03 pm
by Debon
I renamed the admin directory to administrator.

Re: Restriction with web host (Unable to use www.mysite.com/admin)

Posted: Sat Sep 30, 2006 5:54 pm
by tsw
paste your config.php (without db passwords ofcourse)

Re: Restriction with web host (Unable to use www.mysite.com/admin)

Posted: Sat Sep 30, 2006 10:17 pm
by Debon
Hello TSW,

Many thanks so far. CHEERS!!!

[gelöscht durch Administrator]

Re: Restriction with web host (Unable to use www.mysite.com/admin)

Posted: Sat Sep 30, 2006 11:07 pm
by tsw
hmm, just tested with svn version and amin works fine after renaming to administrator...

and I cant see anything wrong with your config.php (assuming that /kareempanton.net/home/kareempanto... is the right path)

if you login to your account with ssh and issue "pwd" command what does it tell you?

those paths in config.php could be wrong...

Re: Restriction with web host (Unable to use www.mysite.com/admin)

Posted: Mon Oct 02, 2006 2:30 am
by Debon
Debon wrote: Colleagues, I find myself in a very awkward position in that my webhost has advised that I am not able to use www.mysite.com/admin as the login screen for the site administrator as their front-end software uses that specific folder. With this in mind I have gone ahead and changed the admin_dir in the config.php file but whenever I log in as administrator I get the following messages:

Warning: AdminTheme::ShowHeader() [function.ShowHeader]: Unable to access /var/www/html/lib/classes/../../admin/lang/en_US/admin.inc.php in /var/www/html/lib/classes/class.admintheme.inc.php on line 1359

Warning: AdminTheme::ShowHeader(/var/www/html/lib/classes/../../admin/lang/en_US/admin.inc.php) [function.ShowHeader]: failed to open stream: No such file or directory in /var/www/html/lib/classes/class.admintheme.inc.php on line 1359

Warning: AdminTheme::ShowHeader() [function.include]: Failed opening '/var/www/html/lib/classes/../../admin/lang/en_US/admin.inc.php' for inclusion (include_path='/usr/lib/php:.') in /var/www/html/lib/classes/class.admintheme.inc.php on line 1359


I must advise though that the admin screen still comes up. This I know is not a CMSMS problem but has anyone else ever had this problem and how did you get around it?
==============SOLVED=======================

Hello Coleagues,

As explained earlier, after renaming the "admin" folder to "administrator" I got the above warning messages and I was kinda confused, however after closer scrutiny, I saw the cause. If you look at the quotes above you will notice that in the URL for class.admintheme.inc.php there is the original "admin" foilder name, see the highlighted portion of the URLs. All I had to do was locate line 1359 in program class.admintheme.inc.php and change it from admin to administrator and that solved the problem.