Liquid Error: Memory Limits Exceeded When Editing Shopify Theme

Liquid Error: Memory Limits Exceeded When Editing Shopify Theme

shakeebahamd
Tourist
5 0 12

Hi everyone! I’m a beginner web developer currently working on my Shopify store, Wear Blends. I’m facing an issue with my theme that I hope you can help me with.

Problem: Whenever I try to edit my theme, I encounter the following error: "Liquid error: Memory limits exceeded." This happens when I attempt to save changes, and it prevents me from making updates to my store.

Impact: This error is significantly hindering my ability to customize my store, which is critical as I’m trying to launch it soon. I’m concerned that it might also impact the overall performance of the site.

Troubleshooting Steps:

  • I’ve cleared my browser cache and cookies.
  • I’ve tried using different browsers (Chrome and Firefox) but the issue persists.
  • I removed some recently added code snippets, but the error continues to appear.

Questions:

  1. Has anyone else encountered this error, and how did you resolve it?
  2. Are there any best practices to prevent memory limit issues in Shopify?
  3. What’s the recommended approach for optimizing theme code to avoid this error?

Thank you for your assistance!

Replies 41 (41)

SarahEClark
Tourist
3 0 3

I am having exactly the same issue. But I cannot even access my online backend.

 

Trying to get a developer to help fix the issue. 

WSW-JE
Visitor
1 0 2

I am having the same problem...
Seems that it is a general problem right now...

But I cannot see something on the Shopify status page...

yash100ni2
Shopify Partner
4 0 6

Same issue 

shakeebahamd
Tourist
5 0 12

what theme you are using

yash100ni2
Shopify Partner
4 0 6

Customized one

daichansy
Tourist
9 0 3

Broadcast. I'm experiencing the issue today where I couldn't load the theme editor at all. However, I installed a free theme (Dawn), the theme editor was able to load just fine. At this point I'm not sure if it is a theme problem or Shopify.

SarahEClark
Tourist
3 0 3

I am using Broadcast as well! Same issue still. 

shakeebahamd
Tourist
5 0 12

i am using a paid theme from themeforest, if i change it will it resolve the issue

ShopNevus
Visitor
2 0 2

Same here. Happened out of no where.

shakeebahamd
Tourist
5 0 12

i dont understand that is it the problem from shopify or from the theme?

yash100ni2
Shopify Partner
4 0 6

Shopify team said it is universal issue and they working on it. 

yash100ni2
Shopify Partner
4 0 6

Shopify team said it is universal issue and they working on it. 

TheLitStyle_12
Visitor
1 0 1

when it will resolve?

 

JamieSouth
Tourist
4 1 2

Thanks for sharing this. It should definitely be on the status page.

AliJD
Visitor
2 0 2

Same issue, i have installed an app and now i get the same message when i want to edit my theme. Even after uninstalling it. Please help.

PaulNewton
Shopify Partner
7450 657 1562

Use search it to find main thread issues and answers  https://community.shopify.com/c/forums/searchpage/tab/message?q=Liquid%20error:%20Memory%20limits%20...

 

Or see https://www.shopifystatus.com/ 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


AliJD
Visitor
2 0 2
Hey,

Nothing works I already tried those methods. The crash happened after I installed one of your apps.
Please help!

Kind regards,
Ali

Stwver202
Shopify Partner
1 0 1

Hello. As soon as I opened the theme customizer, the same I encounter the following error: "Liquid error: Memory limits exceeded."  

WietseD
Shopify Partner
6 0 4

We are experiencing the same issue, @shopifystaff please update your shopify status page to let people now this is a known issue. Support told us already they are aware.

Enis
Visitor
1 0 0

I have the same issue with broadcast theme. does anyone has a solution?

Thanks!

shakeebahamd
Tourist
5 0 12

i changed my theme to the dawn theme, after that the issue is resolved. I think this is the problem with themes

mychelley201
Excursionist
14 0 16

@Shopify any ideas on a timeframe on when this will be fixed?

WietseD
Shopify Partner
6 0 4

I reported it to support and they are now looking at it, but apparently the shopify development team is receiving a high volume of concerns, probably due to the upcoming November sale month. Lets hope @Shopify can fix it asap.

Meanwhile our developer found that it is related to themes, some work, some don't. But no clarity why

