• Hi everyone,

    my widgets settings keep disappearing. Whenever I enter the widget-page in the backend my two sidebars are empty, although the widgets are still visible in the frontend. When I now add a new widget, all widgets except the new one are wiped from the frontend.

    So I assume, wordpress fails to load the existing widgets in the backend.

    I am currently modifying my own Theme and have renamed and altered my sidebars when this suddenly happened. A few minutes before all widgets of a deleted Sidebar were moved to the “save-area” – maybe this was the point where things went bad.

    I could not find a bug-report regarding this issue.

    Any ideas how I broke my wordpress? Help! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    Try decativating all plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the Twenty Ten theme to rule-out a theme-specific issue.

    Thread Starter caracasa

    (@caracasa)

    I switched to Twenty Ten, played with the widgets and went back to my theme.

    • Switching the Theme resets every ever added widget to the inactive pane. It listed the lost widgets of all my former attempts.
    • Using Twenty Ten everything works fine.

    Disabling all plugins changed nothing, but exposed some plugin-function-calls without a working fallback. Thanks for that. ??

    But the problem still exists and is spectific to my own theme.

    widget-section in functions.php

    add_action( 'widgets_init', 'caracasa_theme_widgets_init' );
    
    [...]
    
    if ( ! function_exists( 'caracasa_theme_widgets_init' ) ):
    function caracasa_theme_widgets_init() {
    
    	register_sidebar( array(
    		'name' => 'profile',
    		'id' => 'Sidebar-Profile',
    		'description' => 'Profile',
    		'before_widget' => '<div class="MenuBox">',
    		'after_widget' => '</div>',
    		'before_title' => '<div class="MenuTitle">',
    		'after_title' => '</div>',
    	) );  
    
    	register_sidebar(array(
    		'name' => 'standard',
    		'id' => 'Sidebar-Standard',
    		'description' => 'Sidebar',
    		'before_widget' => '<div class="MenuBox">',
    		'after_widget' => '</div>',
    		'before_title' => '<div class="MenuTitle">',
    		'after_title' => '</div>',
    	));
    }
    endif;

    Somewhere in my header.php:

    <?php get_sidebar('profile'); ?>
    		<?php get_sidebar('standard'); ?>

    And my sidebar-ABC.php

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('<em>ABC</em>') ) : ?>
    <?php endif; ?>

    Is there something wrong with these lines?

    Try:

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('standard') ) : ?>
    <?php endif; ?>
    Thread Starter caracasa

    (@caracasa)

    ABC is just a placeholder.

    In sidebar-standard.php and sidebar-profile.php are the correct names of the registered sidebars.

    My fault.

    was this ever resolved? i am experiencing the exact same issue

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disappearing Widgets’ is closed to new replies.