Notice: Trying to get property of non-object in class-schema-utils.php
-
Notice: Trying to get property of non-object in …/public_html/wp-content/plugins/wordpress-seo/frontend/schema/class-schema-utils.php on line 26.
Through debugging the code, the issue seems to arise when the value of
$user_id
passed in to the functionget_user_schema_id
is zero. This results in$user = get_userdata($user_id);
returningfalse
, and a PHP Notice that$user
is a non-object.No other plugins installed and Twenty Nineteen active.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Notice: Trying to get property of non-object in class-schema-utils.php’ is closed to new replies.