-
Notifications
You must be signed in to change notification settings - Fork 882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notice: Trying to get property of non-object in \wp-content\plugins\wordpress-seo\inc\class-wpseo-meta.php on line 393 / 394 / 395 #9584
Comments
Thanks for reporting this bug! |
I experienced this for quite a while... just as I deduce why it happened I found this post :) I do a similar thing but use it in a class/function as follows:
I deduced that global $post on line 376 returns null, but I can't figure out why... It's not a problem, but I would prefer to not have the warning ;) |
When I deactivate this function, the warning doesn't show, but it does get logged (in debug.log). |
Experiencing this issue as well. I guess advanced tab logic is not applicable for the quick edit. |
Looking at the code referenced in the original report, the lines have changed. @eugenealegiojo if you can provide the specific error messages and a Yoast SEO version this occurs in we can solve the issue. |
@moorscode The specific error is the same in the issue description except for the line number. But it looks fixed with the recent release 9.1. I think this line |
If it's not fixed, please let us know and we'll reopen. For now, I'm going to close this because it seems to be fixed with 9.1. |
I don't get the error anymore... |
Please give us a description of what happened.
When trying to "quick edit" a post, the admin table's checkbox column gets populated with a series of PHP notices:
Please describe what you expected to happen and why.
Expected no error messages and the row of post data to reappear after the quick edit form went away.
How can we reproduce this behavior?
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
NOTE: Normally wouldn't "hack" a theme but this is the minimal way to recreate.
Go to Admin > All Posts
Choose "Quick Edit" and make a change. (assumes an existing post)
Click "Update"
Technical info
The text was updated successfully, but these errors were encountered: