Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#62394 closed defect (bug) (invalid)

wp-includes/general-template.php error

Reported by: bernardco Owned by:
Priority: normal Milestone:
Component: General Version:
Severity: normal Keywords:
Cc: Focuses:

Description

Hello, I get the error with WordPress 6.6.2

PHP Deprecated:  explode(): Passing null to parameter #2 ($string) of type string is deprecated in /wp-includes/general-template.php on line 1425

Change History (2)

#1 @desrosj
2 years ago

  • Milestone Awaiting Review
  • Resolution → invalid
  • Status new → closed

Hi @bernardco,

Welcome to Trac! Thanks for reporting this.

Looking at the code, line 1425 does not have an occurrence of explode(), but 1440 does.

It seems that there is an active plugin or your theme that is causing the value of $title to be null instead of a string as required. I recommend turning off plugins one at a time if possible to determine which one is causing the issue and reporting it to their support staff.

Since this is more of a general support request, please open a ticket in the ​WordPress.org Support Forums if you need more help. This Trac instance is for the development of the Core software and not general support.

#2 @bernardco
2 years ago

Thanks a lot, it was plugin problem as you mentioned.

Note: See TracTickets for help on using tickets.