I'm running a clean install of Umbraco v4.11 and when trying to save a modified bootstrap.css I get the "CssErrorHeader" and "CssErrorText" error in the bottom right and none of the changes are saved.
Has anyone experienced this before?
The size of the CSS file I am trying to save is about 140KB with approximately 141,000 characters over 6000 lines. An unmodified bootstrap.css (similar stats) also fails with the same error.
I've also tried an unmodified bootstrap.min.css (about 100KB with approximately 101,000 characters over 11 lines) and this saves without error.
The issue also occurrs in a clean Umbraco v4.9 install.
I hit this issue today as well. I had a CSS file with 4700 line limit but I assume it is to do with the file size, not number of lines. Will have to split the CSS down further
To get around the limitation, I suppose you could use a package minifier (https://github.com/buunguyen/combres) and break the CSS file into more manageable chunks.
I'm wondering if it's a framework or IIS setting because the database field is NText so unless you are storing over 1,073,741,823 bytes that's not the issue. I'm wondering if IIS is reporting a potential XSS attack and throwing an exception. I set and it didn't make a difference either. My response wasn't meant to be received with a negative connotation, I'm not a core member so I can only suggest what can be done. Vote or offer a solution to the issue for review. I'm at least grateful they have a voting mechanism to help prioritize issues. It feels this is a pretty big one, imho, but I can't vote on my own issue.
Hi, I'm new to Umbraco and also found this annoying. Found out it is due to the default value of maxJsonLength (102400) in web.config. Add this to your web.config to solve the problem:
CssErrorHeader and CssErrorText when Saving CSS
Hi all.
I'm running a clean install of Umbraco v4.11 and when trying to save a modified bootstrap.css I get the "CssErrorHeader" and "CssErrorText" error in the bottom right and none of the changes are saved.
Has anyone experienced this before?
The size of the CSS file I am trying to save is about 140KB with approximately 141,000 characters over 6000 lines. An unmodified bootstrap.css (similar stats) also fails with the same error.
I've also tried an unmodified bootstrap.min.css (about 100KB with approximately 101,000 characters over 11 lines) and this saves without error.
The issue also occurrs in a clean Umbraco v4.9 install.
Thanks in advance,
Dave.
Getting the same error - anyone got this fixed???
I get this error as soon as a css file goes over 1256 lines.
That would be it - big CSS...
i get the same issue... any thoughts? config setting? db related?
I hit this issue today as well. I had a CSS file with 4700 line limit but I assume it is to do with the file size, not number of lines. Will have to split the CSS down further
I've got the same error, large Foundation 3 css file.
I actually just posted a ticket regarding this limitation. http://issues.umbraco.org/issue/U4-2287
To get around the limitation, I suppose you could use a package minifier (https://github.com/buunguyen/combres) and break the CSS file into more manageable chunks.
Just to say this isn't confined to _big_ css files. I'm having the same issue with a 700 line css file.
I take it nobody has found a fix for this?
For the time being you'll need to vote to escalate the issue.
Wow.
Just wow.
I'm wondering if it's a framework or IIS setting because the database field is NText so unless you are storing over 1,073,741,823 bytes that's not the issue. I'm wondering if IIS is reporting a potential XSS attack and throwing an exception. I set and it didn't make a difference either. My response wasn't meant to be received with a negative connotation, I'm not a core member so I can only suggest what can be done. Vote or offer a solution to the issue for review. I'm at least grateful they have a voting mechanism to help prioritize issues. It feels this is a pretty big one, imho, but I can't vote on my own issue.
Very frustrated that this issue is still not been addressed. This was first addressed in this string over a year ago and nothing. What's up guys?
Hi, I'm new to Umbraco and also found this annoying. Found out it is due to the default value of maxJsonLength (102400) in web.config. Add this to your web.config to solve the problem:
http://stackoverflow.com/questions/1151987/can-i-set-an-unlimited-length-for-maxjsonlength-in-web-config
The web.config snippet solved the problem for me! Thanks a lot!
Just revisted this following an alert and can confirm seglare's fix works (tested in version 7).
Thanks seglare.
Thanks Seglare
You snippet solved my problems as well.
This should really be default in umbraco's web.config
Yes should go into the default web.config. Tested with version 6.2.2 but it is probably an issue for previous versions
Snippet is still not in Umbraco 7.2.2 as most of you may have noticed too. But this worked great for my Javascript files too.
is working on a reply...