Craft Theme, invalid url input when tested on schema

Topic summary

Main issue: Schema testing reported a JSON-LD syntax error (“value, object or array expected”) tied to a Shopify Liquid error at sections/main-product line 718: “invalid url input.” This surfaced after uploading the site to Google Search Console, which flagged an “incorrect value type.”

Context: JSON-LD is structured data used for SEO; Liquid is Shopify’s templating language. An “invalid url input” indicates a field expected to contain a valid URL did not.

Resolution/update: The poster removed a product video, and the schema error disappeared. They did not identify the specific URL causing the issue, but removing the video resolved it.

Outcomes/decisions: No code changes were documented; deleting the problematic media asset was sufficient.

Status: Resolved. No remaining open questions were raised. No images or code snippets were essential to understanding beyond the cited error line.

Summarized with AI on December 24. AI used: gpt-5.

Hi there! Shopify and code newbie here, I uploaded my page on google console and it identified a few errors, the most critical being an incorrect value type. I then tested the page on schema and it said

JSON-LD:


Syntax error: value, object or array expected.

and this was the line it identified:

Liquid error (sections/main-product line 718): invalid url input

how do I figure out where the url is i need to fix?

Thanks so much!

I solved the issue, I did not find where the url was, but I deleted a video that was for a product and it seemed to have solved the problem!