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
Not loading stylesheet
Re: Not loading stylesheet
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.
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
The CSS should be in the db, not a static file.
Nullig
Nullig
Re: Not loading stylesheet
So what are the files in tmp/cache then?
Re: Not loading stylesheet
They are the cached files, the original is in the db.
Re: Not loading stylesheet
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
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
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
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
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
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.
If it happens again try turning on debug mode and checking "View page source" to see if there are any errors in hidden divs.