Title: [Plugin: Nav Menu Roles] Fatal error
Last modified: August 20, 2016

---

# [Plugin: Nav Menu Roles] Fatal error

 *  Resolved [Crandel](https://wordpress.org/support/users/crandel/)
 * (@crandel)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-nav-menu-roles-fatal-error/)
 * Hi, very interesting plug-in.
 * But when I activate the plug-in, I get following error on my page:
 * Fatal error: Call-time pass-by-reference has been removed in …\wp-content\plugins\
   nav-menu-roles\inc\class.Nav_Menu_Role_Walker.php on line 39
 * [http://wordpress.org/extend/plugins/nav-menu-roles/](http://wordpress.org/extend/plugins/nav-menu-roles/)

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

 *  Plugin Author [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-nav-menu-roles-fatal-error/#post-3060757)
 * What version of PHP are you using? What version of WP? Does this still happen
   if you disable other plugins? I cannot duplicate this locally or live, so I’m
   a bit stumped.
 * edit:
 * when stumped, turn to google. would you test out my version from github to see
   if this resolves your issue?
    [https://github.com/helgatheviking/Nav-Menu-Roles/zipball/master](https://github.com/helgatheviking/Nav-Menu-Roles/zipball/master)
 *  Thread Starter [Crandel](https://wordpress.org/support/users/crandel/)
 * (@crandel)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-nav-menu-roles-fatal-error/#post-3060789)
 * Hi, I resolve bug removing the & from &$output in the two lines:
    parent::start_el(&
   $output, $item, $depth, $args );
 * Anyway, I change the code because I have conflict with my theme. The theme add‘
   wp_nav_menu_args’ filter too.
 * Then I lose all menu format.
 * What I do is remove the ‘wp_nav_menu_args’ filter and register to ‘walker_nav_menu_start_el’.
 * And all work good.
 *  Plugin Author [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-nav-menu-roles-fatal-error/#post-3060805)
 * Ok, that’s what I did to fix the bug too. I will push the update out to WordPress
   as soon as possible.
 * Does your theme use a custom Walker with `wp_nav_menu_args` ? Because otherwise
   the $args should just be merged.
 *  Thread Starter [Crandel](https://wordpress.org/support/users/crandel/)
 * (@crandel)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-nav-menu-roles-fatal-error/#post-3060814)
 * Yes, it does.
 * This problem occurs not only with your plugin, I saw same conflict with all plugins
   that manipulate menu.
 * With yours, I understanding the problem.
 *  Plugin Author [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-nav-menu-roles-fatal-error/#post-3060826)
 * Good to know. But yeah, you cannot use multiple Walkers. You could, however, 
   adjust your theme to mimic the role-checking in my plugin.
 *  Plugin Author [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-nav-menu-roles-fatal-error/#post-3060922)
 * please check out the 1.2 update. It uses an alternative method of restricting
   the menu items and will no longer conflict with a theme or plugin’s custom nav
   Walker.

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

The topic ‘[Plugin: Nav Menu Roles] Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/nav-menu-roles/assets/icon-256x256.png?rev=2336319)
 * [Nav Menu Roles](https://wordpress.org/plugins/nav-menu-roles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nav-menu-roles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nav-menu-roles/)
 * [Active Topics](https://wordpress.org/support/plugin/nav-menu-roles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nav-menu-roles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nav-menu-roles/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [menu](https://wordpress.org/support/topic-tag/menu/)

 * 6 replies
 * 2 participants
 * Last reply from: [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-nav-menu-roles-fatal-error/#post-3060922)
 * Status: resolved