Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

cms css not loading


Reply

3 Posts   1217 Views

Avatar
CyrilTheLorus

5 May 2011 at 11:42pm Community Member, 4 Posts

Basically, the css files in /cms/css directory are not picked up by in the backend, viewing the content of them in firebug I get a 404 page from my own site. I recently had everything working on a staging site, but since moving to a live site the CMS is not loading properly. Paths are set properly because css is being picked up from sapphire directory and images are being picked up from the css/images directory. I am wondering if it has something to do with the .css?m=1234567890 number at the end of each link src.

Any help would be greatly appreciated, I've been trying to fix this for 3 days now.

Cyril

Avatar
Willr

6 May 2011 at 2:15pm Forum Moderator, 5511 Posts

Are the files actually on the filesystem? It could be that the cms/css folder was not migrated. Other thing to check is the permissions on the files - make sure they are readable by the webserver. The ?m=12 should not affect anything (but you could try without it, open the 404ing link in a new tab them remove after the ?)

Avatar
CyrilTheLorus

6 May 2011 at 3:23pm (Last edited: 6 May 2011 3:57pm), Community Member, 4 Posts

Thanks Willr,

It was the permissions, the folder and contents was 750. But now I've another problem in that is has overwritten my theme css, should I put empty layout and typography css' into my theme css folder or will that just take me back to my original problem of the css not loading in the cms?

Edit: Fixed, page.php was calling for the css from my theme (not layout and typography) but was loading them anyway.