Make WordPress Core

Opened 8 months ago

Closed 8 months ago

Last modified 7 months ago

#63716 closed defect (bug) (worksforme)

xml_set_object() is deprecated in PHP 8.4, still used in SimplePie Parser for WordPress News Feed

Reported by: andy-schmidt's profile Andy Schmidt Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.8.2
Component: Feeds Keywords:
Focuses: Cc:

Description

The Dashboard Widget "WordPress Events and News" relies on SimplePie which is not yet fully ready for PHP 8.4.

/wp-includes/SimplePie/Parser.php on line 162

triggers PHP deprecation message.

(Can be temporarily circumvented by opting out of WordPress Events and News.)

Change History (4)

#1 @sabernhardt
8 months ago

  • Component changed from Administration to External Libraries
  • Keywords close added

I do not think your site should have that anymore.

SimplePie removed xml_set_object() in https://github.com/simplepie/simplepie/pull/851

Then WordPress 6.7 updated the library to 1.8.0 (#55604).
wp-includes/SimplePie/src/Parser.php (note src) with 6.8.2

#2 @Andy Schmidt
8 months ago

  • Resolution set to worksforme
  • Status changed from new to closed

Can't reproduce it now, must have been some odd caching issue, given that the site came from 6.6 (although I'm bewildered that it had showed up in the server logs - so it couldn't have been browser/client caching.)

Anyway, sorry for the (apparently) false alarm.

#3 @sabernhardt
8 months ago

  • Component changed from External Libraries to Feeds

The next ticket, #63717, is about feed caching since 6.7. It might be related to that and/or #63719.

#4 @desrosj
7 months ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.