• When WordPress renders non-posts/non-pages, the plugin is invoked and raises the error below. Please update the plugin to check if the $post is set before checking for a registered redirect.

    Trying to get property 'ID' of non-object

    This error occurs at plugins/quick-pagepost-redirect-plugin/page_post_redirect_plugin.php in quick_page_post_reds::ppr_do_redirect, line 2211. The global $post variable is not always set when, for example, rendering RSS feeds.

Viewing 1 replies (of 1 total)
  • yes please fix this, this gives errors in the log for php 8
    Attempt to read property “ID” on null in …./wp-content/plugins/quick-pagepost-redirect-plugin/page_post_redirect_plugin.php on line 2220

    line 2221:
    $post->ID = isset($post->ID) ? $post->ID : ”;

    • This reply was modified 4 years, 1 month ago by fort123.
    • This reply was modified 4 years, 1 month ago by fort123.
Viewing 1 replies (of 1 total)
  • The topic ‘Error: Trying to get property ‘ID’ of non-object’ is closed to new replies.