Make WordPress Core

#58957 closed defect (bug) (invalid)

php 8.2 warning -

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

Description

When using php8.2 a warning is generated:

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/website/public_html/wp-includes/functions.php on line 7053

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/website/public_html/wp-includes/functions.php on line 2165

Change History (3)

#1 @Hareesh Pillai
16 months ago

  • Keywords reporter-feedback added

Hi @Andyjay2012
Welcome to Core Trac! Thank you for creating the ticket.

Could you share some more details so that we can try and replicate it?

  1. What is your WordPress version?
  2. Can you confirm that you are using a Twenty-* theme and have tried deactivating all the plugins, and still face the reported issue?

#2 @Andyjay2012
16 months ago

Hi Hareesh

I'm using WrodPress version 6.2.2 and OceanWP child theme.
It seems to be the plugin 'Site Kit by Google' causing the issue.
Thank you
Andy

#3 @Hareesh Pillai
16 months ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Well, I will go ahead and close this ticket as this instance of Trac is for the WordPress Core software.

Note: See TracTickets for help on using tickets.