#58104 closed defect (bug) (duplicate)
Deprecated function in PHP 8.1 with WordPress 6.2
Reported by: | salvoaranzulla | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 6.2 |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
On WordPress administration with WordPress 6.2, I see 2 deprecated functions:
[07-Apr-2023 12:26:46 UTC] PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /.../wp-includes/functions.php on line 7053
[07-Apr-2023 12:26:46 UTC] PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /.../wp-includes/functions.php on line 2165
Change History (7)
#2
@
18 months ago
- Resolution set to invalid
- Status changed from new to closed
You are right. The error is generated by a plugin. Sorry for my ticket.
#3
@
18 months ago
- Milestone Awaiting Review deleted
Thanks for following up, it's very helpful and much appreciated.
#4
@
17 months ago
@salvoaranzulla hello witch plugin does that to you i have the same problem thanks a lot.
#5
@
16 months ago
@salvoaranzulla I have the same question as @insecttrojan. Can you remember the plugin causing this? Thanks
#6
@
10 months ago
- Description modified (diff)
- Resolution changed from invalid to duplicate
I would like to know which function the plugin used incorrectly, especially if it included a wrong type in the add_submenu_page()
function.
If you could determine which function or which plugin causes the error, please share the information on #57580. (I am not yet sure about reopening that ticket, but you can comment while it is still closed.)
#7
@
10 months ago
In my case I debug and was the header-footer-code-manager and the wp-google-places-review-slider
https://wordpress.org/support/topic/deprecated-strpos-4/
@salvoaranzulla Does this error still show up after doing a reinstall of WordPress via updates -> Re-install v6.2 again.
Could you also attach some screenshots where exactly this error is coming up?
Have you any plugins installed? Since, I don't see this error appearing on my 6.2 websites running PHP 8.1