Undefined property: WP_Error::$taxonomy
-
Hi!
I have a PHP notice in my log: Undefined property: WP_Error::$taxonomy
It occurs in /myloc/wp-content/plugins/wordpress-seo/src/presentations/indexable-term-archive-presentation.php on lines 164, 170 and 196What is happening?
-
@harm10 Can you please confirm you are using the most recent Yoast v14.3? You can learn more about updating here: https://kb.yoast.com/kb/how-can-i-update-my-free-plugin/
Also, can you confirm you are using WordPress 5.4.2? 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 the error is still occurring after confirming both Yoast SEO and WordPress are updated, this may be due to a plugin or theme conflict. Can you try and gather as much information for us as possible? Please perform the following:
1. Check for conflicts.
2. Check for JavaScript errors with your console.
If you find any JavaScript errors related to Yoast SEO or if there is a conflict with a plugin or a theme, you can create a new GitHub issue for our developers. Please report the issue to a third party developer as well.If you didn’t find any conflicts or errors, we think the issue is specific to your site. We’d need to investigate further but are unable to do so on these forums. You can purchase Yoast SEO Premium and receive our Premium email support and we can help you further.
Thanks for your elaborate answer.
I am using WP 5.4.2 and Yoast 14.3.
As these notices only happen incidental and not at a time I am active I cannot investigate further along your suggestions.
Maybe it is a search robot scanning my site and encounters some weird SEO construction on 1 of my pages? The notice does not show what page is active at that moment.Perhaps you can indicate what the plug-in is doing at that moment when the notice gets thrown?
@harm10 Thanks for your reply. As for the error, if you clear your site’s cache (server, plugin/theme, or CDN such as Cloudflare) does this resolve the error? If you are not sure how to clear your server cache you should speak with your host provider.
If the error still persists after clearing the site’s cache, can you please try the following steps to resolve the issue?:
-
1. Install & activate the?Yoast Test Helper plugin
2. Go to Tools -> Yoast Test
3. Hit the “Reset indexables & migrations” button
4. Click the “Click here to speed up your site now” button.Does this resolve the issue?
The notices were not there in the log this morning. I still cleared the caches.
I will monitor the log and use the Test Helper plugin if the notices reappear?Yes, please. If you do see the same notice in the error log again, please do let us know here with a bit information on how can we reproduce it on our end so that we can investigate the issue further for you.
Can you please indicate what the plug-in is doing at the location reported?
For me that will potentially point me in the right direction?Based on the relevant PHP notice, it’s currently referring to the
presentations/indexable-term-archive-presentation.php
file and that is responsible for running the indexables analysis feature that you can find in the Yoast SEO → Tools page.The notices were there again today. So I installed the Yoast Test plug-in and reset the index and rebuild it again.
Let’s wait and see what happens next.BTW Why is this reset option not there in regular Yoast plug-in?
Hi,
The features found in the Yoast Test plugin are there for debugging and since not every site needs the plugin we decided to make it a separate one.
Hi! The messages were there again this morning so re-indexing did not help.
They occur at different times but within the same hour.
I have updated Yoast to the new version released. Could that version contain something to fix it?If not, is there a way that I can see which content is “touched” when these notices occur?
@harm10 It’s possible that if the error were the result of a bug that has already been reported to our developers and addressed in the latest release, that updating to the newest version will resolve the error. However, we were unable to locate any other reports of the same error from users.
Can you please confirm you are using the most recent Yoast v14.4.1? You can learn more about updating here: https://kb.yoast.com/kb/how-can-i-update-my-free-plugin/
?If you update to the most current version of Yoast SEO, does the ‘Undefined property: WP_Error::$taxonomy‘ error no longer appear?
Hi! I can confirm that I am on version 14.4.1 since several days. The messages are still there.
Is there some way of identifying which post id(s) trigger these messages?
@harm10 Unfortunately that information would not be logged by default. However, you may be able to determine this by using a diagnostic plugin such as Query Monitor.
Hi @harm10 ,
We’re closing this thread because we haven’t heard back from you in a while. Should you have further questions, please open a new thread.
That is rather fast to close it! I am planning to do some research with this Query Monitor but I need to have time for this.
Probably will do this coming weekend.
So reopened the report………..
- The topic ‘Undefined property: WP_Error::$taxonomy’ is closed to new replies.