Site logo

Archived topic

Trying to get property of non-object : GP-PREMIUM plugin conflict

6 replies · Started by Gabriel on October 24, 2019

Viewing posts 1–7 of 7

I have these php errors :

Notice Trying to get property 'post_type' of non-object 1
+
wp-includes/link-template.php:271
Plugin: gp-premium
Notice Trying to get property 'post_name' of non-object 1
+
wp-includes/link-template.php:273
Plugin: gp-premium
Notice Trying to get property 'post_type' of non-object 1
+
wp-includes/link-template.php:277
Plugin: gp-premium
Notice Trying to get property 'hierarchical' of non-object 1
+
wp-includes/link-template.php:279
Plugin: gp-premium
Notice Trying to get property 'query_var' of non-object 1
+
wp-includes/link-template.php:289
Plugin: gp-premium
Notice Trying to get property 'post_type' of non-object 1
+
wp-includes/link-template.php:294
Plugin: gp-premium
Notice Trying to get property 'ID' of non-object 1
+
wp-includes/link-template.php:295
Plugin: gp-premium

When i disable GP-PREMIUM plugin i don't get any error.

Any idea?

Thx!

If i expend details on the first notice for exemple :

Notice Trying to get property ‘post_type’ of non-object 1
+
wp-includes/link-template.php:271
Plugin: gp-premium
Notice Trying to get property ‘post_name’ of non-object 1

wp-includes/link-template.php:271
get_post_permalink()
wp-content/themes/generatepress-child/includes/manage-boutiques.php:282
fav_list_menu()
wp-includes/class-wp-hook.php:286
apply_filters('wp_nav_menu_items')
wp-includes/nav-menu-template.php:243
wp_nav_menu()
wp-content/plugins/gp-premium/menu-plus/functions/generate-menu-plus.php:958
generate_slideout_navigation()
wp-includes/class-wp-hook.php:286
do_action('wp_footer')
wp-includes/general-template.php:2761
wp_footer()
wp-content/themes/generatepress/footer.php:61
load_template('wp-content/themes/generatepress/footer.php')
wp-includes/template.php:671
locate_template()
wp-includes/general-template.php:76
get_footer()
wp-content/themes/generatepress-child/products.php:105

Same thing for all notice.

Hi there,

part of those errors point at files within your child theme. Can you disable those functions/templates to test if they are at fault.

The fault is in "Menu Plus" of GP-PREMIUM. Good thing i don't need it. Now it is desactivated i don't get any error.

In fact i do need it.. for the slideout menu!

Solved, i was using get_post_permalink() for some reason i had some conflicts with menu plus. Now i'm using simply get_permalink() and i don't get any error code anymore.

Glad to hear you found the problem and the solution :)

This archived topic is closed to new replies.