• Resolved Mike Costanzo

    (@mikecostanzo)


    Hi there,

    I’m getting a lot of PHP Warnings related to WordPress SEO in my PHP error logs. There are two types of warnings generated:

    PHP Warning: Attempt to read property “taxonomy” on null
    and
    PHP Warning: Undefined property: WP_Error::$taxonomy

    There is usually one of the first type and then four of the second. Below is an example:

    [29-Jul-2022 16:47:27 UTC] PHP Warning:  Attempt to read property "taxonomy" on null in /home/abookandacpanel/public_html/wp-content/plugins/wordpress-seo/src/helpers/current-page-helper.php on line 489
    [29-Jul-2022 16:47:27 UTC] PHP Warning:  Undefined property: WP_Error::$taxonomy in /home/abookandacpanel/public_html/wp-content/plugins/wordpress-seo/src/presentations/indexable-term-archive-presentation.php on line 151
    [29-Jul-2022 16:47:27 UTC] PHP Warning:  Undefined property: WP_Error::$taxonomy in /home/abookandacpanel/public_html/wp-content/plugins/wordpress-seo/src/presentations/indexable-term-archive-presentation.php on line 176
    [29-Jul-2022 16:47:27 UTC] PHP Warning:  Undefined property: WP_Error::$taxonomy in /home/abookandacpanel/public_html/wp-content/plugins/wordpress-seo/src/presentations/indexable-term-archive-presentation.php on line 182
    [29-Jul-2022 16:47:27 UTC] PHP Warning:  Undefined property: WP_Error::$taxonomy in /home/abookandacpanel/public_html/wp-content/plugins/wordpress-seo/src/presentations/indexable-term-archive-presentation.php on line 210

    I already downloaded the Yoast Test Helper and performed the following:

    Reset Indexables tables & migrations
    Reset Prominent words calculation
    Reset Internal link counter

    I then performed an SEO Data Optimization. However, the problem is still persisting

    What can I do to make these warnings go away?

    Thanks in advance!

    The page I need help with: [log in to see the link]

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

    (@devnihil)

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

    Regarding your issue, can you please confirm you are using the most recent version of Yoast SEO, version 19.4? You can learn more about updating here: https://yoast.com/help/how-can-i-update-my-free-plugin/

    Also, can you confirm you are using WordPress 6.0.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 you update to the most current version of WordPress and Yoast SEO, does this resolve the issue?

    If you have already confirmed that both Yoast SEO Premium and WordPress are up to date and the issue is still occurring, we would next recommend performing a conflict check to determine whether another plugin or theme is interfering with the Yoast plugin.

    The fastest way to do this is to?deactivate all non-Yoast plugins and switch to a standard theme?like?TwentyTwentyOne.

    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.

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Attempt to read property “taxonomy” on null | WP_Error::$taxonomy’ is closed to new replies.