I have a problem: a wordpress site that i manage keep loose the widgets. When i open the widget admin panel, all the sidebar are empty.
I've debugged some code and found that the widget exists into the database field 'sidebars_widgets'. But when it comes to display them, it stops here:
wp-includes/widgets.php, line #658
if ( !isset($wp_registered_widgets[$id]) ) continue
because the wp_registered_widgets only contains the available and the non-active widgets. For example, i have a text-2 widget inside my sidebar, but the wp_registered_widgets variable only contains text-1, the available one.
So far, I'm in trouble with understanding where this variable is populated. Someone can help?