Make WordPress Core

Changes between Initial Version and Version 5 of Ticket #60223


Ignore:
Timestamp:
01/11/2024 09:53:40 PM (13 months ago)
Author:
sabernhardt
Comment:

#57580 was an earlier ticket with reports about the deprecated warnings for wp_normalize_path() and wp_is_stream().

The four causes identified there were all plugins that had added null in the add_submenu_page() function. Those four plugins have been updated for newer PHP, but a directory search still finds many plugins doing it wrong. Because your deprecation notices occur on all dashboard pages, add_submenu_page() is quite likely where the problem starts in your case too.

If you identify the issue in a plugin, please report it to the plugin's author. If you also would like to share details about the source of the problem, you could comment on #57580.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60223

    • Property Status changed from new to closed
    • Property Version changed from 6.4.2 to
    • Property Resolution changed from to duplicate
    • Property Milestone changed from Awaiting Review to
  • Ticket #60223 – Description

    initial v5  
    1 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in .../wp-includes/functions.php on line 7241
    2 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in .../wp-includes/functions.php on line 2187
     1`Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in .../wp-includes/functions.php on line 7241 `
     2`Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in .../wp-includes/functions.php on line 2187 `
    33
    44Happens on all dashboard pages