• It does not appear to be a critical issue, as the website and plugin seem to work fine. But the plugin generates a PHP warning on all pages with Query Monitor.

    “Attempt to read property “post_type” on null”

        wp-includes/class-wp-query.php:4273
        WP_Query->is_singular()
        wp-includes/query.php:769
        is_singular()
        wp-content/plugins/whp-hide-posts/inc/class-post-hide.php:107
        MartinCV\WHP\Post_Hide->exclude_posts()
        wp-includes/class-wp-hook.php:307
        do_action_ref_array('pre_get_posts')
        wp-includes/class-wp-query.php:1804
        WP_Query->get_posts()
        wp-includes/class-wp-query.php:3542
        WP_Query->query()
        wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Core.php:1498
        YARPP->display_related()
        wp-content/plugins/yet-another-related-posts-plugin/includes/related_functions.php:25
        yarpp_related()
        wp-content/themes/twentyseventeen-child/functions.php:143
        twentyseventeen_entry_footer()
        wp-content/themes/twentyseventeen-child/template-parts/post/content.php:167
        load_template('wp-content/themes/twentyseventeen-child/template-parts/post/content.php')
        wp-includes/template.php:716
        locate_template()
        wp-includes/general-template.php:204
        get_template_part('template-parts/post/content','')
        wp-content/themes/twentyseventeen-child/single.php:24

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author MartinCV

    (@martin7ba)

    Thank you for bringing this to my attention. I will fix this notice in the next update.

    Best regards,
    Martin

Viewing 1 replies (of 1 total)
  • The topic ‘Attempt to read property “post_type” on null’ is closed to new replies.