You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We had a fatal on single post view and found this line in the logs:
PHP Fatal error: Uncaught TypeError: Argument 1 passed to HM\MetaTags\JSONLD\get_person() must be an instance of WP_User, boolean given.
It turns out that the post author is set to a user that no longer exists on the site and this line assumes the get_user_by() call always return a WP_User object, when in fact, it could also return false on failure.
The text was updated successfully, but these errors were encountered:
We had a fatal on single post view and found this line in the logs:
It turns out that the post author is set to a user that no longer exists on the site and this line assumes the
get_user_by()
call always return aWP_User
object, when in fact, it could also returnfalse
on failure.The text was updated successfully, but these errors were encountered: