Title: Fatal error: Cannot declare class Extra_Walker_Nav_Menu_Edit
Last modified: September 18, 2019

---

# Fatal error: Cannot declare class Extra_Walker_Nav_Menu_Edit

 *  [dbrooke1007](https://wordpress.org/support/users/dbrooke1007/)
 * (@dbrooke1007)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cannot-declare-class-extra_walker_nav_menu_edit-2/)
 * WP Version 5.2.3
    IfMenu v: 0.15 PHP v: 7.0 Theme: ElegantThemes Extra (latest)
 * Error:
    “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](https://wordpress.org/support/users/andreiigna/)
 * (@andreiigna)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cannot-declare-class-extra_walker_nav_menu_edit-2/#post-12000224)
 * Hi,
 * 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 [https://github.com/AdvancedCustomFields/acf/issues/49](https://github.com/AdvancedCustomFields/acf/issues/49)
   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 6 years, 8 months ago by [Andrei](https://wordpress.org/support/users/andreiigna/).

Viewing 1 replies (of 1 total)

The topic ‘Fatal error: Cannot declare class Extra_Walker_Nav_Menu_Edit’ is closed
to new replies.

 * ![](https://ps.w.org/if-menu/assets/icon-256x256.png?rev=1862232)
 * [If Menu - Visibility control for Menus](https://wordpress.org/plugins/if-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/if-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/if-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/if-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/if-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/if-menu/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Andrei](https://wordpress.org/support/users/andreiigna/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cannot-declare-class-extra_walker_nav_menu_edit-2/#post-12000224)
 * Status: not resolved