Make WordPress Core

#61707 closed defect (bug) (duplicate)

Minor problem in WP 6.6

Reported by: martenw's profile martenw Owned by:
Milestone: Priority: normal
Severity: minor Version:
Component: General Keywords:
Focuses: Cc:

Description (last modified by sabernhardt)

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 7300
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

Change History (1)

#1 @sabernhardt
11 months ago

  • Description modified (diff)
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version 6.6 deleted

Hi again!

Those two functions are wp_normalize_path() and wp_is_stream(), same as #60636. The error should be found in a function that feeds wp_normalize_path() a non-string value, often caused by a plugin setting the first parameter of add_submenu_page() to null.

I'll close this ticket as a duplicate of #57580.

Note: See TracTickets for help on using tickets.