We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19390
    • 3 Posts
    Everything was fine with my MODx install. It worked for about a day and now I get the following error message when I go anywhere in the site.

    Parse error: parse error, unexpected $ in ../assets/cache/siteCache.idx.php on line 3706

    Thoughts?
      • 7923
      • 4,213 Posts
      Have you tried clearing the site cache from manager? Just out of curiosity, how many documents you have?


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 19390
        • 3 Posts
        Quote from: doze at Jan 27, 2007, 06:05 PM

        Have you tried clearing the site cache from manager? Just out of curiosity, how many documents you have?
        Cant even get to the manager.
        One page / document.
          • 7923
          • 4,213 Posts
          Well, it seems that the cache file has somehow corrupted, you could have a look see to that siteCache.idx.php file on line 3706 to see if you can fix it.. or you could empty the cache files manually, in siteCache.idx.php leave:

          <?php

          ?>

          and in sitePublishing.idx.php leave:

          <?php $cacheRefreshTime=0; ?>

          What version of MODx are you using?


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 22303 MODX Staff
            • 10,725 Posts
            It seems you’ve managed to add some PHP code (in a snippet, plugin, etc.) with some kind of error that is causing the entire site cache file to get scrambled. You’ll need to look at that line in the file, determine what component is causing this problem, remove it from the appropriate database table, then clean the siteCache file leaving only the opening and closing php tags (i.e. <?php and ?>) and then access the login page.
              • 19390
              • 3 Posts
              Version modx-0.9.5

              Nothing else installed
                • 25663 MODX Staff
                • 12,272 Posts
                Need more information as outlined in the sticky topic in the General Support category:

                Before posting requests for help
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me