Page 1 of 2
Admin panel has no css
Posted: Sat Dec 15, 2007 5:11 pm
by RichHamilton
I have installed and CMS and looks fine
But the Admin panel has no CSS and is just plain white in a list.
HOw can I fix this, I am using Invision Hostng and they have a funny way of doing PHP includes, could this be the problem? How do I fix?
Thanks!

Re: Admin panel has no css
Posted: Sun Dec 16, 2007 12:05 pm
by Pierre M.
Hello,
have you searched the forum before posting ?
Have you installed the picasa module ?
Have you switched debug to true to see the error message ?
Have you watched you http logS ?
Pierre M.
Re: Admin panel has no css
Posted: Sun Dec 16, 2007 8:22 pm
by RichHamilton
Ok, I have set deug to true and run the style.php file on it's own.
I got this error:
Warning: readfile() has been disabled for security reasons in
.... on line 28
So safe mode is on, my host won't turn it off, is there an alternative to readfile() ?
Re: Admin panel has no css
Posted: Sun Dec 16, 2007 9:43 pm
by RichHamilton
I have got round this by replacing the style.php file with a css file instead.
Re: Admin panel has no css
Posted: Fri Dec 28, 2007 4:12 pm
by janspeer
Could you explain how you did this 'replacing the style.php by a css', i have the same problem
Re: Admin panel has no css
Posted: Fri Dec 28, 2007 9:19 pm
by RichHamilton
Bit of a bodge, but I just copied the css file from the /admin/themes/default/css directory
renamed it as as style.php and saved it in the /admin directory
http://www.seoukexpert.com/admin/style.php
I'm sure there is a better solution, but it makes the system useable for now.
Re: Admin panel has no css
Posted: Fri Dec 28, 2007 9:51 pm
by cubix
losing the css formatting in the admin section has been documented a few times in this forum
the main reason ive seen is due to an incomplete file.
if its a fresh install, try uploading the latest version again with a decent ftp program (i use filezilla) or if it happened after changes. try removing all recently installed modules.
hope this helps.
Re: Admin panel has no css
Posted: Fri Dec 28, 2007 10:44 pm
by Pierre M.
As things tend to be answered several times here, feel free to improve the troubleshooting section of the documentation. You have write access to it with your forum account. Thanks in advance.
Have fun all with CMSms
Pierre M.
Re: Admin panel has no css
Posted: Sun Dec 30, 2007 10:14 am
by RichHamilton
There was no missing file.
It was because my hostng has safe mode enabled and apparently there is no way round this issue at the moment.
Re: Admin panel has no css
Posted: Sun Dec 30, 2007 10:50 am
by janspeer
Thanks RichHamilton
Your reply solved the issue:
Bit of a bodge, but I just copied the css file from the /admin/themes/default/css directory
renamed it as as style.php and saved it in the /admin directory
http://www.seoukexpert.com/admin/style.php
I'm sure there is a better solution, but it makes the system useable for now.
Re: Admin panel has no css
Posted: Sun Dec 30, 2007 11:36 am
by Steve_T
I am having the same problem and we seem to have dual threads running at the same time. In some forums that would have the admins beating us with a stick so I hope were safe here
I had this happen a couple of times on my test applications and I'm concerned that it has now happened on a "real" install. If it's a recurring prob for several people it seems to me it's some thing that needs to be addressed longterm.
I'd be interested to know why the style is in a php file and not a css file - sorry if thats a stupid question
Re: Admin panel has no css
Posted: Sun Dec 30, 2007 12:03 pm
by tsw
the styles come from php so that modules can put their own css through "hooks". There is also a setting in the backend for selecting different themes for the admin, this is also done in the the style.php file.
What error message you get if you browse directly into the style.php file?
What error messages are in the server logs?
what is the php max memory setting on your installation?
and yeah, two threads are annoying..
Re: Admin panel has no css
Posted: Sun Dec 30, 2007 12:16 pm
by Steve_T
Thanks for the explanation TSW - I can see now why installing a module killed off the style
I'll continue my quest for an answer in this thread and let the other one die
I will seek the answers to your questions and come back
[edit to add]
when I browse to
http://www.tvcm.co.uk/sites/margrovepar ... /style.php
in firefox I get nothing
in IE I get ....
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.
Re: Admin panel has no css
Posted: Sun Dec 30, 2007 12:33 pm
by tsw
and what about the apache error log?
you probably have php set so that it doesnt print errors on the page but only in the server log.
Re: Admin panel has no css
Posted: Sun Dec 30, 2007 1:46 pm
by Steve_T
from the error log. it appears that CAPCHA caused the prob but I'm not sure how to interpret the error. One thing does occur to me - perhaps a file is missing from the CAPCHA module - maybe I should DL the module and upload it manually
[Sun Dec 30 12:58:50 2007] [error] [client 86.145.214.79] PHP Warning: require_once(/var/www/vhosts/tvcm.co.uk/httpdocs/sites/margrovepark/modules/Captcha/lib/classes/module/class.captcha.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/vhosts/tvcm.co.uk/httpdocs/sites/margrovepark/modules/Captcha/Captcha.module.php on line 47
[Sun Dec 30 12:58:50 2007] [error] [client 86.145.214.79] PHP Fatal error: require_once() [function.require]: Failed opening required '/var/www/vhosts/tvcm.co.uk/httpdocs/sites/margrovepark/modules/Captcha/lib/classes/module/class.captcha.php' (include_path='.:/usr/share/pear') in /var/www/vhosts/tvcm.co.uk/httpdocs/sites/margrovepark/modules/Captcha/Captcha.module.php on line 47
with regard to PHP memory my server company tell me
In regards to the max memory that PHP can use, it's currently set to 16MB. This means that each time a script is run, it is allowed to use a maximum of 16MB of RAM. This can be modified, if the CMS requires more.