WordPress.org

Ready to get started?Download WordPress

Forums

Problems with the Widget's Dashboard (16 posts)

  1. boylucas
    Member
    Posted 5 years ago #

    I just install a Theme (German Newspaper), and when I runned it, I don't see any of may widgets in the sidebar, so I reinstall my previous theme (Breaking News) to see what problems have the newest, but my surprise was, that, I can management my widget anymore:

    Fatal error: Call to undefined function add_meta_box() in /home4/XXXXXX/public_html/XXXXXXX/wp-admin/includes/dashboard.php on line 129

    Before this I had login in the widget's dashboard without problms.

    Thanks

  2. boylucas
    Member
    Posted 5 years ago #

    Ok I know my English is horrible, but realy need your help, I hope that you could help me...

    Remember, my widgets' dashboard was working well, but after I tried that theme, it ceased to function and when I click the link, it only says "Fatal error: Call to undefined function add_meta_box() in /home4/XXXXXX/public_html/XXXXXXX/wp-admin/includes/dashboard.php on line 129"

  3. halm
    Member
    Posted 5 years ago #

    I have the same problem trying to switch from "Breaking News", so I think we have found the culprit.

    Question is, what can be done about it?

  4. kmessinger
    Volunteer Moderator
    Posted 5 years ago #

    Call to an undefined function is almost always a missing or corrupt file. Somewhere a file got switched between new and old or left out when you reinstalled.

  5. halm
    Member
    Posted 5 years ago #

    Sounds like we can either uncomment the call for add_meta_box in dashboard.php, or replace the corrupted/missing file to solve this then.

    Unfortunately, I don't know which is safer, and have no idea where to put the function php-file (or where to get it in the first place)

    Any ideas/expert advice?

  6. kmessinger
    Volunteer Moderator
    Posted 5 years ago #

    dashboard.php is in wp-admin/includes. Before moving any files you might compare file sizes/dates with a fresh copy of 2.7. You should be able to do this using your ftp program.

  7. britchat
    Member
    Posted 5 years ago #

    I have exactly the same problem after upgrading to version 2.7 - when I click on widgets in my dashboard I get the same error. I used the automatic upgrade option and have just tried downloading version 2.7 and uploaded just the dashboard.php file and this has made no difference - there is a problem with lne 129 on the dashboard.php as noted above with the following error - Fatal error: Call to undefined function add_meta_box() in /mounted-storage/home43a/sub002/sc32306-YRBZ - please help

  8. kmessinger
    Volunteer Moderator
    Posted 5 years ago #

    Fatal error: Call to undefined function add_meta_box() in /mounted-storage/home43a/sub002/sc32306-YRBZ

    Where is the dashboard php here?

    This is really simple. Thoussands of people use WP with no problem. Call to undefined function is a missing or contaminated file (especially if your blog was working fine before the upgrade). I have seen people download the files 5 times and finally get it right. Follow this http://codex.wordpress.org/Upgrading_WordPress_Extended , make sure your db is backed up.

  9. britchat
    Member
    Posted 5 years ago #

    I used the automatic upgrade and the end of the error has this on it - wp-admin/includes/dashboard.php on line 129, as above

  10. britchat
    Member
    Posted 5 years ago #

    The auto upgrade is a plugin that takes you through all the steps as shown on the link you placed above, also, I extracted the dashboard.php file and re-uploaded this on it's own

  11. kmessinger
    Volunteer Moderator
    Posted 5 years ago #

    Seems like all you can do is . . .

    You can retry the autoupgrade.
    Do the upgrade manually. (this is what I think you need to do)
    Go thru each file and compare what you have on the local machine vs server
    Fall back to a previous version, hoping all your backups are ok.
    Hope someone comes along with an easy solution.

  12. halm
    Member
    Posted 5 years ago #

    Went through it all twice, but every time I thought I was in the clear and tried to access my widgets, I got the same error message about add_meta_box() in dashboard.php.

    Then I tried deactivating the plugins, and there was no problems. So, that got me thinking ...

    I hope you'll pardon me for gloating a bit, 'cause I actually figured this out myself ...

    What plugin do I have installed that could interfere with the Widgets menu through a call in dashboard.php? Widgetizable Dashboard plugin, of course.

    With that deactivated, everything is fine again - except the Middle East :P

    Hope this'll help you guys with the same problem. (WP2.7 dashboard is pretty customizable anyhow)

  13. kmessinger
    Volunteer Moderator
    Posted 5 years ago #

    Then I tried deactivating the plugins, and there was no problems.

    You want to do this before any upgrade is installed. It is part of the basic instructions.

    Glad you got it working!

  14. halm
    Member
    Posted 5 years ago #

    You want to do this before any upgrade is installed. It is part of the basic instructions.

    Yeah, no worries. But re-activating them after upgrade made the issue come back, hence the de-actvation ;P

    I honestly don't have the balls to break basic instructions!

  15. themeweaver
    Member
    Posted 5 years ago #

    I give up!
    Thank god I don't have lots of stuff in this test site...going to delete the whole thing and start again

  16. otronix
    Member
    Posted 5 years ago #

    +1

    Some brokenness here.

Topic Closed

This topic has been closed to new replies.

About this Topic