How can I fix a 'Liquid syntax error' on my product page?

I have a “Liquid syntax error” on one of my product pages. How can I remove this? Everything looks normal in the product description in the customization product. However, it has the “Liquid syntax error” on the front side of the website. Have any advice?

Thanks,

Rhea Hill

@blissed-being Can you elaborate on the errors exact message?

Without something for others to inspect this wont be solvable.

If you recently made code change to your theme, or an app did, switch to a backup or rollback those files

https://help.shopify.com/en/manual/online-store/themes/extend/theme-code#roll-back-to-an-older-version-of-your-theme

Otherwise provide details for other people when seeking solutions,

Provide store url, url to product with the problem, theme name, etc and storefront-password if enabled.

Recent actions that could have led to this,etc

https://community.shopify.com/c/blog/how-to-get-support-from-the-community/ba-p/1399408

Sure, Here is the URL: https://blissedbeing.com/products/counseling.

The product is “Professional Counseling.”

The exact error reads:

Liquid syntax error (sections/product-template.liquid line 111): Unexpected character / in “{{ featured_image | img_url: https://www.psychologytoday.com/profile/237482 }}”

I am trying to remove this. I have not made any changes to the code theme. However, a person was helping with some changes to the website. So I want to know how to fix it.

The product is

1 Like

In your themes code editor either roll that section file back, using the help doc linked previously,

or comment out the the offending code/line , you should just have to wrap with {% comment %}{% endcomment%} tags.

Possible quick link: shopify.com/admin/themes/current?key=sections/product-template.liquid&line=111

Looks like they may have been trying to use an image from inside another websites webpage without actually getting the url for that image?

Which they shouldn’t do any as that’s hotlinking, a web no-no without permission, much better to add the image to the stores theme assets or file assets.

If you need a quick assist email me this topic url, at paull.newton+shopifyforums@gmail.com and I’ll send a request to access the store, please make backups of your themes.

Thank you, I will follow up in the email.

The theme was Debutify and it’s section product-template uses a snippet also named product-template

Fixed by quoting the url string being in the img_url filter then the related elements was commented out.