Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#11168 closed defect (bug) (fixed)

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

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

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 15 years ago.
11168.diff (2.2 KB) - added by scribu 15 years ago.
Don't call destruct() if is_wp_error($rss)
11168.2.diff (448 bytes) - added by scribu 15 years ago.

Download all attachments as: .zip

Change History (11)

@scribu
15 years ago

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

#2 @scribu
15 years ago

  • Keywords has-patch added

Thank God PHP usually has garbage collection. :-)

#3 @ryan
15 years ago

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

#4 follow-up: @miqrogroove
15 years ago

  • Keywords needs-patch added; has-patch removed
  • Milestone changed from 2.9 to 2.9.1
  • Resolution fixed deleted
  • Status changed from closed to reopened

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

#5 @miqrogroove
15 years ago

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

@scribu
15 years ago

#6 @scribu
15 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
15 years ago

  • Milestone changed from 2.9.1 to 2.9
  • Resolution set to fixed
  • Status changed from reopened to 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.