Opened 15 months ago
Closed 14 months ago
#58728 closed defect (bug) (invalid)
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
Reported by: | ispreview | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Formatting | Keywords: | php81 close |
Focuses: | coding-standards | Cc: |
Description
I recently did a test of PHP 8.2.7 on the latest WordPress 6.2.2 release (this might also occur under PHP 8.1 as I didn't test that) and enabled debugging, which resulted in quite a few of these errors through the admin dashboard. I haven't been able to test every section as when I enable debugging this error also kills (completely vanished) the WordPress Admin menu on the left side of the screen, which I assume to be related.
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /../wp-includes/functions.php on line 7053
I also created another ticket for a similar bug, albeit in a different part of the same file:
Change History (5)
#3
@
15 months ago
I disabled all the plugins and found that the one causing this issue occurs when the latest release of Blog2Social (v7.1.2) is enabled.
@ispreview That will need a backtrace as this is likely caused by a plugin or theme doing something wrong. If not, we still need to know where in Core to fix the incorrect function call as the function in the
functions.php
file is passed incorrect information, which should be fixed at the point the information is passed, not where it is received (which is where the deprecation is being thrown).