• Resolved jezzdalgarno

    (@jezzdalgarno)


    Hi,

    Suddenly the ‘menus’ page of my WP Admin (Appearance/menus) has stopped displaying correctly. All I get is a completly white screen, with a single black bullet point in the top left hand corner, absolutely nothing else. Viewing the source code for the page shows the following code only:

    <li id="menu-item-186" class="menu-item menu-item-depth-0 menu-item-department menu-item-edit-inactive">
    <dl class="menu-item-bar">
    <dt class="menu-item-handle">
    <span class="item-title">

    It has been working 100% fine, I have checked in all major browsers and they all show the same, I have also checked on a colleagues PC and get the same result. I can find no other areas of the admin that seem broken, only this one page. Directly prior to me first encountering the issue I was adding a new category, I then wanted to add it to my menu, so selected (Appearance/menus) and encountered the issue I’ve described.

    I have tried reinstalling via (Dashboard/Updates/Re-install Automatically), I have also tried replacing ‘nav-menus.php’ manually with a version from another blog, neither had any effect.

    I am wondering if it’s a database issue, I’ve looked at all the tables but can’t identify the onee that would control the menus. Any assistance would be gratefully received, thanks.

    —– UPDATE ——
    Looking at the ‘wp_term_relationships’ table I noticed that the first two records share the same object_id, ‘1’. This seems weird to me, does this table control ‘menues’?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi
    I am getting the exact same problem too. The Nav Menu area where my pages can be dragged and dropped for the Nav bar section of the site is just blank. It was working fine for a week. It must be WP as i have tried a few themes and it still will not appear. The site works fine live but it means I am stuck with a 30 page site design. Handcuffed.

    Any help appreciated. Have deactivated all plug ins. Done some “fresh” page uploads to overwrite old files in the admin area like the nav menu one.

    Thanks
    D

    @dubman: Please don’t highjack another poster’s thread. Post a new topic.

    Thread Starter jezzdalgarno

    (@jezzdalgarno)

    I checked the PHP error log, found this:
    [14-Jan-2011 08:53:58] PHP Catchable fatal error: Object of class WP_Error could not be converted to string in D:\htdocs\intranet\wp-includes\formatting.php on line 433
    I think this is probably just a result of the fact the proper HTML code isn’t being generated, since line 433 is part of the function wp_check_invalid_utf8 function.

    Thread Starter jezzdalgarno

    (@jezzdalgarno)

    FIXED ———–

    The issue was the result of using and then deleting a plugin that allows you to create custom post types and taxonomies. I had created a custom post type and then added it to the menu. Having deleted the post type and then deleting the plugin there were no traces of the menu item, however I then realised that the menu was still trying, (and failing) to create the menu item behind the scenes. Having gone through the DB and deleted every trace of the menu_item_id and post_id my admin menus page is now displaying correctly again.

    Thanks jezz. That is interesting and very cumbersome that WP does not somehow clean out the DB when you delete a plugin. I have the new WP 3.04 installed so hope I do not get the Admin menus disaster not showing again.

    nich008

    (@nich008)

    Same here, on 3.04. Deleting a custom post type has given me exactly the same symptoms. I can’t access the Menu section on the dashboard, same HTML generated as jezzdalgarno except for a different menu item name.

    Could someone clarify how to do what jezzdalgarno did?

    Having gone through the DB and deleted every trace of the menu_item_id and post_id my admin menus page is now displaying correctly again.

    Or indeed any other solution that could un-break my site?

    Thread Starter jezzdalgarno

    (@jezzdalgarno)

    Hi, here is basically what I did – if you go to your blog, to a page that contains the menu, then view the source, you may find that there is code for a menu item that you can’t see, it will show a menu_item_id, this will correspond to the spurious item that has not been deleted correctly. What I did next was to go through the WP database and remove anything that references that menu_item_id. I only found a spurious post_id and deleted references to that as well.

    I don’t know if this helps, basically the problem arose because I had created a custom post type, added it to the menu, created a post based on it, then deleted the plugin. Unfortunately it did not do a good job of cleaning up after itself!

    nich008

    (@nich008)

    @jezzdalgarno – thanks – your approach worked.

    I established the menu-item-id that was being generated in the top level item of the broken menu and deleted the row of that ID in the wp_posts table. (It wasn’t a real post)

    That then generated another item as the top level in the menu, and I deleted that too.

    And so on, trying the menus section on the dashboard each time, until it miraculously reappeared.

    Not sure what damage I’ve done, but at least it’s usable again.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Admin 'menus' page not displaying’ is closed to new replies.