• Resolved Aircoder

    (@aircoder)


    When I go to appearance/menu the menu structure is always empty. If I add a page or anything else, then the description changes from
    “Add menu items from the column on the left.”
    to
    “Drag each item into the order you prefer. Click the arrow on the right of the item to reveal additional configuration options.”
    But there is nothing that has beed adeed and so nothing I can interact with.

    I have already tried deactivating all plugins and changing the theme to Twenty Thirteen. I also activated PHP debugging, but there are no error messages at all.

    Is there something else I can try?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Aircoder

    (@aircoder)

    So, I have noew information after I activated php debuging.

    When I add something to the menu structure there is this error:

    WordPress database error: [Duplicate entry ‘0’ for key ‘PRIMARY’]
    INSERT INTO bws_posts (post_author, post_date, post_date_gmt, post_content, post_content_filtered, post_title, post_excerpt, post_status, post_type, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order, post_mime_type, guid) VALUES (3, ‘2015-07-26 15:47:29’, ‘0000-00-00 00:00:00’, ‘ ‘, ”, ”, ”, ‘draft’, ‘nav_menu_item’, ‘closed’, ‘open’, ”, ”, ”, ”, ‘2015-07-26 15:47:29’, ‘0000-00-00 00:00:00’, 0, 1, ”, ”)

    Thread Starter Aircoder

    (@aircoder)

    Hmm, can’t I edit my posts?

    Well, I have now changed the post with id 0 to 1 (there was no ID 1) and then I could add one menu item, but it was not shown in the menu structure.

    It seems, that navbar elements are always created with id=0 and other entries empty or with default values.

    Thread Starter Aircoder

    (@aircoder)

    Well, I finally found out, that in the database table bws_posts I just had to set a hook for A_I (auto increment) for the id.

    That is the normal configuration, so I don’t know why this hook was missing in this database.

    Well, if somebody has the same problem, this is the solution:
    1. Activate php-debugging
    2. Try to add a menu item
    3. Look, which database table is shown in the sql error.
    4. Activate A_I for the id of this table, normaly the first coll in the table.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘menu structure not visible’ is closed to new replies.