We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    I can confirm the parse errors in the cache files. I cant say what casues it for others but I can say for sure that the flex search form snippet does casue it. It seems to me that when the searchform is added ot the sitecache that the escape sequince was not correct and that it added one to many \ on a set of paranthases so that it looked like this \\" instead of like this\". I could be wrong here and only looked over it quickly but I hope this info helps in tracking down the issue.

    And for a temporary fix I uploaded new versions of the cache files and then went back into the manager and deleted the flexsearchform snippet. After that I did a site refresh and all is well.

    I will keep you updated if i find any other snippets that cause this issue.

    The ones that are working ok for me so far are:

    listsitemap
    listmenu
    googlemap_xml
    atomfeed
    breadcrumbs
    contactme
    transmenu

      • 2762
      • 1,198 Posts
      ..same problem with FlexSearchForm snipper embarrassed
        Free MODx Graphic resources and Templates www.tattoocms.it
        -----------------------------------------------------

        MODx IT  www.modx.it
        -----------------------------------------------------

        bubuna.com - Web & Multimedia Design
        • 32963
        • 1,732 Posts
        Quote from: banzai at Jul 22, 2005, 12:09 PM

        ..same problem with FlexSearchForm snipper embarrassed

        Hi,

        See the quick fix here:

        http://vertexworks.com/forums/index.php?topic=534.msg3020#msg3020
          xWisdom
          www.xwisdomhtml.com
          The fear of the Lord is the beginning of wisdom:
          MODx Co-Founder - Create and do more with less.
          • 2762
          • 1,198 Posts
          Quote from: xwisdom at Jul 22, 2005, 03:27 PM


          Hi,

          See the quick fix here:

          http://vertexworks.com/forums/index.php?topic=534.msg3020#msg3020


          Many many thanks guys for point out this bug.

          Here’s the quick fix:

          Edit the file:

          manager/processors/cache_sync.class.processor.php

          and modify lines 23-27 for show:

          Code:

          function escapeDoubleQuotes($s) {
          $q1 = array("\\","\"","\r","\n","\$");
          $q2 = array("\\\\","\\\"","\\r","\\n","\\$");
          return str_replace($q1,$q2,$s);
          }


          Save the file above file.

          Now edit your siteCache.idx.php file and delete every thing below the line containing the following php code:

          $c = &$this->chunkCache;

          Save the cache file.

          Now login into the manager and hit the "Refresh site" menu option.

          Did this resolve the issue?


          Best regards,
          I tried it, but error remains the same undecided

          Warning: Unexpected character in input: ’\’ (ASCII=92) state=1 in d:\appserv\www\30\assets\cache\siteCache.idx.php on line 831

          Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in d:\appserv\www\30\assets\cache\siteCache.idx.php on line 831
            Free MODx Graphic resources and Templates www.tattoocms.it
            -----------------------------------------------------

            MODx IT  www.modx.it
            -----------------------------------------------------

            bubuna.com - Web & Multimedia Design
            • 32963
            • 1,732 Posts
            Hi,

            I think that that should be:

            	function escapeSingleQuotes($s) {
            		$q1 = array("\\","'");
            		$q2 = array("\\\\","\\'");
            		return str_replace($q1,$q2,$s);
            	}	
            


            Replace the escapeSingleQuotes function with the one above

              xWisdom
              www.xwisdomhtml.com
              The fear of the Lord is the beginning of wisdom:
              MODx Co-Founder - Create and do more with less.
              • 2762
              • 1,198 Posts
              Quote from: xwisdom at Jul 24, 2005, 02:49 AM

              Hi,

              I think that that should be:

              	function escapeSingleQuotes($s) {
              		$q1 = array("\\","'");
              		$q2 = array("\\\\","\\'");
              		return str_replace($q1,$q2,$s);
              	}	
              


              Replace the escapeSingleQuotes function with the one above



              Thanks xwisdom, now works wink
                Free MODx Graphic resources and Templates www.tattoocms.it
                -----------------------------------------------------

                MODx IT  www.modx.it
                -----------------------------------------------------

                bubuna.com - Web & Multimedia Design
              • Raymond, is that what is in the latest SVN trunk?
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 34162
                  • 1 Posts
                  this fix is verified working with FlexSearchForm. And it does not seem to casue issues with nay other the other snippets installed either.