We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6705
    • 79 Posts
    When I search my website using AjaxSearch, the search results page(s) include special links to the found pages which include some extra parameters after the page address ("?searched=searchterm&advsearch=oneword&highlight=ajaxSearch_highlight+ajaxSearch_highlight1", where searchterm is the word that I searched for).

    If I then try to follow any of those links to any of the found pages, I get the following error:

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: 	preg_replace() [function.preg-replace]: Compilation failed: lookbehind assertion is not fixed length at offset 11	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/data/webs/mywebsite/manager/includes/document.parser.class.inc.php(746) : eval()'d code	 
      Line: 	101	 
     
    


    However, I notice that if I manually strip out the "searched=searchterm&" from the URL, but leave the remaining parameters "advsearch=oneword&highlight=ajaxSearch_highlight+ajaxSearch_highlight1", then the page will load correctly.

    Should I report this as a bug? Does anybody know if the same problem occurs in 1.0.3?
      Please don't PM me unless it's absolutely essential: if a technical question is worth asking, it's worth asking in public, so that others can share their experience, and so that all can learn from the answers.
      • 5811
      • 1,717 Posts

      Read this post for the correct answer