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

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

  • This topic has 6 replies, 2 voices, and was last updated 11 months ago by David.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1043256
    Gabriel

    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!

    #1043261
    Gabriel

    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.

    #1043285
    David
    Staff
    Customer Support

    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.

    #1043585
    Gabriel

    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.

    #1043678
    Gabriel

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

    #1043685
    Gabriel

    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.

    #1043732
    David
    Staff
    Customer Support

    Glad to hear you found the problem and the solution 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.