Notice errors where no post
-
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 278This 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 ;?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Notice errors where no post’ is closed to new replies.