Make WordPress Core

Opened 14 months ago

Closed 14 months ago

Last modified 5 months ago

#58104 closed defect (bug) (duplicate)

Deprecated function in PHP 8.1 with WordPress 6.2

Reported by: salvoaranzulla's profile salvoaranzulla Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.2
Component: Administration Keywords:
Focuses: Cc:

Description (last modified by sabernhardt)

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)

#1 @NekoJonez
14 months ago

@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

#2 @salvoaranzulla
14 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 @peterwilsoncc
14 months ago

  • Milestone Awaiting Review deleted

Thanks for following up, it's very helpful and much appreciated.

#4 @insecttrojan
12 months ago

@salvoaranzulla hello witch plugin does that to you i have the same problem thanks a lot.

#5 @retrovertigo
11 months ago

@salvoaranzulla I have the same question as @insecttrojan. Can you remember the plugin causing this? Thanks

#6 @sabernhardt
5 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 @insecttrojan
5 months ago

In my case I debug and was the header-footer-code-manager and the wp-google-places-review-slider

Note: See TracTickets for help on using tickets.