• When I call page which doesn’t exists, there are NOTICE ERRORS like:
    Notice: Trying to get property of non-object in /var/www/html/barb/wp-content/plugins/wp-members/inc/class-wp-members.php on line 278

    This is that line:
    $meta = get_post_meta( $post->ID, ‘_wpmem_block’, true );
    where $post is null so $post->ID throws error.

    Could you fix it, eg add line:
    if (!$post)
    return ;

    ?

    https://wordpress.org/plugins/wp-members/

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    This will actually be covered in version 3.0.9 (which I am releasing tonight). It will be slightly different from this as it will check if the post object has a value. If not, it will still return a filterable boolean from the function.

Viewing 1 replies (of 1 total)
  • The topic ‘Notice errors where no post’ is closed to new replies.