[wp-trac] [WordPress Trac] #10954: Widgets Disappear

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 18 12:43:16 UTC 2009


#10954: Widgets Disappear
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  new   
 Priority:  normal        |   Milestone:  2.9   
Component:  Widgets       |     Version:  2.8.4 
 Severity:  normal        |    Keywords:  tested
--------------------------+-------------------------------------------------
Changes (by Denis-de-Bernardy):

  * keywords:  reporter-feedback => tested


Comment:

 Replying to [comment:10 azaozz]:
 > Replying to [comment:9 hakre]:
 > Looking at your patch it seems the error it that some keys in the widget
 option are not numeric (would have been easier with db dump). If that's
 the case we should also check the data on saving. Can you verify that
 10954-3.patch fixes it.

 I've seen occurrences of this too, and checking on save probably is the
 wrong approach. the core issue is when the option ends up looking like one
 or both of:

 {{{
 array('_multiwidget' => 1);

 array('_multiwidget' => 1, 'foo' => 'bar');
 }}}

 you can then have a sidebar that "contains" a widget based on the
 sidebars_widgets option, but the widget's option got corrupted in a way or
 another -- during an upgrade, or a race condition in the widgets screen;
 no idea why.

 whatever the cause, the widgets screen ends up not displaying the widget
 at all in the second case (not even in the available widgets), and there
 is no means to fix the issue short of deleting the option in the database.

 10954-3.patch makes the widget re-appear in the available widgets as
 expected.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10954#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list