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 768is 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()->pathis just/)In this scenario
$duplicate_path_to_removeand$duplicate_path_to_replaceare 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? 🙂
The topic ‘PHP warning in 1.9.6 on PHP 7’ is closed to new replies.