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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Installing SilverStripe /

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

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

scripts and styles not loading

Go to End

2 Posts   1604 Views


Community Member, 11 Posts

16 May 2010 at 11:47pm

Edited: 17/05/2010 12:21pm

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


Community Member, 11 Posts

17 May 2010 at 10:01pm

Edited: 17/05/2010 10:07pm

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