Google Search Console - Parsing error: Missing ',' or '}' Items with this issue are invalid.

Solved

Google Search Console - Parsing error: Missing ',' or '}' Items with this issue are invalid.

GAUB
Tourist
9 0 1

Hi,

I'm getting an error on Google Search Console, for unpassable structured data.

"Parsing error: Missing ',' or '}'
Items with this issue are invalid. Invalid items are not eligible for Google Search's rich results"

Here's the code it highlights. Any ideas how to fix this?

 

 

<script type="text/javascript" async="" src="//unfairbaits.com/cdn/s/trekkie.storefront.c1258b47cccb7bc2aeeaeb253b8999e078bd2f6b.min.js"></script><script type="application/ld+json">{
    "@context": "https://schema.org",
    "@type": "Organization",
    "name": "Unfair Baits",
    "url": "https:\/\/unfairbaits.com",
      "logo": "https:\/\/unfairbaits.com\/cdn\/shop\/files\/Cropped_Logo_5ad8d12c-7f33-4903-b326-cbfdf9244a26.png?v=1714578125\u0026width=500"
    "url": "https:\/\/unfairbaits.com"
  }
  </script><script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
  "@type": "ListItem",
  "position": 1,
  "name": "Home",
  "item": "https://unfairbaits.com"
}]}
</script> ​

 

and the below is highlighted by the console
GAUB_0-1727818938064.png

 


Thanks in advance for any guidance you can provide 



Accepted Solution (1)

PaulNewton
Shopify Partner
7096 630 1484

This is an accepted solution.

Hi @GAUB 👋 there's a comma missing before the highlighted line. And the highlighted line is also a duplicated property "url".

 

 

If you need theme repair services then contact me.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


View solution in original post

Replies 4 (4)

PaulNewton
Shopify Partner
7096 630 1484

This is an accepted solution.

Hi @GAUB 👋 there's a comma missing before the highlighted line. And the highlighted line is also a duplicated property "url".

 

 

If you need theme repair services then contact me.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


GAUB
Tourist
9 0 1

Hi Paul,

Thanks, now you say that I can see it a mile away. 

Now to follow it up with the most newb question you'll get all day. I can't work out which file this is in. 

PaulNewton
Shopify Partner
7096 630 1484

Implementation varies wildly among themes, 

For Organization see theme.liquid or relative snippets , for breadcrumbs either theme.liquid, a section/snippet for breadcrumbs etc.

In some cases it's in SEO apps.

You'll have to dig.

 

FYI : there is now a structured_data filter , currently for product and article objects , so the LD+JSON schema may not be fully present in files now

https://shopify.dev/changelog/liquid-structured_data-filter-supports-productgroup 

https://shopify.dev/docs/api/liquid/filters/structured_data 

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


GAUB
Tourist
9 0 1

Hi Paul,

Just this second found it. Its the second issue I've had with a certain shopify 3rd party application adding rubbish code in (If you search my last issue it was the same app). I'll mark your original reply as the solution. Many thanks