Zen 1.38a running on php 5.2.9 and MySql 5.081 Community
The search in the store continually returned "Invalid keyword" messages no matter what the input.
I searched but could find no reference.
After a day and a half of frustration and eventually with the help of the Debug Error Logging Utility - thank you, DrByte - I found the following error every time the search was run:
[18-Nov-2009 20:42:34] PHP Warning: preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Unknown modifier '+'
in /home/<mysite>/public_html/includes/functions/functions_general.php on line 235
This is the code there:
$pieces = preg_split('[[:space:]]+', $search_str);
Did some research and finally added '/' delimiters around the left square bracket and the plus sign and the error went away and the search functioned as it should.
The code now looks like this:
$pieces = preg_split('/[[:space:]]+/', $search_str);
The file was the stock standard 1.38a one so I'm guessing it's some setting in php or something, causing this.
Hope this might be of some help to someone.
grantgee.





