Get property ‘ID’ of non-object
-
Hi, I would need advice on how to fix theses two errors when using Login WP Plugin to redirect users after Login:
Notice: Trying to get property ‘ID’ of non-object wp-content/themes/jobhunt/inc/admin/class-jobhunt-admin-meta-boxes.php on line 101
Notice: Trying to get property ‘public’ of non-object wp-content/plugins/litespeed-cache/src/metabox.cls.php on line 55
Line 101 is:
$template_file = get_post_meta( $post->ID, ‘_wp_page_template’, true );
Regards,
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Get property ‘ID’ of non-object’ is closed to new replies.