Existing Sidebar Widgets Disappeared and Cannot Add New Ones
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.
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
<?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; ?>
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
@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.
You should be using pastebin for an entire file.
@pointers86 – what theme are you using and have you gone through the 3.5 update troubleshooting thread here:
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.
- The topic ‘Existing Sidebar Widgets Disappeared and Cannot Add New Ones’ is closed to new replies.