On my word press site, I am having a sidebar problem. No sidebars or footbars appear on my site and instead there are fatal error messages.

Asked by:
refluxli / 8 Points
Time:
2013-06-17 4:07 am EST
Category:
Wordpress
Hits:
1,380
These include on my posts- Fatal error: Call to undefined function dynamic_sidebar() in /home/reflux6/public_html/wp-content/themes/maya/sidebar-default.php on line 1. When I go to my wp-admin, under Appearance, Widgets, there are no sidebars at all. In the inactive sidebars at the bottom it says - Fatal error: Call to undefined function dynamic_sidebar() in /home/reflux6/public_html/wp-admin/includes/widgets.php on line 80.

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

johnpaulb-whh2
Staff
12,339 Points
2013-06-17 6:42 pm EST
Hello refluxi,

Thank you for your question. This issue seems to be caused by the dynamic sidebar the Maya template is calling in. The Maya theme may not be compatible with the dynamic_sidebar in the latest version of Wordpress.

I was able to confirm this by commenting out the dynamic sidebar with 2 forward slashes (//):

/home/userna5/public_html/wp-content/themes/maya/sidebar-default.php
<?php //if (!dynamic_sidebar('Default Sidebar')):

/home/userna5/public_html/wp-content/themes/maya/footer-big.php
<?php //dynamic_sidebar( "Footer Row $i" )

I recommend checking if the theme developer is aware of this issue, and has a solution or workaround.

You can remove the 2 forward slashes to re-enable the dynamic_sidebar, but the errors will return.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul

To submit a comment on this answer, please first login.

Great response. Now my default sidebars and footer are back. However on the Widgets page under appearance on wordpress admin there are no active sidebars to modify, and in the inactive sidebars at the bottom it says:
Fatal error: Call to undefined function dynamic_sidebar() in /home/reflux6/public_html/wp-admin/includes/widgets.php on line 80.
refluxli
8 Points

2013-06-19 4:40 pm EST
Hello refluxli,

It definitely seems that the theme you are using is not compatible with the latest version of Wordpress.

You can check line 80 of the file specified in the error for more information:
/home/reflux6/public_html/wp-admin/includes/widgets.php

If you put your Wordpress in Debugging mode, it can possibly provide more specific errors.

I would honestly recommend using a different theme, or contacting the theme developer so they can fix this issue going forward.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul
johnpaulb-whh2
12,339 Points
Staff
2013-06-19 7:54 pm EST
Hi,

The problem is not related to theme, you will have the same error with other themes, also with TwentyTwelve.

It's related to the Wordpress file "widgets.php" that seems corrupted in your installation.
You can find it in "wp-includes/" folder and you simply need to replace it with a fresh file.

Corrado
corradoporzio
3 Points

2013-07-31 1:26 pm EST
Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}