Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 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:


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.


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

Attachments (1)

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

Download all attachments as: .zip

Change History (8)

10 years ago

#1 @hakre
10 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).

#2 @ryan
10 years ago

  • Owner changed from anonymous to mdawaffe

#3 @Denis-de-Bernardy
10 years ago

related issue:


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.

#4 @ryan
10 years ago

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

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

#5 @ryan
10 years ago

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

#6 @ryan
10 years ago

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

#7 @ryan
10 years ago

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

Note: See TracTickets for help on using tickets.