Title: Plugin break Walker Menu
Last modified: September 22, 2017

---

# Plugin break Walker Menu

 *  Resolved [neilwatson27](https://wordpress.org/support/users/neilwatson27/)
 * (@neilwatson27)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-break-walker-menu/)
 * I have just downloaded/installed/activated the plugin and it breaks the Walker_Nav_Menu.
   I get the following message: Notice: Undefined property: stdClass::$current in…/
   wp-content/themes/ebmt/functions.php on line 33. Line 33 is part of the following(
   I have made the line bold):
 * class top_bar_walker extends Walker_Nav_Menu {
 *  function display_element( $element, &$children_elements, $max_depth, $depth=
   0, $args, &$output ) {
    $element->has_children = !empty( $children_elements[$
   element->ID] ); **$element->classes[] = ( $element->current || $element->current_item_ancestor)?‘
   active’ : ”;** $element->classes[] = ( $element->has_children ) ? ‘has-dropdown
   not-click’ : ”;
 *  parent::display_element( $element, $children_elements, $max_depth, $depth, $
   args, $output );
    }
 *  function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id
   = 0 ) {
    $item_html = ”; parent::start_el( $item_html, $object, $depth, $args);
 *  $output .= ( $depth == 0 ) ? ‘<li class=”divider”>‘ : ”;
 *  $classes = empty( $object->classes ) ? array() : (array) $object->classes;
    
   if ( in_array(‘label’, $classes) ) { $output .= ‘<li class=”divider”>‘; $item_html
   = preg_replace( ‘/<a[^>]*>(.*)<\/a>/iU’, ‘<label>$1</label>’, $item_html ); }
 *  if ( in_array(‘divider’, $classes) ) {
    $item_html = preg_replace( ‘/<a[^>]*
   >( .* )<\/a>/iU’, ”, $item_html ); }
 *  $output .= $item_html;
    }
 *  function start_lvl( &$output, $depth = 0, $args = array() ) {
    $output .= “\
   n<ul class=\”sub-menu dropdown\”>\n”; }
 * }
 * Any ides on how to get around this?

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

 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-break-walker-menu/#post-9553669)
 * Hello [@neilwatson27](https://wordpress.org/support/users/neilwatson27/)
 * Hope you are doing well!
 * Notices usually do not affect the functionality of a site. Would you please clarify
   what theme is active on your site? I’ve tested the plugin from my end with default
   WordPress theme and can’t replicate the same notice.
 * Would you please also let us know if the same notice showing up when all the 
   other plugins are deactivated?
 * Please advise,
 * Kind regards,
    Nastia
 *  Plugin Author [jdailey](https://wordpress.org/support/users/jdailey/)
 * (@jdailey)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/plugin-break-walker-menu/#post-9617376)
 * Thank you for contacting our support team. I am going to close this topic for
   now. If you would like us to help resolve the issue please provide follow-up 
   information.

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

The topic ‘Plugin break Walker Menu’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/coursepress_f7e9b6.svg)
 * [CoursePress Learning Management System](https://wordpress.org/plugins/coursepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/coursepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/coursepress/)
 * [Active Topics](https://wordpress.org/support/plugin/coursepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/coursepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/coursepress/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [jdailey](https://wordpress.org/support/users/jdailey/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/plugin-break-walker-menu/#post-9617376)
 * Status: resolved