Trying to get property of non-object in /wp-includes/nav-menu.php on line 592 ??
-
Hi, im running wordpress 3.4.2 and
I currently ran into this problem:
I added a second wp_nav_menu(); in my header; to create a mobile phone menu. Everything works fine in the visual side, but when i turn ondefine(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, true);I get PHP notices:
[19-Nov-2012 09:05:10 UTC] PHP Notice: Trying to get property of non-object in /var/www/wp-includes/nav-menu.php on line 592On my Apache2 Error log, there are even Errors which overload my log files -.-
When I google this problem with this string;
Trying to get property of non-object in /wp-includes/nav-menu.php on line 592
it seems to be a common problem; but nobody wants / needs to fix it ?
So however, I could nail the problem down to my call to
wp_nav_menu( array(
‘container’ => ”,
‘menu_class’ => ‘tinymenu’,
‘echo’ => true,
‘before’ => ”,
‘after’ => ”,
‘link_before’ => ”,
‘link_after’ => ”,
‘depth’ => 0,
‘exclude’ => ‘290, 293, 282, 286’,
‘walker’ => new Roots_Nav_Walker())
);
But even without any parameters (only wp_nav_menu) leads to this PHP notice, and I want to fix it, because it burries me.Hope you can help me.
with kind regards
- The topic ‘Trying to get property of non-object in /wp-includes/nav-menu.php on line 592 ??’ is closed to new replies.