• Resolved thegroomingtable

    (@thegroomingtable)


    I’ve got an error message from Google Search Console:

    Unparsable structured data > Incorrect value type “@context”

    When I looked at it, the “https” for //schema is missing in all of the pages –

    [CDATA[*/{“@context”:”//schema.org”,”@graph”:

    where is the root directory of the base script so that I can edit it all at once?

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • I have the same problem ??

    To fix this error edit following file

    wp-content\plugins\wordpress-seo\inc\class-wpseo-utils.php

    public static function schema_tag( $graph, $class = ‘yoast-schema-graph’ ) {
    if ( ! is_array( $graph ) || empty( $graph ) ) {
    return false;
    }

    $output = array(
    //’@context’ => ‘https://schema.org’,
    ‘@graph’ => $graph,
    );
    return “<script type=’application/ld+json’ class='” . esc_attr( $class ) . “‘>” . self::format_json_encode( $output ) . ‘</script>’ . “\n”;
    }

    Thread Starter thegroomingtable

    (@thegroomingtable)

    thanks for your response! But it I’ve replaced the code with the one you’ve provided but it doesn’t seem to help. How do I know if I’m doing anything wrong?

    Same problem here. All of a sudden it’s on both of my sites, so I assume this is from the most recent update. Hopefully something will be coming out soon to fix.

    @thegroomingtable Have you installed plugin “Minify HTML”?
    I have. When change option “Remove schemes (HTTP: and HTTPS:) from all URLs” to “No” the errors are gone ??

    This making a google error:

    This bad

    {“@context”:”//schema.org”…

    This good

    {“@context”:”https://schema.org&#8221;

    • This reply was modified 5 years, 3 months ago by krzxsiek.
    • This reply was modified 5 years, 3 months ago by krzxsiek.

    I examined the errors from multiple posts, and found a number of them also had errors related to schema pro from Brainstorm. After disabling it, the pages checked OK from Google.

    Thread Starter thegroomingtable

    (@thegroomingtable)

    why is it that after disabling Yoast, their schema base script still appears when I run the pages with error with Google’s Structured Data Testing Tool? Is there a lag time before changes are reflected in the testing tool?

    Plugin Support amboutwe

    (@amboutwe)

    Google’s structure data testing tool retrieves the current version of the page. However, if your site or server has any type of cache, there may be a delay in the version that is available to Google.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

    shirosora02

    (@shirosora02)

    Thank you sir @krzxsiek i clear my problem.
    im find this solving trouble about 2 days and now clear just 1 minute

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Unparsable structured data error’ is closed to new replies.