• Hello,
    When I upgraded from 2.9.1 to 2.9.2 using the automatic upgrade, I had various fatal errors. The first one was when I logged into wordpress I could no longer access my dashboard. It gave me a fatal error:

    Fatal error: Call to undefined function wp_dashboard_setup() in /home/username/public_html/wp-admin/index.php on line 15

    I managed to find a fix for this by doing the following:

    Change this line in wp-admin/index.php:
    require_once(ABSPATH . ‘wp-admin/includes/dashboard.php’);
    to this line:
    require_once(‘./includes/dashboard.php’);

    I am not sure if this was a good idea but it works. I wouldn’t want this to create more problems?

    The second issue is when I want to access my widgets from the dashboard I get the following fatal error:

    Fatal error: Call to undefined function wp_list_widgets() in /home/leysin9/public_html/leysinpark.ch/wp-admin/widgets.php on line 351

    I have tried many things and cannot find a fix.
    Could someone please help me.

    Thank you very much,

    Blaise Hefti

    My widgets.php file looks like this:

    [Code moderated] Please use a pastebin for more then 20 lines of code.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    It seems that it is due to the hosting server settings. The solution is to change this line in wp-admin/index.php:

    require_once(ABSPATH . ‘wp-admin/includes/dashboard.php’);

    to this line:

    require_once(‘./includes/dashboard.php’);

    This should resolve your issue.

    Thanks,

    Shane G.

    Thread Starter leysinpark

    (@leysinpark)

    Hello Shane,

    Thanks for your message but as mentioned above, I have already done the following and resolved the problem with the access to my dashboard. I just didn’t want to do anything that would cause more issues therefore was asking if this fix was ok to do.

    On the other hand, my issue is the fact that I cannot access my widgets anymore. I get the following error when I click on widgets in my wp admin panel: Fatal error: Call to undefined function wp_list_widgets() in /home/leysin9/public_html/leysinpark.ch/wp-admin/widgets.php on line 351

    Does anyone have an idea?

    Thanks so much in advance.

    Blaise

    Thread Starter leysinpark

    (@leysinpark)

    Hello Shane,

    Thanks for your message but as mentioned above, I have already done the following and resolved the problem with the access to my dashboard. I just didn’t want to do anything that would cause more issues therefore was asking if this fix was ok to do.

    On the other hand, my issue is the fact that I cannot access my widgets anymore. I get the following error when I click on widgets in my wp admin panel: Fatal error: Call to undefined function wp_list_widgets() in /home/leysin9/public_html/leysinpark.ch/wp-admin/widgets.php on line 351

    Does anyone have an idea?

    Thanks so much in advance.

    Blaise

    Thread Starter leysinpark

    (@leysinpark)

    Just found this.

    Could someone tell me if this is a good solution or should I find the source of this problem before resolving to this option:

    If you go to the top of widgets.php and make a similar mod:

    /** WordPress Administration Widgets API */
    //require_once(ABSPATH . ‘wp-admin/includes/widgets.php’);
    require_once(‘includes/widgets.php’);

    Thank you,

    Blaise

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error with Widgets’ is closed to new replies.