WordPress.org

Ready to get started?Download WordPress

Forums

Existing Sidebar Widgets Disappeared and Cannot Add New Ones (9 posts)

  1. Pointers86
    Member
    Posted 1 year ago #

    Hi all, thank you in advance for taking the time to try and help me. I'm not web illiterate, but I am not a pro by any means. Therefore, please keep in mind that you may be speaking to a bit of a novice.

    I recently upgraded to WordPress 3.5. I found that all the sidebars and the widgets contained therein that I created for custom pages had been removed.

    For standard pages like "home page," they are still in tact. However, if I created a "Services" page and had a sidebar with widgets containing text, it is no longer part of the page.

    When I go to widgets it shows approximately 50 inactive widgets now, and only the default sidebars.

    When I try to create new sidebars with new pages it does not register.

    I've already deactivated/activated all plugins as well.

    Thanks

  2. colectiv
    Member
    Posted 1 year ago #

    I have a similar problem and instead of a sidebar, I get this error message "Fatal error: Call to undefined function dynamic_sidebar() in /home/colectiv/public_html/wp-content/themes/twentyeleven/sidebar.php on line 16"
    This is the sidebar.php code, can someone tell me where the error is?

    [Excessive and un-back-ticked code deleted]

    My site is http://www.colectivosustento.org

  3. colectiv
    Member
    Posted 1 year ago #

    <?php
        /**
        * The Sidebar containing the main widget area.
        *
        * @package WordPress
        * @subpackage Twenty_Eleven
        * @since Twenty Eleven 1.0
        */
    
        $options = twentyeleven_get_theme_options();
        $current_layout = $options['theme_layout'];
    
        if ( 'content' != $current_layout ) :
        ?>
        <div id="secondary" class="widget-area" role="complementary">
        <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
    
        <aside id="archives" class="widget">
        <h3 class="widget-title"><?php _e( 'Archives', 'twentyeleven' ); ?></h3>
            <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?> 
    
        </aside>
    
        <aside id="meta" class="widget">
        <h3 class="widget-title"><?php _e( 'Meta', 'twentyeleven' ); ?></h3>
            <?php wp_register(); ?>
    
            <?php wp_loginout(); ?>
    
            <?php wp_meta(); ?> 
    
        </aside>
    
        <?php endif; // end sidebar widget area ?>
        </div><!-- #secondary .widget-area -->
        <?php endif; ?>
  4. colectiv
    Member
    Posted 1 year ago #

    To explain a bit more, I have no dynamic sidebar in my widgets page, so nothing to drop widgets into.
    Also, at the bottom of the Widgets page, in a section entitled "Inactive Widgets" I see this message: Fatal error: Call to undefined function dynamic_sidebar() in /home/colectiv/public_html/wp-admin/includes/widgets.php on line 80

    I am also a bit of a novice and would appreciate some help. I deactivated all plug-ins and the situation remained the same.
    Thank you in advance. Penny

  5. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    @Penny - you may not realize it, but you've totally hijacked the OP's thread - which really is not cool here. You also don't have the same issue. Please start your own thread, and first see the forum guidelines re: posting large amounts of code.
    http://codex.wordpress.org/Forum_Welcome#Posting_Code
    You should be using pastebin for an entire file.

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    @Pointers86 - what theme are you using and have you gone through the 3.5 update troubleshooting thread here:

    http://wordpress.org/support/topic/troubleshooting-wordpress-35-master-list?replies=4

  7. colectiv
    Member
    Posted 1 year ago #

    I am so sorry, I did not mean to hijack the thread. In fact, I was trying to be careful not to repeat a question by opening a new thread. So, thanks for pointing this out to me, and the point about the code. Problems of being a newcomer :)
    I will read your suggestions now.

  8. colectiv
    Member
    Posted 1 year ago #

    ok, I will start a new thread..

  9. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    It's okay :). I know it's confusing when you are new and not all forums work this way. We'll be happy to help in your new, very own thread.

Topic Closed

This topic has been closed to new replies.

About this Topic