Admin panel has no css

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
RichHamilton

Admin panel has no css

Post 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! :-\
Pierre M.

Re: Admin panel has no css

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

Re: Admin panel has no css

Post 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() ?
Last edited by RichHamilton on Sun Dec 16, 2007 9:05 pm, edited 1 time in total.
RichHamilton

Re: Admin panel has no css

Post by RichHamilton »

I have got round this by replacing the style.php file with a css file instead.
janspeer
New Member
New Member
Posts: 5
Joined: Fri Dec 28, 2007 3:36 pm

Re: Admin panel has no css

Post by janspeer »

Could you explain how you did this 'replacing the style.php by a css', i have the same problem
RichHamilton

Re: Admin panel has no css

Post 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.
cubix
Power Poster
Power Poster
Posts: 314
Joined: Mon Jul 09, 2007 10:00 am

Re: Admin panel has no css

Post 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.
Pierre M.

Re: Admin panel has no css

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

Re: Admin panel has no css

Post 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.
janspeer
New Member
New Member
Posts: 5
Joined: Fri Dec 28, 2007 3:36 pm

Re: Admin panel has no css

Post 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.
Steve_T
Forum Members
Forum Members
Posts: 30
Joined: Sun Dec 09, 2007 10:31 am

Re: Admin panel has no css

Post 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 ;D

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

Re: Admin panel has no css

Post 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..
Steve_T
Forum Members
Forum Members
Posts: 30
Joined: Sun Dec 09, 2007 10:31 am

Re: Admin panel has no css

Post 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.
Last edited by Steve_T on Sun Dec 30, 2007 12:26 pm, edited 1 time in total.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Admin panel has no css

Post 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.
Steve_T
Forum Members
Forum Members
Posts: 30
Joined: Sun Dec 09, 2007 10:31 am

Re: Admin panel has no css

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

Return to “[locked] Installation, Setup and Upgrade”