#6578 closed defect (bug) (fixed)
Dashboard widget options can get corrupted
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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)
Change History (8)
#3
@
18 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.
Note: See
TracTickets for help on using
tickets.
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).