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.

Installing SilverStripe

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

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

scripts and styles not loading


Reply

2 Posts   1346 Views

Avatar
MattyJ

16 May 2010 at 11:47pm (Last edited: 17 May 2010 12:21pm), Community Member, 11 Posts

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

### SILVERSTRIPE START ###
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>

<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]
</IfModule>
### SILVERSTRIPE END ###

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
Matt

Avatar
MattyJ

17 May 2010 at 10:01pm (Last edited: 17 May 2010 10:07pm), Community Member, 11 Posts

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