Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#11168 closed defect (bug) (fixed)

Fatal error: Call to undefined method WP_Error::__destruct()

Reported by: Denis-de-Bernardy Owned by:
Priority: normal Milestone: 2.9
Component: Administration Version: 2.9
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

This is in several of the widgets in the dashboard. the sqldump contains a 2.8 site's data, which then gets upgraded to 2.9.

the RSS feeds, which worked fine in 2.8, no longer do. I suppose that's no big deal, since they get refreshed eventually. but mentioning it in the event it's related to the other problems:

  • Fatal error: Call to undefined method WP_Error::destruct() in /Users/denis/Sites/wp/wp-admin/includes/dashboard.php on line 627
  • Fatal error: Call to undefined method WP_Error::destruct() in /Users/denis/Sites/wp/wp-includes/default-widgets.php on line 775
  • Fatal error: Call to undefined method WP_Error::destruct() in /Users/denis/Sites/wp/wp-admin/includes/dashboard.php on line 745

Attachments (3)

dashboard.png​ (93.0 KB ) - added by Denis-de-Bernardy 17 years ago.
11168.diff​ (2.2 KB ) - added by scribu 17 years ago.
Don't call destruct() if is_wp_error($rss)
11168.2.diff​ (448 bytes ) - added by scribu 17 years ago.

Download all attachments as: .zip

Change History (11)

@scribu
17 years ago

Don't call destruct() if is_wp_error($rss)

#2 @scribu
17 years ago

  • Keywords has-patch added

Thank God PHP usually has garbage collection. :-)

#3 @ryan
17 years ago

  • Resolution → fixed
  • Status new → closed

#4 follow-up: @miqrogroove
17 years ago

  • Keywords needs-patch added; has-patch removed
  • Milestone 2.9 → 2.9.1
  • Resolution fixed
  • Status closed → reopened

Missed WP_Widget_RSS and possibly others. See ​http://wordpress.org/support/topic/343166

#5 @miqrogroove
17 years ago

This is related, but might need a separate ticket (?) ​http://wordpress.org/support/topic/342975

#6 @scribu
17 years ago

  • Keywords has-patch added; needs-patch removed

​11168.2.diff fixes this error:

Fatal error: Call to undefined function: __destruct() in /home/content/.../wp-includes/default-widgets.php on line 735

The "could not be converted to UTF-8" error should be handled in a separate ticket.

#8 in reply to: ↑ 4 @westi
17 years ago

  • Milestone 2.9.1 → 2.9
  • Resolution → fixed
  • Status reopened → closed

Replying to miqrogroove:

Missed WP_Widget_RSS and possibly others. See ​http://wordpress.org/support/topic/343166

Please don't reopen tickets from previous milestones where a fix was made during that release.

It makes it much harder to keep track of the remaining issue - a new ticket should be created for an issue once the release the original ticket was closed against has shipped.

I have created a new ticket to track the remaining issue: #11518

Note: See TracTickets for help on using tickets.