By weblance on
I have encountered a strange problem on our newly released Drupal site. From time to time the CSS simply doesn't load for users who are not logged, and the pages are rendered completely without any styles. The problem has so far occured on Mac and Win platofrms, on a variety of browsers (IE, Firefox, Safari). Clearing cache and restarting browser does not help.
The problem does not occur every time but when it does happen it seems to happen for a few hours (which only ads to the mystery), and so far we haven't been able to track down the problem.
Anyone having similar experiences. Suggestions?
Comments
Similar experiences on CSS load failure
Hi Druzzle,
I have the same experience as you describe. Since your post is from some time ago did you find a solution?
Perhaps there is some script that has a problem loading, perhaps due to an external reference that can not be found temporarily. Something like Google maps or Google fonts. But I'm not sure.
Does anyone have some good advice?
Same here
I've experienced that several times as well. Only certain pages don't pick up any CSS at all. Usually after a while does it finally come back--so to me it seems like some cache is not clearing, but I don't understand why it clears for some pages but not others. Also I noticed that using drush to clear cache sometimes doesn't do the job. I have to go through the admin screen to clear cache to really get it to pick up the changes. But this time, even doing that did not work.
I also notice that this tends to happen more when the user is logged off.
Any findings thus far?
Same here!
Same here!
Drupal 6.22
Haven't had any problems in years with it..
maybe i have the same
maybe i have the same problems http://drupal.org/node/1192016
I don't think so, iamweber,
I don't think so, iamweber, since in your case the css of the page in general is loading.
And that's not the case here: the problem is that the css is not loading at all, for the whole page.
This worked for me...
not sure if it'll work for others though. Tried clearing Drupal cache via drush and the admin interface. Clear browser cache. Turned off aggregation of CSS and JS files, turned off compression, turned off caching and cleared cache again. All with no results.
I noticed that the pages that did not load CSS still had some old coding in the template.php file that I had recently removed. Therefore, for some reason, those pages have not picked up the changes no matter how many times I refreshed and cleared all sorts of caches. That outdated piece of code was still sticking around so it had to be cached somewhere.
I finally cleared my server's varnish cache and that removed it clean. Refresh, and all my pages are up to date. Just remember to turn your caching back on, or else the site performance could be significantly compromised.
Still unclear as to why certain pages don't completely clear its cache when they're supposed to.