We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24393
    • 83 Posts
    Using Revo RC-1: The size of my core/cache/phpthumb/ directory is almost 900 megabytes, which is especially strange since I only have about 10 MB total of images on the server. Is it safe to delete any or all of the files in the cache/phpthumb/ folder? I keep running out of disc space on my server which throws this equally strange error message:

    Warning: Invalid argument supplied for foreach() in /home/synergy/public_html/core/model/modx/modcontext.class.php on line 49
    
    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/synergy/public_html/core/model/modx/modx.class.php on line 2588
    
    Fatal error: Class 'modUser_' not found in /home/synergy/public_html/core/xpdo/xpdo.class.php on line 519


    Also getting the blank manager area [http://modxcms.com/forums/index.php/topic,48107.0/all.html] so i can’t even clear the cache. Not sure if the two are related?
      stevesunderland.com
      GRAPHICS | INTERACTIVE | MARKETING
      xhtml + ajax + seo websites powered by modx
      • 22303 MODX Staff
      • 10,725 Posts
      Well, first, what have you installed that is using phpthumb?
        • 24393
        • 83 Posts
        (Reluctantly) using the Gallery component. I can post on the Gallery support thread if you want to delete this one...
          stevesunderland.com
          GRAPHICS | INTERACTIVE | MARKETING
          xhtml + ajax + seo websites powered by modx
          • 28215
          • 4,149 Posts
          Does your PHP process have access to remove files? Otherwise I’m not sure why it’s not clearing itself...
            shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
            • 24393
            • 83 Posts
            Quote from: splittingred at May 31, 2010, 08:51 AM

            Does your PHP process have access to remove files? Otherwise I’m not sure why it’s not clearing itself...

            How can I check this? I can delete files from withing the file manager, and everything else seems to be working great...
              stevesunderland.com
              GRAPHICS | INTERACTIVE | MARKETING
              xhtml + ajax + seo websites powered by modx
              • 28215
              • 4,149 Posts
              Quote from: stevesunderland at Jun 01, 2010, 01:13 PM

              How can I check this? I can delete files from withing the file manager, and everything else seems to be working great...

              Hm, strange. Might be the Gallery’s implementation. I’ll look into it.
                shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                • 24393
                • 83 Posts
                Thanks! I ended up deleting the cache while upgrading to RC2 so it’s not an immediate concern, for me anyway. It would however be great to prevent this from happening in the future!
                  stevesunderland.com
                  GRAPHICS | INTERACTIVE | MARKETING
                  xhtml + ajax + seo websites powered by modx
                  • 24393
                  • 83 Posts
                  I am still having some major problems with the phpThumb cache in both Evo AND Revo. The size of both assets/snippets/phpthumb/cache and core/cache/phpthumb are out of control. This is becoming a huge problem for me since it brings my server to a screeching halt on a regular basis as I run out of disk space.

                  Perhaps it’s a php configuration issue? Any suggestions on finding a solution would be greatly appreciated.
                    stevesunderland.com
                    GRAPHICS | INTERACTIVE | MARKETING
                    xhtml + ajax + seo websites powered by modx
                    • 22829 ☆ A M B ☆
                    • 80 Posts
                    I’m having a similar problem. My /cache/phpthumb is now 4449 files, 6 GB and I hardly have anyone viewing 200 photos.

                    Is there a quick fix (for clearing the cache regularly) until the next Gallery update? The Gallery caching seemed to work at first and then after adding a few more galleries it started to blow up (I think).

                    I started another thread here because I wasn’t sure all my cache issues were Gallery related.

                    http://modxcms.com/forums/index.php/topic,52026.msg301771.html#msg301771
                      Time is what keeps everything from happening all at once.
                      • 28215
                      • 4,149 Posts
                      Can you file a bug report at http://github.com/splittingred/Gallery/issues ?

                      I’ll have a look at this tomorrow. It seems that your phpThumb config is not being respected.
                        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com