I have two websites, both of which have been around for about 10 years. The PHP running on them is old.
PHP Errors are strong text in public_html/error_log
When using the Sparkle Search feature, one of three which needs PHP, I get no search results.
In error_log in the root of the public_html I get errors like the following:
PHP Fatal error: Uncaught Error: Call to undefined function mb_str_split() in /home1/gregluck/public_html/search.php:315
Stack trace:
#0 /home1/gregluck/public_html/search.php(334): rev_string(‘Sustainable Eco…’)
What Version do you need for Sparkle?
I saw in on of Duncan’s posts he recommends 5.6.30 or higher. My site had 5.6.30 and had the problem. So it seems we need something newer than this.
How to Tell what version PHP you are running?
https://website/phpinfo.php
This will print out your site’s PHP info.
You can also edit search.php and add an error_log statement to print this info out.
<?php
error_log('Current PHP version: ' . phpversion(), 0);
?>
Upgrading your site’s PHP version
Upgrading your site’s PHP version in my experience twice now requires a support ticket. They seem able to do it quickly. They upgraded me to 7.4.16 and my search errors went away.