Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » scripts and styles not loading

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1
Go to End
Author Topic: 1339 Views
  • MattyJ
    Community Member
    11 Posts

    scripts and styles not loading Link to this post

    Hey I've just started playing around with 2.3.7 in a subdirectory and all working well apart from I can't get any scripts or styles for modules to load in the header of Page.ss. They were working earlier and I don't know why they aren't now. If I enter the full url for the scripts they show, so I know they are public (even when I'm logged out they work). I know I'm referencing them correctly. Checked permissions of folders and files and all are open. Flush, reloaded database...nothing.

    Do I need to create a security group and give access or something? Is there a problem with my htaccess file, don't know much about these but 'Deny from all' can't be good?:

    <Files *.ss>
    Order deny,allow
    Deny from all
    Allow from

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)

    RewriteCond %{REQUEST_URI} ^(.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]

    I've got some in a folder I created 'mysite/plugins/whatever.js', but even the layout styles aren't loading in my theme.

    Any ideas?
    Thanks heaps

  • MattyJ
    Community Member
    11 Posts

    Re: scripts and styles not loading Link to this post

    Thanks to those that viewed. They are all loading now, but I haven't touched anything since. Weird! I'm wondering if my shared host was having issues...or if I'm just a silly noob...

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.