Title: Php Error 286
Last modified: February 14, 2018

---

# Php Error 286

 *  [thewhitesky](https://wordpress.org/support/users/thewhitesky/)
 * (@thewhitesky)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-error-286/)
 * I keep getting the following PHP error:
 * Notice: Trying to get property of non-object in /home/mijzpycq/public_html/wp-
   content/plugins/conditional-menus/init.php on line 286
 * Does anyone have any solutions? The plugin hasn’t been updated in over 7 months,
   it seems as though they just abandoned it altogether. Any help would be appreciated.
   Thank you.

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

 *  [mh](https://wordpress.org/support/users/mmgh/)
 * (@mmgh)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/php-error-286/#post-10337265)
 * I get the error on a different line.
 * Notice: Undefined offset: 0 in xyz/wp-content/plugins/conditional-menus/init.
   php on line 232
 *  [tianth](https://wordpress.org/support/users/tianth/)
 * (@tianth)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-286/#post-10600066)
 * Hi [@thewhitesky](https://wordpress.org/support/users/thewhitesky/)!
    try this:
 *     ```
       Line 284: if( ! $visible && ! empty( $logic['post_type'] ) ) {
   
       					$slug = null; 
   
       //The magic is to test if $query_object->post_name exists
       					if( $query_object && $query_object->post_name ){
       						$slug = $shop ? $this->get_wc_shop() : $query_object->post_name;
       					}; 	
   
       					foreach( $logic['post_type'] as $post_type => $posts ) { (...)
       ```
   
 * I think the creator should update for something like this
    -  This reply was modified 7 years, 9 months ago by [tianth](https://wordpress.org/support/users/tianth/).
    -  This reply was modified 7 years, 9 months ago by [tianth](https://wordpress.org/support/users/tianth/).
    -  This reply was modified 7 years, 9 months ago by [tianth](https://wordpress.org/support/users/tianth/).

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

The topic ‘Php Error 286’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/conditional-menus.svg)
 * [Conditional Menus](https://wordpress.org/plugins/conditional-menus/)
 * [Support Threads](https://wordpress.org/support/plugin/conditional-menus/)
 * [Active Topics](https://wordpress.org/support/plugin/conditional-menus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/conditional-menus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/conditional-menus/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [tianth](https://wordpress.org/support/users/tianth/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/php-error-286/#post-10600066)
 * Status: not resolved