WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#6578 closed defect (bug) (fixed)

Dashboard widget options can get corrupted

Reported by: Viper007Bond Owned by: mdawaffe
Milestone: 2.5.1 Priority: low
Severity: blocker Version: 2.5
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

The dashboard widget options array can get corrupted (dunno how, but it can). We should do a data type check before we attempt to use it as an array to avoid the Fatal error: Cannot use string offset as an array in [...]/wp-admin/includes/dashboard.php on line 46 error.

http://wordpress.org/support/topic/164836

Been a couple people on IRC with the problem as well.

Attachments (1)

6578.patch (543 bytes) - added by Viper007Bond 6 years ago.

Download all attachments as: .zip

Change History (8)

Viper007Bond6 years ago

comment:1 hakre6 years ago

Thanks for the info and the code. I would suggest to perform this check in the upgrade routines and not inside the dashboard.php. Maybe some other Issue is related to this as well which can be solved inside upgrade as well, but I wait for a confirmation of the reporter (Issue in Forum).

comment:2 ryan6 years ago

  • Owner changed from anonymous to mdawaffe

comment:3 Denis-de-Bernardy6 years ago

related issue:

http://trac.wordpress.org/ticket/6532#comment:5

I suspect the lines in wp-settings.php that tickle the multibyte string stuff have something to do with some serialize and unserialize operations that fail.

comment:4 ryan6 years ago

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

(In [7721]) Verify widget option sanity. Props Viper007Bond. fixes #6578 for trunk

comment:5 ryan6 years ago

(In [7722]) Verify widget option sanity. Props Viper007Bond. fixes #6578 for 2.5

comment:6 ryan6 years ago

(In [7730]) Typo fix. see #6578

comment:7 ryan6 years ago

(In [7731]) Typo fix. see #6578

Note: See TracTickets for help on using tickets.