• Resolved skylarkcob

    (@skylarkcob)


    I got this error on Google Search Console.

    <script type="application/ld+json" class="saswp-schema-markup-output">
    [{"@context":"http:\/\/schema.org","@type":"WebSite","@id":"https:\/\/domain.com#website","url":"https:\/\/domain.com","name":"Tin T\u1ef1 \u0110\u1ed9ng","potentialAction":{"@type":"SearchAction","target":"https:\/\/domain.com\/?s={search_term_string}","query-input":"required name=search_term_string"}},
    ]
    </script>
Viewing 15 replies - 1 through 15 (of 22 total)
  • I get the same error: Unparsable structured data => Structured data with syntax errors detected => Incorrect value type “@id”
    It affects a number of pages, all of them being unattached media files like this:
    https://www.russiandog.net/pit-bull-dog-portrait

    When I check it with the Structured Data Testing Tool, it doesn’t show any errors but Google Search Console insists that there is a “syntax error” here:

    {“@context”:”http:\/\/schema.org”,”@type”:”BreadcrumbList”,”@id”:”https:\/\/www.russiandog.net\/pit-bull-dog-portrait#breadcrumb”,”itemListElement”:[{“@type”:”ListItem”,”position”:1,”item”:{“@id”:”https:\/\/www.russiandog.net”,”name”:”Russian Dog”}},{“@type”:”ListItem”,”position”:2,”item”:{“@id”:false,”name”:”Media”}}]},

    and marks false,”name”:”Media” in red.

    Probably, it has something to do with the last update of the plugin to version 1.9 because it has started after this update and never happened before (I didn’t change any settings).

    Please, someone, advise how to deal with this error.

    • This reply was modified 5 years, 7 months ago by ArtFl.
    • This reply was modified 5 years, 7 months ago by ArtFl.
    Thread Starter skylarkcob

    (@skylarkcob)

    I think you should remove “,” character.

    }}]

    Instead:

    }},
    ]

    Thank you, skylarkcob, but I see no way to do it manually because it’s inserted by this plugin throughout the site. How do you deal with this error?

    I get the same issue as well.

    After doing some troubleshooting, it seems like whilst breadcrumbs is enabled in the settings of the plugin, on some pages they are added to the schema code whilst on some others they are not.

    For the cases that they are not added, an extra ‘,’ is left in the schema code and hence the error and the parsing failure.

    Can the code developers look into it?
    I had to disable breadcrumbs to get this to work for now..

    Thanks

    Also I choose the article schema for a certain category of posts but sometimes it works and sometimes it doesnt.
    For example now all the posts in the category dont have any article schema.. and i have to open each of them and enable it manually but it doesnt work either as there is no way to set the image attribute and the schema returns an error..

    alekosk, great that it has helped you. In my case, the breadcrumbs option is turned off from the very beginning, and the error I get is not extra ‘,’ but the value “@id”:false,”name”:”Media” that is marked in red. I don’t know what it means exactly and how to deal with it. Hope the code developers could look into it too.

    ahh I see :/

    Well I hope they look into both issues soon, as I really like the plugin and I do not wish to move on to another plugin.
    But I will have to if the plugin does not add the schema on all pages in a category even though this is specified in the settings
    Waiting to see.

    Me too.

    Plugin Author Magazine3

    (@magazine3)

    We have created a ticket on this: https://github.com/ahmedkaludi/schema-and-structured-data-for-wp/issues/430 – We will be fixing this and releasing an update as soon as possible.

    skylarkcob – I agree with the comma thing but we need to know how to re-create this issue. Can you please export the settings from the options panel and share the link? so I will try to import it on my end and try to re-occur and fix it.

    artfl – Currently I see no such errors on your page, https://search.google.com/structured-data/testing-tool#url=https%3A%2F%2Fwww.russiandog.net%2Fpit-bull-dog-portrait – Can you please tell me where exactly are you getting this issue?

    alekosk – We are trying to find ways to recreate this issue so that we can help you fix this.

    Magazine3, thank you for your answer. As I said before, the testing tool doesn’t show the error but Google Search Console does! Please view the screenshot (please COPY & PASTE the link) https://www.russiandog.net/screenshot-sd.jpg

    Google Search Console insists that there is a “syntax error” (incorrect value type “@id”) here:

    {“@context”:”http:\/\/schema.org”,”@type”:”BreadcrumbList”,”@id”:”https:\/\/www.russiandog.net\/pit-bull-dog-portrait#breadcrumb”,”itemListElement”:[{“@type”:”ListItem”,”position”:1,”item”:{“@id”:”https:\/\/www.russiandog.net”,”name”:”Russian Dog”}},{“@type”:”ListItem”,”position”:2,”item”:{“@id”:false,”name”:”Media”}}]},

    and marks “@id”:false,”name”:”Media” in red.

    At the moment, it has fixed 7 pages like that, all of them being unattached media files.

    • This reply was modified 5 years, 6 months ago by ArtFl.
    • This reply was modified 5 years, 6 months ago by ArtFl.
    Plugin Author Magazine3

    (@magazine3)

    When I try to check the source code, the code isn’t there. Tell me that either it’s
    1. Cached copy which means you need to clear the server side cache
    or
    2. Have you turned off the breadcrumbs schema support?

    Magazine3, thank you for your assistance.
    The breadcrumbs schema support is switched off, and I don’t see the code in the source code either.
    As for the cache, it should be the Search Console’s cache. What I did, I clicked on the “Validate Fix” button to make Google recheck it.

    I have also started getting errors from search console since installing the plugin.
    For various pages:
    – Unparsable structured data – Incorrect value type

    (on top of the fact that some pages don’t have any schema in the code, even though this was added in the settings).

    • This reply was modified 5 years, 6 months ago by alekosk.
    Plugin Author Magazine3

    (@magazine3)

    We are going to push an update of 1.9.1 with in the next 24 hours, that should solve the above issue.

    Thank you, Magazine3.

    Today, I was updating an inactive Email Subscribers & Newsletters plugin and received a strange warning from WordPress on the “plugin updated successfully” page:

    Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/schema-and-structured-data-for-wp/admin_section/structure_admin.php on line 1545

    I don’t know what it means but maybe it can be useful for you.

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