WietseD
Shopify Partner
6 0 4

They are on top of it, and aware of it! I added the response from Shopify support:

 shopify support.PNG

mychelley201
Excursionist
14 0 16

Thank you so much

MaksymLykhachov
Shopify Partner
2 0 3

I've also encountered the same problem. Has been fixed by removing linear-gradient value from free_shipping_gradient setting (If, of course, it was previously configured). Example: 

invalid_value.png

Although everything worked until yesterday.

SarahEClark
Tourist
3 0 3

THANK YOU SO MUCH!! I just did this and it has worked 🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻

lua256
Visitor
3 0 0

How did you pinpoint the source of the error. I have a feeling it might be some piece of code like this that's not compatible with new shopify changes but in my case, I don't have this particular line of code.

MaksymLykhachov
Shopify Partner
2 0 3

I debugged theme.liquid and after removing {% sections 'group-overlay' %} the error in the customizer disappeared. Then, step by step in sections\group-overlay.json i found this solution. Probably were update of liquid parsing - this construction (gradient value) is to 'heavy' and / or throw unexpected behavior.

WietseD
Shopify Partner
6 0 4

@MaksymLykhachov I don't want to cheer too soon, but we did the same debugging by removing sections one by one from the theme.liquid, in our case the popup section {% sections 'popup' %} seemed to be the culprit. We haven't debugged inside the popup section code yet, but apparently removing it from the theme.liquid fixed the issue for now!

For anyone out there, try to debug this way, it might help! 

daichansy
Tourist
9 0 3

This is counterintuitive (and stupid), but it works for me as I really needed to update my live site due to missing content! I have an old theme version that allowed me to access theme editor, so I spent hours customizing it like the live version and publish. The live version is now allowing me to access the theme editor (until it fails again), but hopefully it does the trick in the time being.

WietseD
Shopify Partner
6 0 4

@daichansy we also noticed this works, but the differences between our new and old themes are too big to make this possible as a solution, it would cost us days of work to mimick the live theme. But yes, if people have an old theme that is similar to their live theme, it might be the solution for them.

daichansy
Tourist
9 0 3

Lesson learned! We better make copies of LIVE site for every change (large or small) we make in case of "bug" like this happening in future. I'm just surprised that Shopify takes days fixing and still not resolved. The issue is probably not announced internally either because the support tech I chatted with yesterday believed it was a theme issue on my end. 

lua256
Visitor
3 0 0

This has been persisting on my end for almost 3 days now and I just keep getting the same response from Shopify support that their team is working on it. At this point I feel like we are being ignored to find a solution on our own.

Jenny_fewandfar
Shopify Partner
1 0 0

We have 3 websites all with the same problem which has been about 10 days now. Early on, you could keep trying and it would eventually let you in. It got progressively worse and we haven't been able to access the template for any amend for 3 days now. Shopify responses to date haven't been helpful.

sugus
Visitor
2 0 1

Liquid error: Memory limits exceeded
Same issue (Flex Theme)

TiagoDias
Tourist
8 0 1

Same here! Any fix?

 

TiagoDias
Tourist
8 0 1

Mine is working now! Just Press 'Try Again' a couple of times and then it load.

Criis_g_c
Visitor
1 0 0

I just got a reply from the incredible Broadcast theme support theme and I thought about sharing here to help someone:

"I know what you mean here, this is a new issue with Shopify's latest update. For some reason, their liquid style tags are faulty and producing this error. The known fix for now is to swap out the style tags in 'cart-drawer.liquid' with HTML tags instead."

They changed it on my side and it's working fine! Hope it helps someone!

daichansy
Tourist
9 0 3

Tech lead Bobby at Invisible Theme responded to another post and suggested the following:

 

For the more tech-savvy who prefer to DIY it as a quick fix, all you need to do is go into the 'cart-drawer.liquid' file and find the opening and closing liquid style tags. Depending on your version there could be more than one and they could include dashes. In short, this is what you need to do:

Replace all instances of '{% style %}' and '{%- style -%}' with '<style>'.
Replace all instances of '{% endstyle %}' and '{%- endstyle -%}' with '</style>'.

lua256
Visitor
3 0 0

@daichansy You are the real deal. I had narrowed down the source of the error to a single file but you just helped me narrow it down the exact problem. All fixed, up and running now. Thank you!!!!