Error after Upgrade to PHP 7
-
Hi,
just upgraded my wordpress driven web site(s) to PHP 7, where I use this plugin.Some of them didn’t work correctly anymore and the phperror.log showed the following error:
PHP Fatal error: Uncaught Error: [] operator not supported for strings in D:\xyz\wp-content\plugins\highlight-search-terms\hlst.php:150
Line 150 looks like this:
$searches[] = get_search_query();
you just have to remove the double square brackets after ‘search’
to
$searches = get_search_query();
and everything works fine ??
Klaus
BTW: like the plugin, thanks to the author!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Error after Upgrade to PHP 7’ is closed to new replies.