[wp-trac] [WordPress Trac] #62350: Depricated warning
WordPress Trac
noreply at wordpress.org
Thu Nov 7 16:00:59 UTC 2024
#62350: Depricated warning
--------------------------+------------------------
Reporter: martenw | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution: duplicate
Keywords: | Focuses:
--------------------------+------------------------
Changes (by sabernhardt):
* status: new => closed
* resolution: => duplicate
* milestone: Awaiting Review =>
Old description:
> [06-Nov-2024 10:40:38 UTC] PHP Deprecated: strpos(): Passing null to
> parameter #1 ($haystack) of type string is deprecated in
> C:\Xampp\apps\wordpress\htdocs\wp-includes\functions.php on line 7302
> [06-Nov-2024 10:40:38 UTC] PHP Deprecated: str_replace(): Passing null
> to parameter #3 ($subject) of type array|string is deprecated in
> C:\Xampp\apps\wordpress\htdocs\wp-includes\functions.php on line 2189
New description:
{{{
[06-Nov-2024 10:40:38 UTC] PHP Deprecated: strpos(): Passing null to
parameter #1 ($haystack) of type string is deprecated in
C:\Xampp\apps\wordpress\htdocs\wp-includes\functions.php on line 7302
[06-Nov-2024 10:40:38 UTC] PHP Deprecated: str_replace(): Passing null to
parameter #3 ($subject) of type array|string is deprecated in
C:\Xampp\apps\wordpress\htdocs\wp-includes\functions.php on line 2189
}}}
--
Comment:
Duplicate of #60636.
The deprecation warnings are annoying, but they let you know something is
wrong. The `wp_is_stream()` and `wp_normalize_path()` functions should
always have a string.
If you check the stack trace, you could find which function feeds a `null`
value to `wp_normalize_path()`. It could be from a plugin using `null` as
the first parameter of `add_submenu_page()` (see #57580). If you determine
which plugin, please report the issue to its author(s).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62350#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list