Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dave Brislane 15 posts 46 karma points
    Nov 29, 2012 @ 14:17
    Dave Brislane
    0

    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.

  • Karl Kopp 121 posts 227 karma points
    Jan 10, 2013 @ 01:40
    Karl Kopp
    0

    Getting the same error - anyone got this fixed???

  • Evan Jardine 108 posts 168 karma points
    Jan 10, 2013 @ 05:34
    Evan Jardine
    0

    I get this error as soon as a css file goes over 1256 lines.

  • Karl Kopp 121 posts 227 karma points
    Jan 10, 2013 @ 05:47
    Karl Kopp
    0

    That would be it - big CSS...

  • bob baty-barr 1180 posts 1294 karma points MVP
    Feb 15, 2013 @ 15:00
    bob baty-barr
    0

    i get the same issue... any thoughts? config setting? db related?

  • Richard Leonard 8 posts 38 karma points
    Feb 18, 2013 @ 13:38
    Richard Leonard
    0

    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

  • stephanie 52 posts 133 karma points
    Apr 11, 2013 @ 23:16
    stephanie
    0

    I've got the same error, large Foundation 3 css file. 

  • Jon Dunfee 199 posts 468 karma points
    May 28, 2013 @ 23:00
    Jon Dunfee
    0

    I actually just posted a ticket regarding this limitation. http://issues.umbraco.org/issue/U4-2287

  • Jon Dunfee 199 posts 468 karma points
    May 28, 2013 @ 23:08
    Jon Dunfee
    0

    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.

  • ... 20 posts 41 karma points
    Aug 19, 2013 @ 15:17
    ...
    0

    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?

  • Jon Dunfee 199 posts 468 karma points
    Aug 19, 2013 @ 15:28
    Jon Dunfee
    0

    For the time being you'll need to vote to escalate the issue.

  • ... 20 posts 41 karma points
    Aug 19, 2013 @ 15:40
    ...
    0

    Wow.

     

    Just wow.

  • Jon Dunfee 199 posts 468 karma points
    Aug 19, 2013 @ 20:21
    Jon Dunfee
    0

    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.

  • Scott Roush 2 posts 22 karma points
    Dec 02, 2013 @ 23:49
    Scott Roush
    0

    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? 

  • seglare 1 post 43 karma points
    Dec 18, 2013 @ 00:44
    seglare
    102

    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:

    <configuration>
       <system.web.extensions>
           <scripting>
               <webServices>
                   <jsonSerialization maxJsonLength="50000000"/>
               </webServices>
           </scripting>
       </system.web.extensions>
    </configuration>
    

    http://stackoverflow.com/questions/1151987/can-i-set-an-unlimited-length-for-maxjsonlength-in-web-config

  • Matthias Bier 30 posts 90 karma points
    May 30, 2014 @ 09:05
    Matthias Bier
    0

    The web.config snippet solved the problem for me! Thanks a lot!

  • Dave Brislane 15 posts 46 karma points
    Jun 03, 2014 @ 10:41
    Dave Brislane
    0

    Just revisted this following an alert and can confirm seglare's fix works (tested in version 7).

    Thanks seglare.

  • Søren Reinke 158 posts 206 karma points c-trib
    Jul 16, 2014 @ 16:36
    Søren Reinke
    0

    Thanks Seglare

     

    You snippet solved my problems as well.

    This should really be default in umbraco's web.config 

  • Dirk Seefeld 126 posts 665 karma points
    Sep 03, 2014 @ 11:31
    Dirk Seefeld
    0

    Yes should go into the default web.config. Tested with version 6.2.2 but it is probably an issue for previous versions

  • Carlos Mosqueda 244 posts 435 karma points
    Aug 07, 2015 @ 17:54
    Carlos Mosqueda
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft