We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36702
    • 76 Posts
    I’ve just upgraded a site from Evo 1.0.0 to 1.0.2.

    Everything seemed to go without a hitch, but when I save anything (Tools-Config or a resource or snippet) I get this error:
    Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/me/public_html/manager/processors/cache_sync.class.processor.php on line 343

    The actual save is successful however. Can anyone offer advice on what I can do about this?

      • 36702
      • 76 Posts
      Well I’ve solved this, but no idea why it suddenly started happening.

      It appears that when saving anything MODx re-caches every snippet in the system, and one of my snippets was causing a problem for the tokenizer because of a string containing <? characters. I just changed this line:
      $TheXml='<?xml version="1.0" encoding="UTF-8" ?>';

      to this:
      $TheXml='<'.'?xml version="1.0" encoding="UTF-8" ?'.'>';

      and it solved the problem.
        • 22851
        • 805 Posts
        I’d like to report the same problem and solution. I had a MODx 1.0.2 install on a server where I wasn’t seeing this problem. I then cloned the site onto a new server and suddenly started getting the message every time I made any change or cleared the cache. I think the problem was occurring even on the old server - it’s just that the old server was set-up so as not to display such error messages. The reason I moved servers in the first place is because MODx could be slow and hang sometimes. I blamed the old server (which is not very powerful and shared with a heavily used mail server that’s fighting a war against spam). However, I now wonder whether this error (and the huge manager log that I hadn’t noticed) could have been causing the slow down...
          YAMS: Yet Another Multilingual Solution for MODx
          YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
          Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.