New search feature displaying php warnings because deprecated functions usedAuthor: Jim S.
On the search results page produced by the new search feature, I had this error:
Deprecated: Function create_function() is deprecated in /home/customer/www/cbcb.co.uk/public_html/res/x5engine.php on line 8466
From google, I found I can hide warnings from functions by putting @ before the function name. So in the file mentioned public_html/res/x5engine.php on line 8466 it said:
$html = preg_replace_callback('/\\s+/', create_function('$matches', 'return implode(\' \', $matches);'), $html);
So I put @ before create_function and the warning no longer appears:
$html = preg_replace_callback('/\\s+/', @create_function('$matches', 'return implode(\' \', $matches);'), $html);
@ is used on other functions in thethat file such as session_start() - maybe this would be a long-term bugfix to do that for instances of create_function if that is really a deprecated function?