PHP warning in 1.9.6 on PHP 7
-
Warning: strpos(): Empty needle in /path/to/content/plugins/wp-cassify/classes/wp_cassify_plugin.php on line 768
is showing on every page load of the home page on the main site in a network (regardless of signed in or not). (i.e. when
get_blog_details()->path
is just/
)In this scenario
$duplicate_path_to_remove
and$duplicate_path_to_replace
are both empty, and hence the warning.This can be solved by changing line 768 to
if ( ! empty( $duplicate_path_to_remove ) && strpos( $wp_cassify_callback_service_url, $duplicate_path_to_remove ) !== false ) {
Sure I still can’t convince you to put this on github so I can make pull requests and make your life easier? ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP warning in 1.9.6 on PHP 7’ is closed to new replies.