I'm fairly new to Drupal, but when trying to install a new module, I was instructed to clear the cache. Now, all of the styling on my website is missing and I don't know what to do.
-
What theme are you using?– NickyTheWrenchCommented Jun 9, 2016 at 20:06
-
A custom theme based HTML5 starter kit for Omega, @NickyTheWrench– Nicholas TomlinCommented Jun 9, 2016 at 20:28
-
There are many possible reasons why this can be happening - we must narrow it down. View the source of the webpage or inspect it with firebug. Check to see whether or not there are any CSS files being successfully loaded within the HEAD element. Did you recently setup SSL for the website? Also check yourtheme.info file located in root/sites/all/themes/yourtheme - check that the stylesheets are listed correctly there.– NickyTheWrenchCommented Jun 9, 2016 at 20:37
-
If I inspect element on the homepage of my site, I can find several resources that fail to load. These are all located in /sites/default/files/advagg_css and /sites/default/files/advagg_js. The error says that I am forbidden to access these files, but they do exist on the server.– Nicholas TomlinCommented Jun 9, 2016 at 20:48
-
Any luck with my answer below?– NickyTheWrenchCommented Jun 9, 2016 at 23:17
|
Show 2 more comments
1 Answer
The webserver must not have the correct permissions to access those CSS and JS files. You need to set the correct permissions on the /sites/default/files/css and /sites/default/files/js directories. Allow read access at the very least.
-
I ran
chmod -R 755 .
in each of the directories but to no avail. Commented Jun 10, 2016 at 13:26