Shopify Liquid errors · Product form must be given a product
Fix “Liquid error: product form must be given a product” on Shopify
A product form is being rendered on a page that has no product in context, such as the home page, a collection page, or a page-builder layout that placed a product section outside a product template.
Liquid error (snippets/product-form line 58): product form must be given a product
Paste your version of the error
The file, line, and name in your error are turned into exact steps.
How to fix it in Shopify
- Open the page that shows the error in the theme editor (Online Store, Themes, Customize) and look for a product section or block on it.
- Either remove that section from the page or set its product in the block settings, if the block offers one.
- If the section is your own code, open the file named in the error and wrap the form in an if product check so it only renders when a product exists.
- Save and reload.
Fix it without touching your live theme
Add Shop Buddy to Claude or ChatGPT and paste the error there. It finds the line in your actual theme, makes the fix on a private copy, shows you before-and-after screenshots, and publishes only when you tap. Roll back with one tap.
Get startedQuestions
- It appeared after installing a page builder.
- Page builders let you drop product blocks anywhere. A product block on a page that is not a product page cannot find a product. Give the block a specific product or remove it.