We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21275
    • 2 Posts
    I’m using MODx .9.5 on Windows Server (using WAMP).

    Sometimes i get following error while browsing the site.
    "PHP Parse error: syntax error, unexpected $end in x\xx\xxx\xxx\cache\siteCache.idx.php on line 25212"

    I am getting this error mostly when i am saving a snippet and at the same time somebody is trying to access a page (which i think it is trying to retrive from cache)

    Is there something wrong in the configuration ?
    How can i resove this problem ?

    Thanks
    NetworkSpider
      • 17665
      • 54 Posts
      Not sure if this is a MODx issue or just a php one... but I ran into something similar to this on a php project where I was using the heredoc syntax ("<<<"). If you have any white space after your EOF, you’ll get this error. Took me forever to figure out.

      Example:

      $myVar = <<< EOF (anything here... error)

      // blah

      EOF (anything here... error)

      If your snippet is using <<<, that could be the problem.

      Hope that helps.