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

    This afternoon I noticed I had no clicks on my adsense website, and when I tried to open it in a browser, I discovered that get a blank screen for any page I try to access. When I tried to access the manager, I get this error:

    Parse error: syntax error, unexpected T_STRING in /home/mywebsite/public_html/assets/cache/siteCache.idx.php on line 1087

    Is this a commonly seen thing? I’m running 1.0.5. I was just hoping for any suggestions from the knowledgeable folks here before I start monkeying with it.

    Thanks!

    Cris
      • 5340
      • 1,624 Posts
      Try renaming the siteCache.idx.php and report back. MODX should regenerate that file
        • 5994
        • 46 Posts
        Thank you cipa. That worked perfectly!
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          You might want to keep an eye on that; since that file is necessarily writable the corruption may have been because somebody (or some script) was trying to hack it. There have been a few cases of somebody’s FTP account being compromised and their files being hacked to add spam links and redirects. There have also been a couple of cases of shared hosting servers being compromised causing similar site hacking attempts.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 5994
            • 46 Posts
            This is weird! Today I tried to create a new page, but when I tried the New Resource tab, I got this error:

            Parse error: syntax error, unexpected T_STRING in /home/mywebsite/public_html/assets/plugins/qm/qm.inc.php on line 140

            Should I just reinstall modx? This is sort of freaking me out.

            - Cris
              • 5994
              • 46 Posts
              Hi Susan,

              It appears that you were correct. On viewing both of the files, I found the following line in my (old) SiteCacheIndex.php file:

              <title>[(site_name)] | [*pagetitle*]</title><link rel=’canonical’ href=’http://jmplus.net/jJkACiPy’ />

              And in my qm.inc.php file I found:

              <title></title><link rel=’canonical’ href=’http://jmplus.net/ebq9Gm3D’ />

              What would be the prudent next step? Any assistance appreciated!

              - Cris