Page 1 of 1
Not loading stylesheet
Posted: Thu Nov 25, 2010 6:54 pm
by RobM
I am getting past frustrated.
I've been making changes to my theme and css, and suddenly the css doesnt load on my pages anymore. I undo whatever I changed, and try again, nothing showing. I then revert back to previous versions of my theme and css by copy pasting, still doesnt load. I create a new theme and stylesheet from the previous versions, it works! I change the name of a class in the css, and then click apply, the stylesheet no longer is loaded... I change the class name back.... it still doesnt load!
What the hell is going on?
Any help much appreciated! Thank you
Re: Not loading stylesheet
Posted: Thu Nov 25, 2010 7:05 pm
by RobM
I started another theme and stylesheet, with the latest stuff I had, and it works!
I've connected to ftp to edit the css file directly, there seems to be a css file for every time I have edited the file. Seems a bit wasteful to me, and I have to wonder if this has something to do with the problem.
Re: Not loading stylesheet
Posted: Thu Nov 25, 2010 7:56 pm
by Nullig
The CSS should be in the db, not a static file.
Nullig
Re: Not loading stylesheet
Posted: Thu Nov 25, 2010 8:30 pm
by RobM
So what are the files in tmp/cache then?
Re: Not loading stylesheet
Posted: Thu Nov 25, 2010 8:39 pm
by Jeff
They are the cached files, the original is in the db.
Re: Not loading stylesheet
Posted: Fri Nov 26, 2010 3:03 am
by panthus
That's usually just a matter of cache files being used, instead of the updated stuff from the database. Try clearing your browser cache and if that's not helping clear cmsms cache, too.
Re: Not loading stylesheet
Posted: Sat Nov 27, 2010 3:51 am
by Dr.CSS
The css files you find in there are from the {cms_stylesheet} call, it makes cached versions of the style sheets in Layout > Stylesheets, so if you change the ones in tmp/cache they will just get overwritten by the ones in layout > stylesheets, so just make changes as you should in the admin part of the site not with FTP, this ain't no flat files system folks...
Re: Not loading stylesheet
Posted: Sat Nov 27, 2010 5:17 pm
by RobM
Ok fair enough, but it is rather problematic if when I used the admin area for editing the css it suddenly stops loading. No one has touched this subject yet.
Today and yesterday it has been fine editing via admin area, but it doesnt explain the problem the other day.
p.s Thank you for the replies
Re: Not loading stylesheet
Posted: Sat Nov 27, 2010 6:53 pm
by Dr.CSS
If it stops showing the CSS it may have to do with folder permissions on tmp and tmp/cache, every server requires it's own set of permissions, mine is fine with 755 while other ones I work on need 777...
Re: Not loading stylesheet
Posted: Sun Nov 28, 2010 11:34 pm
by Jeff
Also the is the last thing to get generated. If cmsms runs into an error it will stop processing without generating the styles.
If it happens again try turning on debug mode and checking "View page source" to see if there are any errors in hidden divs.