All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi Guys,
I have just gone to load the editor for my theme and getting the following issue (as attached).
It was all working fine when I was last editing last week, then all of a sudden getting this error.
I have not added or removed any apps or changed any code.
The website works fine in both Preview mode and if i try and load another theme in editor I do not get this issue. I have tried different browsers and devices and all getting the same problem.
It will not let me access any of the home page features to make an edit, so I cannot see what the problem is.
Thanks
Jamie
Solved! Go to the solution
This is an accepted solution.
Probably, given that there are a couple of other cases reported the problem is on the Shopifys end. So worth waiting and contacting them...
There is a hint at the top left -- "Liquid error: memory limits exceeded"
It could be that some of it runs only in Design mode and this will explain why it works fine in preview.
Unfortunately, it's hard to tell without seeing your liquid code.
Could be some nested loop processing huge data or simply infinite loop....
Hi Tim,
Thanks for that. I've attached my theme.liquid code.
I have also gone through all the Liquid files
And only 2 pages have {%- if request.design_mode -%}
If you would like a copy of the code from them I can post up
Are those used on homepage?
Also, does it happen on homepage only, or all pages?
If you're unable to select other pages from the drop-down, you should be able to load different page in Customizer by editing your URL in command line, say to be like https://admin.shopify.com/store/.../themes/.../editor?previewPath=%2Fcollections%2Fall which should open /collections/all in Customizer -- so basically it's a path to a page you want where "/" are replaced with "%2F".
Quickly looked over and do not see anything wrong, except:
1. Each render or section(s) has lots of liquid code in snippet or section file(s). So it would be necessary to inspect them as well.
2. The line above the </body> tag, {{ #'json-remove-locale-schema.min.js' | asset_url | script_tag }} -- the # should not be there, but probably is not the source of your problem.
3. This looks like a paid theme not from the Shopify store, these themes often add some kind of license verification (and there is a render 'verify' in the code above) -- this can potentially be a cause.
I'd continue by commenting out portions of the code with {% comment %} .. {% endcomment %}, say each of the render or section(s) line and see if the problem goes away -- then offending code should be inside commented out snippet or section.
And do not forget to make a theme copy as a backup first.
This is an accepted solution.
Probably, given that there are a couple of other cases reported the problem is on the Shopifys end. So worth waiting and contacting them...
Thanks Tim
It seems to have come back on working tonight
Thanks for your help
Hi, I got exactly the same issue. Did you fix that?
The theme editor can't load because of Liquid error: memory limits exceeded error. Can't do anything..
I have the same issue and it has been going on for weeks now. This is my 3rd request to shopify and they say everything is good on their end hands clean. This is frustrating.