Page 1 of 1

[SOLVED] Apply button not working, have to Submit

Posted: Tue Feb 08, 2011 12:55 am
by Cerulean
When editing stylesheets or templates, if I use the apply button the changes aren't reflected on the live site, but if I use the submit button they are.
Does anyone know what could be causing this problem? I'm using v1.9.3.
Thanks.

Re: Apply button not working, have to Submit

Posted: Tue Feb 08, 2011 1:44 am
by Dr.CSS
Most likely it has to do with using {cms_stylesheet} as this uses the tmp/cache folder to hold them and it may not know to refresh them till submit, only thing I can think of besides clearing your browser cache or doing a hard refresh...

Re: Apply button not working, have to Submit

Posted: Tue Feb 08, 2011 1:50 am
by Cerulean
Thanks for your reply. I always do a hard refresh when checking changes, and changes that have been "Applied" but not submitted are not shown.
Regarding using {cms_stylesheet}, is this not the correct method of attaching stylesheets? Is there another technique I should be using?

Re: Apply button not working, have to Submit

Posted: Tue Feb 08, 2011 2:33 am
by Dr.CSS
That is the new style sheet tag...

Re: Apply button not working, have to Submit

Posted: Tue Feb 08, 2011 2:51 am
by Cerulean
If it's the tag that's currently recommended for attaching stylesheets, and the cache isn't refreshing on Apply, then I guess we can call that a bug... can anyone else running v1.9.3 confirm?

Re: Apply button not working, have to Submit

Posted: Tue Feb 08, 2011 10:35 pm
by Cerulean
Okay, I have found the source of the problem, which is the CodeMirror module. When I disable syntax highlighting in User Preferences my Apply button works again.
This is a real shame as syntax highlighting is very useful. Hopefully this will be solved in a CodeMirror update soon.

Edit: this bug has already been submitted: http://dev.cmsmadesimple.org/bug/view/6019

I've installed EditArea and it seems to be an excellent alternative to CodeMirror.