We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 52442
    • 19 Posts
    Hi All,

    I am having an issue with saving a file in MODX 2.6.1

    When my CSS file goes above a file size of 11000 B, the file will not save at all.
    I have searched around on the forums and haven't found anything except for this unsolved post: https://forums.modx.com/thread/74368/cannot-save-changes-to-css-resource

    It seems as I am having the same issues as him, but I cannot figure out why it would stop saving at that file size. For reference in that post, I have compress_js and compress_css both off, but I have tried changing them with no effect.

    Would this be a MODX issue for me, or a hosting issue? I have checked with my host and I still have 60 GB of space left, so I haven't reached anywhere close to my hosting cap.

    Any thoughts? Thanks!

    This question has been answered by kksailskivt. See the first response.

      • 3749
      • 24,544 Posts
      You might try this in .htaccess:

      php_value post_max_size 20M
      php_value upload_max_filesize 20M


      Or this in a php.ini file:

      post_max_size=20M
      upload_max_filesize=20M


      Worst case, you could edit the file locally, zip if up, and upload it, then expand it on the server in Cpanel's File Manager.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
      • discuss.answer
        • 52442
        • 19 Posts
        Thanks Bob!

        It turns out it was my temp folder in shared hosting that was maxed out, preventing me from saving over a certain size.

        I appreciate the help and hasty response!