We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42439
    • 10 Posts
    I tried using version 1.0.2 today. Unfortunately, I got the same warnings that I got from version 1.0.1. Interestingly, when I revert back to 1.0.0, the warnings go away.

    I would create a JIRA issue, but I don’t know how to reproduce the issue yet.
      • 16892
      • 107 Posts
      I upgraded my site from 0.9.5 to 0.9.6.3 to 1.0.0 with no problems. Then I upgraded my site from 1.0.0 to 1.0.2 and received this same error.

      I have tried to re-install and have chosen the latin1_swedish_ci collation charset. I’ve deleted the cache file and refreshed the site.

      Here are my settings:

      Database Version 5.0.45-community-nt-log
      Database Charset latin1
      Database Collation Charset latin1_swedish_ci
      PHP Version 5.2.8
      Apache/2.2.11
      XAMPP

      Any guidance appreciated.

        • 22303 MODX Staff
        • 10,725 Posts
        Those experiencing this problem can resolve it for now by replacing the contents of manager/processors/cache_sync.class.processor.php with the 1.0.0 version from http://svn.modxcms.com/svn/tattoo/tattoo/releases/1.0.0/manager/processors/cache_sync.class.processor.php - this should temporarily solve the problem while we work out a proper fix.
          • 12943
          • 97 Posts
          I had the same error/bug in 1.0.2.
          FYI, it started happening after I copy-pasted some Snippet codes. And from that time on it occurs in all the updates I make. I will try your solution.
            Accelerate your Windows system with 9.8 m/s2.
            • 22303 MODX Staff
            • 10,725 Posts
            Quote from: IngMA at Nov 10, 2009, 09:07 AM

            I had the same error/bug in 1.0.2.
            FYI, it started happening after I copy-pasted some Snippet codes. And from that time on it occurs in all the updates I make. I will try your solution.
            If you can pinpoint what Snippet you copy/pasted when it started happening, that would be very useful information.
              • 12943
              • 97 Posts
              OpenGeek, your solution is working fine. Thank you!

              Without putting the old code back (I’m on a clock right now) I think it is due to this:

              $value = "<tag attrib=\"string\">";

              In other words, the escape double quote would be valid in Php, but isn’t in 1.0.2 ?
              Again I didn’t test it, but I looks guilty on first sight.
                Accelerate your Windows system with 9.8 m/s2.
                • 22303 MODX Staff
                • 10,725 Posts
                Quote from: IngMA at Nov 10, 2009, 09:25 AM


                $value = "<tag attrib=\"string\">";

                In other words, the escape double quote would be valid in Php, but isn’t in 1.0.2 ?
                Again I didn’t test it, but I looks guilty on first sight.
                What Snippet is that from?
                  • 12943
                  • 97 Posts
                  That’s an old Snippet of my own, out of some OpenLaszlo stuff I’m doing tongue
                  Of course we don’t know if pcoder was using something like that as well.
                  I just mentioned it due to the use of \" character. Sorry, I’ll have to look into it later on.
                    Accelerate your Windows system with 9.8 m/s2.
                    • 42439
                    • 10 Posts
                    Quote from: IngMA at Nov 10, 2009, 09:25 AM

                    Without putting the old code back (I’m on a clock right now) I think it is due to this:

                    $value = "<tag attrib=\"string\">";

                    In other words, the escape double quote would be valid in Php, but isn’t in 1.0.2 ?
                    Again I didn’t test it, but I looks guilty on first sight.

                    Quote from: IngMA at Nov 10, 2009, 10:54 AM

                    Of course we don’t know if pcoder was using something like that as well.
                    I just mentioned it due to the use of \" character. Sorry, I’ll have to look into it later on.

                    Yes, actually! I do see some of that in my snippets.

                    I see this kind of coding done in:

                    • GoogleEvents
                    • MODcast

                    Later when I’m finished work, I’ll check to see if changing the code for that fixes the problem.
                      • 10487 MODX Staff
                      • 1,535 Posts
                      Seems to happen when <? and escaped double quotes occur on the same line, e.g this is one of the test cases that I’ve been able to reproduce the issue with:
                      <?php
                      print "<? \"\" ";
                      ?>

                      But, it also only appears to affect certain PHP versions - 5.2.9 seems to be affected but 5.3.0 appears to handle it fine. IMO, I think the tokenizer is too unstable across PHP versions to use it during the cache generation.
                        Garry Nutting
                        Senior Developer
                        MODX, LLC

                        Email: [email protected]
                        Twitter: @garryn
                        Web: modx.com