• Resolved kanojia

    (@kanojia)


    This line of code coming on the site for all users visible – “Notice: Trying to get property of non-object in /home/282395.cloudwaysapps.com/cmuaxwsyfj/public_html/wp-content/plugins/wordpress-seo/frontend/schema/class-schema-utils.php on line 25

    Please fix this asap

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello! Same error after update.

    I also started receiving the same error.
    Both when logged out and when logged in.
    I tried outputting the values of the variables in the function when logged in:

    $user_id (passed into the function) is empty
    Consequenty, $user is also empty.
    Only $context (passed into the function) is populated.

    Until it is fixed, I have made a workaround to avoid the error from showing on my website by commenting out the part of the return statement with user information:

    return $context->site_url . WPSEO_Schema_IDs::PERSON_HASH;// . wp_hash( $user->user_login . $user_id );

    • This reply was modified 6 years, 8 months ago by JohnRDOrazio.

    I Get the same error reverted to previous version till sorted out.

    How do you revert to the previous version?

    ds1970 Use plugin WP Rollback.

    I was getting this code too, so I went into the “Search Appearance” settings for Yoast. I set myself as the “person” that the site represents. The code went away.

    Hello!

    Can you please try the suggestions below and let us know if the problem resolves?

    Go to SEO > Search Appearance > General and select a WordPress user in the Personal Info Name dropdown
    OR
    Go to SEO > Search Appearance > General and change what your site represents from “Person” to “Organization”

    Let us know if the issue persists.

    Closed.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Issue after recent update’ is closed to new replies.