You navigate through your translated pages and find a blank page with the error message "Liquid error: Memory limits exceeded".


Example how the Liquid error: Memory limits exceeded message might appear in your store



Why this happens


This error can occur if you have added the langify Polyfill code to your theme while also using a large number of Custom Content or product tag translations.

On content-heavy pages like collection pages, the Polyfill code loops through all translations at render time. If there are too many, the theme hits Shopify's rendering memory limit and the page fails to load.



Solution A: Remove the Polyfill code (quick fix)


The fastest way to resolve this is to remove the Polyfill code from your theme. This stops langify from processing Custom Content and product tag translations via Liquid, so no rendering memory is used.


  • Your Custom Content translations should continue to work — langify will apply them client-side via JavaScript instead.
  • The product tag translations would need to be set up as Custom Contents instead. Before you do that please double-check if a translation is actually necessary.



Solution B: Reduce the number of translations (recommended)


For a better long-term outcome, reduce the number of Custom Content and product tag translations. Note that a high number of these translations can still slow down page loading even without triggering the memory limit error.


Two ways to do this:

  • Remove any Custom Content/product tag translations that are no longer needed.
  • Move translations into a specific Custom Content subsection such as Global, Frontpage, or Product Pages — this way only the relevant translations are loaded for each page.