Support » Plugin: If Menu - Visibility control for Menu Items » Fatal error: Cannot declare class Extra_Walker_Nav_Menu_Edit

  • WP Version 5.2.3
    IfMenu v: 0.15
    PHP v: 7.0
    Theme: ElegantThemes Extra (latest)

    “An error of type E_COMPILE_ERROR was caused in line 1732 of the file /home/account/public_html/stage/wp-content/themes/Extra/includes/admin/admin.php. Error message: Cannot declare class Extra_Walker_Nav_Menu_Edit, because the name is already in use”

    Basically, enabling ifMenu causes this error when clicking (in wordpress backend) ‘Appearance’->’Menus’.

    If ifMenu is disabled, no error.
    FYI, there is another closed / unanswered thread regarding this error.

Viewing 1 replies (of 1 total)
  • Plugin Author Andrei



    The functionality related to menu items is limited in WordPress Admin and sometimes plugins or themes create conflicts when enabled at the same time.

    This is not an error created specifically by If Menu. For example, on other sites If Menu would have been installed for a long period, then a new theme or plugin is installed and shows the error.

    There’s a workaround that plugin and theme developers can add to their code, to ensure compatibility. If Menu has this fix, and it seems that is missing from ElegantThemes Extra.
    I’ve send a message related to this to Elegant Themes developers, but haven’t seen any activity about the fix. With a website that is directly affected by this problem, you can contact their support team. Here are more technical details on how this can be solved and how the fix was implemented in another plugin to add compatibility.

    Hope this helps

    • This reply was modified 1 year, 3 months ago by Andrei.
Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error: Cannot declare class Extra_Walker_Nav_Menu_Edit’ is closed to new replies.