• Hi,

    I have freshly installed your plugin, and when I try to make any changes (reorder, change title, change link) for any item, when I click the save changes button the changes revert to default in the editor itself – the changes are never applied to the actual admin menu.

    The menu I am trying to change is the WooCommerce products menu. I want to move a submenu item to be the first in the list, so that clicking products defaults to opening it.
    See image for example: https://ibb.co/bFQtnWP

    This is a regular single site WordPress setup. Nothing funny.
    Wordpress version is 5.4.1

    I have tried uninstalling and reinstalling the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    When you click “Save Changes”, does the plugin display a message like “Settings saved” or does it just reload the page?

    In many cases this kind of a problem is related to the WordPress database. Please search the wp_options table for options named ws_menu_editor. Normally, there should be only one result. Please delete all options that match that name (it may be a good idea to backup the database first), then try saving some menu changes again.

    Hi Janis! Hope you are doing good today.

    I’m with the same issue, when I’ve clicked “Save Changes” the plugin display “Settings Saved” but actually do not apply the new changes. I’ve checked at database for option ws_menu_editor at wp_options table but there isn’t.

    
    ### wp-core ###
    
    version: 5.4.1
    site_language: en_US
    user_language: en_US
    timezone: -10:00
    permalink: /%postname%/
    https_status: true
    user_registration: 0
    default_comment_status: open
    multisite: false
    user_count: 1357
    dotorg_communication: true
    
    ### wp-plugins-active (24) ###
    
    Admin Menu Editor: version: 1.9.5, author: Janis Elsts
    Astra Pro: version: 2.4.1, author: Brainstorm Force
    AutomateWoo: version: 4.9.3, author: WooCommerce
    AutomateWoo - Refer A Friend Add-on: version: 2.5.5, author: WooCommerce
    Elementor: version: 2.9.8, author: Elementor.com
    Elementor Pro: version: 2.9.4, author: Elementor.com
    Envato Market: version: 2.0.3, author: Envato
    Facebook for WooCommerce: version: 1.11.2, author: Facebook
    Mailchimp for WooCommerce: version: 2.4.0, author: Mailchimp
    PayPal Express Checkout Payment Gateway for WooCommerce ( Basic ): version: 1.4.5, author: WebToffee
    Rank Math SEO: version: 1.0.42.3, author: Rank Math
    SG Optimizer: version: 5.5.4, author: SiteGround
    Smart Manager For WooCommerce – Stock Management, Bulk Edit & more...: version: 4.3.11, author: StoreApps
    Ultimate Addons for Elementor: version: 1.24.2, author: Brainstorm Force
    URL Shortener by MyThemeShop: version: 1.0.16, author: MyThemeShop
    WooCommerce: version: 4.1.0, author: Automattic
    WooCommerce Google Analytics Integration: version: 1.4.21, author: WooCommerce
    WooCommerce Table Rate Shipping: version: 4.2.1, author: Bolder Elements
    Wordfence Security: version: 7.4.7, author: Wordfence
    WP Crontrol: version: 1.8.3, author: John Blackbourn & crontributors
    WPForms Lite: version: 1.6.0.1, author: WPForms
    WP Mail SMTP: version: 2.0.1, author: WPForms
    YITH WooCommerce Gift Cards: version: 2.0.4, author: YITH
    YITH WooCommerce Wishlist: version: 3.0.10, author: YITH
    
    ### wp-server ###
    
    server_architecture: Linux 3.12.18-clouder0 x86_64
    httpd_software: Apache
    php_version: 7.3.16 64bit
    php_sapi: cgi-fcgi
    max_input_variables: 3000
    time_limit: 120
    memory_limit: 768M
    max_input_time: 120
    upload_max_size: 128M
    php_post_max_size: 128M
    curl_version: 7.59.0 OpenSSL/1.0.2r
    suhosin: false
    imagick_availability: false
    htaccess_extra_rules: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 5.6.40-84.0-log
    client_version: mysqlnd 5.0.12-dev
    
    Plugin Author Janis Elsts

    (@whiteshadow)

    Thank you for including all of those details, @marlonlamancio. The core information, server configuration and database versions all look fine to me. I’m not familiar with some of those active plugins, so I’m not sure if there could be a plugin conflict of some kind.

    Given that the plugin says “settings saved” but the wp_options table doesn’t contain a ws_menu_editor option, it’s likely that the problem is somewhere between the plugin calling the update_option() API function and the related SQL query reaching the database. Could any of the active plugins change or filter data that gets saved to/loaded from the database? For example, are any of them doing database caching or some kind of query filtering? If so, try temporarily deactivating those plugins and see if that makes any difference.

    Edit:
    You could also try logging all database queries to see if there are any queries that try to create or modify the ws_menu_editor option. Here’s one way to log queries:
    https://cleody.com/log-wordpress-database-queries/

    It looks like this code could quickly generate a huge log file if used on a popular site, so I would not recommend using it for long.

    • This reply was modified 4 years, 10 months ago by Janis Elsts.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Menu editor will not save changes’ is closed to new replies.