We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19328
    • 433 Posts
    On one of our websites, all kinds of strange things are happening: images are not generated (phpthumbof), wayfinder menus stop working, chunks disappear. Everything works again if I delete the cache folder and create a new one. Sometimes clearing the cache from the manager is enough to make the problems go away, but most of the time I need to manually delete the core/cache folder.

    I think it might have something to do with the server configurations, I read that MODX doesn't work well with shared NFS (?). Not an expert on this but I read it has to do with file locking. My question is: does this problem still exist for 2.2.5? And how can I find out if the server is indeed causing the trouble? (the hosting company says they use FreeBSD which is multithreaded, but they say all servers are multithreaded so that can't be the problem). They also say they use a system that's about the same as NFS. In their log files they can't find anything that indicates there's a problem.

    I'm just hoping someone has some ideas on how to fix this problem, I don't really know where to start... For example, can someone give a list of specifications of the type of servers that cause trouble that I can send to the hosting company? Thanks for any help!
      • 22303 MODX Staff
      • 10,725 Posts
      If you can get information on exactly what the remote file system technology is being utilized, what web server is being used, and how PHP is deployed/configured, I can provide some better ideas on what the problem might be...
        • 3749
        • 24,544 Posts
        Until you figure it out, this might make life a little easier: http://modx.com/extras/package/cacheclear
          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
          • 19328
          • 433 Posts
          Thanks BobRay! That will make it easier indeed smiley. Would be great if there was an addon that builds the cache again as well! (so you won't have to visit all the pages).

          Opengeek: from the phpinfo() I can get the following. Does this help?

          System: FreeBSD 7.2-RELEASE #0
          Configure command: ./configure' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection' '--program-prefix=' '--disable-path-info-check' '--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php' '--with-zend-vm=CALL' '--disable-ipv6' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=i386-portbld-freebsd7.2'
          Server API: Apache 2.0 Handler
          PHP API: 20041225
          PHP Extension: 20060613
          Zend Extension: 220060519
          Thread Safety: disabled
          Registered PHP Streams: compress.bzip2, php, file, data, http, ftp, https, ftps, zip, compress.zlib
          Registered Stream Socket Transports: tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
          Registered Stream Filters: bzip2.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, zlib.*

          I'll ask the hoster for more info, or is everything you need to know in the phpinfo() file? If it will help I can send you the entire phpinfo-page. Thanks for your help!
            • 3749
            • 24,544 Posts
            http://modx.com/extras/package/refreshcache wink

            It's funky and slow, and the display is sometimes goofed up, but AFAIK, it works.

              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
              • 19328
              • 433 Posts
              I have upgraded to 2.2.8 as I saw there were some fixes made regarding file locking:
              - [#8420] Provide multi-node support to flock-independent file locking
              - [#8420] Remove LOCK_EX from flock-independent file locking method


              The website is doing well right now. I've had no problems with corrupted cache the last two days smiley
              I hope it stays like this.

              If the problem pops up again, I'll let you know. Thanks BobRay and opengeek for your assistance.
                • 3749
                • 24,544 Posts
                I should have checked before I said that. RefreshCache isn't working for me at all in 2.2.8. I haven't had time to look into why it's happening.
                  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