Liquid error (sections/main-product line 8): Could not find asset

Hi,

I am getting the following error:

liquid error (sections/main-product line 8): Could not find asset snippets/product-template.liquid

The file ‘product-template.liquid’ obviously doesn’t exist and I don’t remember uninstalling any apps. I haven’t personally made any changes to the theme that I can think of so unsure as to why this is happening all of a sudden.

I can provide my theme file if needed can somebody help?

Thanks

The error message you’re encountering suggests that there’s an issue with a missing file called product-template.liquid in the snippets folder of your theme. This missing file is referenced in the main-product section, specifically on line 8 of the sections/main-product.liquid file.

Here are a few steps you can take to troubleshoot and resolve the issue:

  1. Revert any recent changes: If you’ve recently made changes to your theme or installed/uninstalled apps, try reverting those changes to see if it resolves the issue. Sometimes, changes made to the theme or conflicts with apps can lead to missing files or broken references.

  2. Check the theme’s backup or history: If your theme has a backup or history feature, try restoring a previous version of the theme that was known to be working. This can help revert any accidental changes and bring back the missing file.

1 Like

Hello @spreadsheetso ,

Above suggestions are first things to consider. If the " snippets/product-template.liquid " file is still missing; alternatively you may download the fresh theme and copy the same file in the snippets folder with the name " product-template.liquid ". That would fix the error and since you don’t have much modifications on the theme; you would only lose dashboard customizations for that template.

Cheers,

Thank you,

Somebody else built the shop for me and cant seem to find the original file. I know the product-template file is missing from the snippets folder but unsure why because I have absolutely no recollection of making any changes. Is there anyway else to get that file from another theme?

The person who made the shop said he didn’t use a template and I can’t see any changes made to any files. Do you know what is possible from there?

Hi Thanks for the answer.

The person who made the shop said he didn’t use a template and I can’t see any changes made to any files. Do you know what is possible from there?