Jump to:

22975 Posts in 11620 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » cms css not loading

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

Page: 1
Go to End
Author Topic: 1120 Views
  • CyrilTheLorus
    Avatar
    Community Member
    4 Posts

    cms css not loading Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: cms css not loading Link to this post

    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 ?)

  • CyrilTheLorus
    Avatar
    Community Member
    4 Posts

    Re: cms css not loading Link to this post

    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.

    1120 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.