WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom menus delete upon save (5 posts)

  1. alienalias
    Member
    Posted 1 year ago #

    OK, so my last thread was closed b/c the issue in the title thread was resolved. Per request of the mod, I am opening up a new thread for the remaining issue.

    I have custom menu's that I use. I have attempted to move one of my submenu items up a slot because it was out of order. When I click Save, the entire menu disappears, is deleted, and I get a funky set of bullet points all down the right side of the website on every page. So, I revert/restore to a backed up version. Tried again, does it again.

    It is not a plugin issue as I have been using the same plugins for months, and last did updates a week earlier and everything worked fine until today.

    Mod WPyoig was nice enough to post in the earlier thread: "I looked at your site and it looks like something got messed up with the menu - an element around the menu is missing a CSS class that relates to the menu."

    Exactly as is occurring with the other post I referenced, every time I try to save my custom menu the entire menu is deleted, ceases to exist, and I have to restore to a backup. So, ANY other suggestions? Anybody else had this problem or been able to fix it? I've found at least 3 other threads here involving issues with the custom menu disappearing when the user tries to save it. Please HELP, and I extend sincere thanks for whatever you offer!

    BTW- I have this up as a job on the jobs board and if it is not resolved through my efforts here, I'm willing to compensate someone to fix it for me. Thanks again all!

    (If anyone is interested in earlier responses so they are not duplicated, original thread was here http://wordpress.org/support/topic/error-message-messing-up-my-backend-plz-help-cant-work-on-site-til-resolved?replies=21 )

    -Kristina-

  2. kmessinger
    Volunteer Moderator
    Posted 1 year ago #

    Your css has some errors. Some of the entries are missing the
    ; and many have parsing error which means some comment about the css itself is causing a problem.

    This could explain what WPYogi was talking about.

  3. kmessinger
    Volunteer Moderator
    Posted 1 year ago #

    Is the custom menu a plugin?

  4. alienalias
    Member
    Posted 1 year ago #

    kmessinger... THANK YOU for trying to help me out!!

    First, to forewarn you, I frequently refer to myself as a technical nitwit, so please forgive me if I don't quite answer the question in the right way, I'm trying my best. :)

    No, the custom menu is not a plugin. I do have a custom theme though. It is the standard Appearance---->Menu page. I had to create a custom menu because I didn't want all pages automatically added to my menu. The custom menu has worked perfectly for months, and it wasn't until last night I had this problem. I updated to the newest WP version last week and attempted to tweak my menu last night, and every time I do that it messes up the menu/deletes it, and we have to restore to backup.

  5. alienalias
    Member
    Posted 1 year ago #

    YAY, YAY, YAY! This has been resolved from the guys managing my server, and they believe it had to do with the WP update I did last week. I am posting their discovery and resolution in case it helps anybody else here whom has posted similar problems and issues with non-saving and disappearing custom menus upon save. I replaced my folder names etc with ___________'s in the message below. As follows:

    "Hello Kristina,

    Thank you for your continued patience. I was able to figure out exactly what was happening, and have resolved the issue at this time.

    Whenever changes were made to the menu, wordpress was attempting to write to a table in the database named '______________'. The problem was that this table did not exist, and as a result wordpress would freak out and nullify the menu. For example, here is an excerpt from the logs when I initially attempted to modify the menu:

    ===========================
    [02-Feb-2013 00:39:06] WordPress database error Table '___________.______________' doesn't exist for query SELECT cat_ID FROM _________categories WHERE category_nicename = 'main' made by wp_update_nav_menu_object, wp_update_term, apply_filters('term_id_filter'), call_user_func_array, global_terms
    [02-Feb-2013 00:39:06] WordPress database error Table '___________.______________' doesn't exist for query SELECT cat_ID FROM __________categories WHERE cat_ID = 5 made by wp_update_nav_menu_object, wp_update_term, apply_filters('term_id_filter'), call_user_func_array, global_terms
    [02-Feb-2013 00:39:06] WordPress database error Table '___________.______________' doesn't exist for query INSERT INTO ______________ (cat_ID,cat_name,category_nicename) VALUES ('5','Main','main') made by wp_update_nav_menu_object, wp_upd
    ===========================

    I checked through some of the backups of your database in hopes of finding this table, but it did not exist in any of the backups either. What I ended up doing was a manual creation of the table '______________' with the three columns (cat_ID,cat_name,category_nicename) mentioned by the error message. After doing so I was then able to save changes to your menu without it being deleted.

    As for why this suddenly became an issue when the table never existed prior to this, I'm not entirely sure, it's possible that a wordpress update changed the way that the menu categories were stored.

    Please let us know if you notice any lingering issues on your end."
    --------------------------------------------------
    So, this appears to be RESOLVED! THANK YOU to all who offered their help and insight, in this thread and the previous one!

Topic Closed

This topic has been closed to new replies.

About this Topic