• Resolved c4m

    (@c4m)


    Hi,

    I’m getting this message in my debug.log:

    PHP Notice: Trying to get property ‘post_type’ of non-object in /var/www/vhosts/xxxxx/httpdocs/wp-content/plugins/wordpress-seo/src/integrations/third-party/elementor.php on line 145

    I’m using:

    Yoast SEO Version 15.8
    Elementor Version 3.1.1
    Elementor Pro Version 3.0.10

    Best regards,
    Alina

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support devnihil

    (@devnihil)

    @c4m We’re sorry to hear you are experiencing this issue on your site.

    Can you please let us know whether any particular action triggers the error message?

    Also, can you confirm you are using WordPress 5.6.1? You can check by clicking on the W in the top left and selecting About. If you need to update, please check with your host provider. Please know that if you are using an older version of WordPress Core you may experience unexpected behavior with Yoast. This guide explains more: https://yoast.com/why-we-dont-support-old-wordpress-versions/

    If after ensuring that both WordPress, Yoast SEO, and your other plugins and themes are up to date the issue is still occurring, we’d next recommend performing a conflicting check to see whether another plugin or theme is interfering with the Yoast SEO Plugin. This will help us narrow down the exact cause and determine what the next steps are while saving you time.

    The fastest way to do this is to?deactivate all non-Yoast plugins and switch to a standard theme?like?Twenty Nineteen.?Test this on your development or staging site, if you have one. If not, we recommend using the?Health Check & Troubleshooting?plugin. This plugin allows you to run a conflict check?without affecting normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process:?How to check for plugin conflicts.

    Thread Starter c4m

    (@c4m)

    Hi,

    I’m using WordPress Version 5.6.1. and all my plugins and my theme are up to date.

    I’m going to do what you suggested.

    In the mean time, I have noticed, that the notice appears in my debug.log after updating a page designed with elementor.

    Best regrads,
    Alina

    Hi Alina,

    What is being described is an issue! Thank you for bringing this issue to our attention. We apologize for the trouble you are experiencing with our plugin. An issue report is currently open with our development team for this issue.

    We are unable to say when a resolution might be offered only that our developers are aware of it.

    In the meantime, we suggest signing up for our newsletter as that is where we will announce product changes and updates. You may sign-up for it here https://yoast.com/ by scrolling towards the bottom to complete the sign-up field.

    Thread Starter c4m

    (@c4m)

    Thanks!

    It looks like the issue persist in v. 16.1.1
    WP version 5.7.1, everything else is up to date.

    PHP Notice: Trying to get property ‘post_type’ of non-object in /public_html/wp-content/plugins/wordpress-seo/src/integrations/third-party/elementor.php on line 154

    I get the exact same error: Trying to get property ‘post_type’ of non-object in /var/www/wp-content/plugins/wordpress-seo/src/integrations/third-party/elementor.php on line 154.

    Same here

    Trying to get property ‘post_type’ of non-object in /var/www/vhosts/xxx/releases/22/web/app/plugins/wordpress-seo/src/integrations/third-party/elementor.php on line 156

    WordPress 5.8.1
    Yoast 17.4
    Elementor 3.4.5
    Elementor Pro 3.4.2

    dreamermates

    (@dreamermates)

    Same here, yes.
    Trying to get property ‘post_type’ of non-object in elementor.php on line 154
    Can someone please provide support / a fix?

    dreamermates

    (@dreamermates)

    Any news here?
    Thanks in advance!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Trying to get property ‘post_type’ of non-object’ is closed to new replies.