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

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.
Locked
Debon

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

Post 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?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

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

Post by tsw »

hmm where did you move the admin directory? and doublecheck config.php
Debon

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

Post by Debon »

I renamed the admin directory to administrator.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

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

Post by tsw »

paste your config.php (without db passwords ofcourse)
Debon

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

Post by Debon »

Hello TSW,

Many thanks so far. CHEERS!!!

[gelöscht durch Administrator]
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

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

Post 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...
Debon

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

Post 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.
Last edited by Debon on Mon Oct 02, 2006 2:32 am, edited 1 time in total.
Locked

Return to “CMSMS Core”