Forum Replies Created

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

    (@mpreuilh)

    Hi, sorry for my late return.
    Yes the plugin create two new menu entry.
    I create them with an array like this :
    “$all_menu = array(
    array(
    “name” => “Principal”,
    “desc” => “Menu principal”
    ),
    array(
    “name” => “Footer”,
    “desc” => “Menu pied de page”
    )
    );” +
    “foreach ($all_menu as $menu) {
    register_nav_menus(
    array(
    $menu[“name”] => $menu[“desc”]
    )
    );
    }”

    And with this example I’ll have two new items in my admin menu “M” and “F”.
    They are top menu and when I click them I fall on a “Not Found” classic page.

    Thread Starter mPreuilh

    (@mpreuilh)

    Hi,
    Thanks for your help.
    We find the issue, it was created by my custom theme menus. The plugin takes the last name and desc of all my custom menus and create two entries with it and my last name had an accent in it wihch was the source of the php error.
    What it’s still a mystery is why the plugin is using my last custom theme menu and create two admin menu from it (and this is happening on all my websites).
    For exemple, in this theme I have four custom menus I created with register_nav_menus. The last one is : name = “Legal” and desc “Menu legal pied de page”.
    I then have two new admin menu in Menu Editor Pro “L” and “M”.
    Not sure I’m very clear, sorry about that.
    Thanks again for your help

    Thread Starter mPreuilh

    (@mpreuilh)

    Thanks for your answer!

    I’m using all the plugins I’m using in this website on other sites where I have no issue with Admin Menu Editor, but I try to deactivate all of my plugins.
    I also checked all of menu and submenu names of the admin menu, also renamed my custom post type to remove accents (even if accent seems to be ok on other websites).
    I found nothing such as unsual characters or symbols.

    But the error is still there.

    Am I missing something?

Viewing 3 replies - 1 through 3 (of 3 total)