when i do a search with this snippet call:
[!AjaxSearch? &ajaxSearch=`0` &parents=`1` &tplLayout=`ajaxSearchCustomTpl` &submitText=`Refine Search` !]
my results come up fine, but when you click on any of the results you get the following 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: /www/local/sites/www014/manager/includes/document.parser.class.inc.php(746) : eval()’d code
Line: 100
if i change my snippet call to:
[!AjaxSearch? &ajaxSearch=`0` &parents=`1` &tplLayout=`ajaxSearchCustomTpl` &submitText=`Refine Search` &highlightResult=`0` !]
you can click on the links and everything is fine, just no result highlighting, so the problem obviously lies in that plugin. i did some searching and found results saying:
"Update: SOLUTION FOUND! (thanks coroico for the link)
There is an error in the search highlighting plugin.
Inside the modx manager, click on
Elements > manage elements > plugins > Search Highlighting plugin
On line 123 (if you copy to your line-numbered text editor, right near the bottom of the code)
Replace: $output = implode("<body>", $body);
With: $output = implode("<body", $body);
Hope that helps someone else"
in my plugin code (my initial install was 1.0.1, since upgraded to 1.0.2, so that’s where the plugin code came from), line 124 already says "$output = implode("<body", $body);", i tried changing it to <body> and some other things, but nothing worked.
anyone know of a solution? code result highlighting is not 100% necessary in this application, but it’d be nice if it’s not too hard to get working. thanks.
the search highlight is:
"Plugin: Search_Highlight v1.4a"
i have found this might be an issue with the PCRE library, and that down-grading search highlight to v1.3 might fix it, has anyone had this work? if so - where might i find v1.3?
-
☆ A M B ☆
- 100 Posts
I have the same problem with my website.
I couldn’t figure it out, if I discover something I post here.
----
Daniel Melo
hi, having the same issue. i tried the previous version of the plugin, but no luck. Anyone solve this?