• Resolved Jamie Sheils

    (@jamiesheils)


    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)
  • Plugin Author Mej de Castro

    (@mej)

    Hi @jamiesheils , this is interesting. I can’t replicate the issue on my end. You may shoot over the screenshots and details to [email protected] and our team can review that with you!

    Thank you,
    Mej

    Thread Starter Jamie Sheils

    (@jamiesheils)

    Hi Mej,

    Thank you for this, I have now sent an email to ?[email protected]?with the requested screenshots.

    Looking forward for your reply!

    Plugin Author Mej de Castro

    (@mej)

    Update here: The issue is related to the Jobhunt theme and litespeed-cache plugin.

    Recommend adding a code like below to the theme.

    $template_file = $post != NULL ? get_post_meta( $post->ID, '_wp_page_template', true ) : "template-homepage-v1.php";

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get property ‘ID’ of non-object’ is closed to new replies.