Warning message on the Dashboard
-
When the plugin is activated, we are getting following PHP warnings:
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in \wp-includes\functions.php on line 7127
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in?\wp-includes\functions.php?on line?2182
These warnings are coming from wp-content\plugins\wp-user-frontend\includes\class-whats-new.php line no. 67
add_submenu_page( null, ( ‘Whats New’, ‘wp-user-frontend’ ), ( ‘Whats New’, ‘wp-user-frontend’ ), ‘manage_options’, ‘whats-new-wpuf’, [ $this, ‘menu_page’ ] );
If we change the first parameter to ‘wpuf-post-forms’ then the warnings are not coming.
Is there any way we can resolve this without changing the plugin files?
Thank You
- The topic ‘Warning message on the Dashboard’ is closed to new replies.