• Resolved Shiva Poudel

    (@shivapoudel)


    Please remove null and provide empty string to this add_menu_page function call. Every time we update the PRO plugin we face this error:

    ( ! )Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in D:\laragon\eachperson\wp-includes\functions.php on line 7241
    
    ( ! ) Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in D:\laragon\eachperson\wp-includes\functions.php on line 2187
    

    This snippet needs to be updated on your pro plugin. That null should be empty string “”.

    add_submenu_page( null, __( 'Whats New', 'dokan' ), __( 'Whats New', 'dokan' ), $capability, 'whats-new-dokan', array( $this, 'whats_new_page' ) );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Every time we update the PRO plugin we face error’ is closed to new replies.