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?
Restriction with web host (Unable to use www.mysite.com/admin)
Re: Restriction with web host (Unable to use www.mysite.com/admin)
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)
I renamed the admin directory to administrator.
Re: Restriction with web host (Unable to use www.mysite.com/admin)
paste your config.php (without db passwords ofcourse)
-
Debon
Re: Restriction with web host (Unable to use www.mysite.com/admin)
Hello TSW,
Many thanks so far. CHEERS!!!
[gelöscht durch Administrator]
Many thanks so far. CHEERS!!!
[gelöscht durch Administrator]
Re: Restriction with web host (Unable to use www.mysite.com/admin)
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...
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)
==============SOLVED=======================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?
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.

