How to fix a 'Liquid error' in a featured collection on my page?

Whenever I add a featured collection to my page, instead of the “sold out” button being shown, it instead shows the text "Liquid error (global-product-card line 31): invalid url input.

Line 31 of the Bullet theme goes as such, and no modifications were made:

echo img | image_url: width: 1280 | image_tag: sizes: sizes, widths: widths, loading: 'lazy', alt: alt | escape

Any help would be greatly appreciated.

1 Like

Boosting this as I am also having this issue in Bullet theme with the exact same error message, except the result is different: all of the UI elements in the product card appear as they should except for the product image, which is missing. (image content blurred for NDA reasons)

I follow the image_url filter in the doc. When there is no image, it show me featured_image: ‘\x3C!-- Liquid error (shopify://apps/xxx-development…abae-60db8e86b223 line 70): invalid url input -->’

this is the liquid: featured_image: “{{ product | image_url: width: 480 }}”

When there is no image, why doesn’t the liquid output a default image?

1 Like