How can I remove a liquid error message from my search page?

Hi guys, could someone help me remove this message that appears on the bottom of the search page?

“Liquid error (sections/main-search.liquid line 232): Could not find asset snippets/spurit_dmr_collection_template_snippet.liquid”

my website is: https://vavasstudio.com/

thank you in advance :slightly_smiling_face:

This is PageFly - Free Landing Page Builder.

This error is showing because of your theme is trying to access to the file name : “spurit_dmr_collection_template_snippet”

But that file is not exist in the theme.

To fix this you can go to theme.liquid and completely remove that line. You can follow my instruction below:

Step1: Online store > Themes > Edit code > theme.liquid

Step2: Ctrl + F or open search tool and search the file name. That should be like {% include ‘filename’ %}

Step3: Remove that line

Hope this can help you solve the issue

Best regards,

PageFly

Hey there, @vanessarp

I hope you’re doing well. From what you have described in your post, it sounds like an app has been uninstalled but has managed to leave some code behind it. What you can do to resolve this error message is remove the line from your main-search.liquid or roll back your file like these steps below:

  1. Go to Online Store > Themes > Actions > Edit Code.

  2. Search main-search.liquid like the screenshot below:

  1. Click on Recent changes and select Original

Alternatively, you can remove the code by these steps:

  1. Go to Online Store > Themes > Actions > Edit Code.

  2. Open the Sections folder and then the main-search.liquid.

  3. Search for “spurit_dmr_collection_template_snippet”, the error message on your storefront might even have the line number for you.

  4. Add {% comment %} to the start of this line and {% endcomment %} to the end of this line.

  5. Click Save.

Please try it and let us know how it goes.

Happy Selling!

Hi @vanessarp ,

You can solve the issue by going to Online store > Themes > Actions > Edit code > Sections > main-search.liquid, find “spurit_dmr_collection_template_snippet” and remove this line {% include ‘spurit_dmr_collection_template_snippet’ %}, click Save button