Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#6578 closed defect (bug) (fixed)

Dashboard widget options can get corrupted

Reported by: Viper007Bond Owned by: mdawaffe
Priority: low Milestone: 2.5.1
Component: Administration Version: 2.5
Severity: blocker Keywords: has-patch
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 5 years ago.

Download all attachments as: .zip

Change History (8)

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   ryan5 years ago

  • Owner changed from anonymous to mdawaffe

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   ryan5 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   ryan5 years ago

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

comment:6   ryan5 years ago

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

comment:7   ryan5 years ago

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

Note: See TracTickets for help on using tickets.