Shopify: An Error Prevented Any Liquid File From Being Saved

Category: ShopifyTags: ,

You wanted to save Shopify liquid file and all of a sudden you are getting “An error prevented any liquid file from being saved”. Even if you add a single space character, this error occurs shows up. You would have searched online and found out that people were experiencing the similar issue. They reported that after some time, the issue would have been resolved on its own. If you are under tight deadline and want to resolve it quickly, here is a trick.

Trick # 1 : Close Browser

If you have already made some changes in any file, you may want to save those changes manually on your computer. Notepad or any of your favorite code or text editor would work.

Close the browser.

Open the browser.

Now login again and try to make the change and see if it resolves.

If this trick does not resolve your issue, try to delete all cookies and browser data or cache.

Now close and re-open the browser. Hopefully your issue is resolved.

Trick # 2: Contact Chat Support

If the trick # 1 does not solve your issue, contact Chat support and they will “flush front end cache”. Once done, you need to close the browser, login again and try to change and save the liquid file.

Key information needed by Chat Support

  • Operating System
  • Browser
  • Any change to Add-on/extensions or computer.
  • How long you are facing the issue
  • and if you want to be over-smart, ask them to “flush front end cache”. 🙂

Approximate time to get Chat Support online: 10 minutes

Approximate time to resolve the error: 5 minutes

Share

6 comments

Your email address will not be published. Required fields are marked *

  1. karan says:

    product.liquid not accept this code error to save file .product.liquid
    this code {% section ‘related-products’ %}

    1. Hello Karan,

      What you mentioned is a generic error. Without details it is not possible to help you but check if you have the named section available within your Shopify.

      Regards,
      Vishal Monpara

  2. Priya says:

    Hello Sir,
    I faced issue of theme.js.liquid file didn’t save.
    Please Help me.

    1. Hello Priya,

      Whatever the changes you have made, you want to save those changes locally on your computer and discard all the changes in Shopify. Clear all sessions, cookies and close browser. Login to Shopify, make those changes again and try to save it.

      Regards,
      Vishal Monpara

  3. Paul Hildebrandt says:

    Thank you for your help. I kept staring at my code trying to see the problem. I even reverted and still, nothing worked. Sure enough, just closing the window and reopening it did the trick.
    Thanks much!

    1. Hi Paul,

      I am glad it worked for you.

      Regards
      Vishal Monpara