← Back to blog
Our WordPress plugins
September 29, 2026

WPML “Allowed Memory Size Exhausted”: How Much PHP Memory WPML Really Needs

WPML “Allowed Memory Size Exhausted”: How Much PHP Memory WPML Really Needs

A translation job that stalls at 98% can feel like a WPML problem—until WordPress throws a fatal error measured in bytes. The “allowed memory size exhausted” message is PHP telling you that the process ran out of room before WPML could finish its work.

That limit may stay invisible while you edit a page or publish a post. Then a bulk translation, a large WooCommerce product, String Translation task, or plugin-heavy admin request pushes memory usage over the edge. The result is often frustratingly inconsistent: one page translates without issue, while another brings the workflow to a halt.

The wpml allowed memory size exhausted error is not solved by guessing at a bigger number. The PHP limit WordPress is actually using, the place where it is configured, and the reason memory pressure keeps returning all matter—especially on a site where translation work is already demanding.

What Does “Allowed Memory Size Exhausted” Mean in WPML?

How Much PHP Memory Does WPML Need?

It is a PHP limit, not automatically a WPML bug

A wpml allowed memory size exhausted error means PHP tried to use more RAM than your hosting configuration permits for one request. WPML is often where the failure becomes visible, but the message does not prove that WPML is defective. It usually means WordPress, WPML, the active theme, and other plugins collectively crossed the server’s memory ceiling.

Multilingual sites naturally make some requests heavier. When WordPress loads a translated page or a large admin screen, WPML may also load language relationships, translation jobs, String Translation records, and related metadata. Add a page builder, SEO plugin, WooCommerce, or a large custom-field setup, and a modest memory limit can disappear quickly.

Why the error message shows a number such as 134217728 bytes

PHP reports memory in bytes. For example, 134217728 bytes equals 128 MB, which is a common PHP memory limit. A typical fatal error also states how many bytes PHP attempted to allocate, such as “tried to allocate 262144 bytes.” That second number is not the total memory requirement; it is the next block PHP needed after the request had already reached its limit.

In other words, a request can fail while asking for only 256 KB because the existing 128 MB allocation is already full.

When WPML memory errors are most likely to occur

The problem tends to surface during resource-heavy work rather than ordinary front-end browsing. Common triggers include:

A single small post may work perfectly while a product edit fails. That difference is the clue: the memory limit is being reached by the size and complexity of the specific request, not necessarily by WPML alone.

How Much PHP Memory Does WPML Need?

Start with 256 MB for a small multilingual WordPress site

There is no single WPML memory figure that fits every site, but 256 MB is a sensible starting point for a modest multilingual installation. That usually covers ordinary posts and pages, a lightweight theme, a limited plugin stack, and occasional translation work. By contrast, 128 MB may look adequate on a fresh WordPress install yet become tight once WPML, an SEO plugin, a form plugin, caching, and a page editor are all loading in the same request.

If you see a wpml allowed memory size exhausted error at 128 MB, moving to 256 MB is a reasonable first response—not an admission that WPML is inherently broken.

Use 512 MB for WooCommerce, page builders, or bulk translation

For active commercial or content-heavy sites, 512 MB is often the more practical setting. WooCommerce adds products, variations, attributes, cart logic, and metadata; WPML then needs to process their language relationships as well. Elementor and Bricks builds can also create large, nested content structures that consume more memory during editing, saving, and translation.

The same applies to sites with extensive ACF field groups, large WPML String Translation tables, or batch translation jobs. Translating one short page is very different from processing dozens of product pages and their custom fields in a queue. A 512 MB limit gives those peak operations useful breathing room.

Why raising memory is not always the complete fix

More memory can prevent an immediate fatal error, but it should not conceal a deeper problem. A sudden jump in usage may point to a plugin conflict, outdated WordPress, PHP, WPML, or add-on versions, inefficient custom code, or an unusually large translation backlog.

Also check the server’s total RAM. A host may allow 512 MB per PHP process while running several simultaneous requests; under traffic, that can still exhaust available server memory. Treat the PHP limit as part of diagnosis, then review the plugin stack, error logs, and the workload that triggers the failure.

How to Increase the WordPress and PHP Memory Limit

A wpml allowed memory size exhausted error is rarely fixed by changing one line and hoping for the best. WordPress can request more memory, but it cannot override the maximum PHP memory allocation your host permits. That server-level ceiling is the one that matters.

Check the memory limit WordPress is actually using

Start with the active value, not the value you think the server uses. In WordPress, go to Tools > Site Health > Info > Server and find PHP memory limit. Also check your hosting control panel’s PHP settings, making sure you are viewing the PHP version assigned to this site. If the numbers conflict, ask support to confirm the active memory_limit for the affected domain.

Set WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT in wp-config.php

Add these constants to wp-config.php, before the “That’s all, stop editing!” line:

  • WP_MEMORY_LIMIT affects normal front-end requests.
  • WP_MAX_MEMORY_LIMIT is intended for administration tasks, including demanding translation and String Translation work.

For example, a site might request 256M for both. However, these constants are requests, not guarantees: they cannot raise PHP beyond the host’s configured limit.

Raise PHP memory_limit through your host or server configuration

If WordPress still reports the old value, change memory_limit at the PHP level. Common routes include cPanel’s MultiPHP INI Editor, Plesk PHP Settings, a managed host dashboard, or a php.ini or .user.ini file. On locked-down hosting, submit a support request. This is the decisive fix when wp-config.php has no effect.

Confirm the change and retest the failed WPML task

Clear any PHP, object, or hosting cache that may retain stale settings, then revisit Site Health to verify the new limit. Finally, repeat the exact action that failed: edit the same page, run the same translation job, or translate the same String Translation batch. A successful smaller task does not prove the memory problem is gone.

How to Prevent WPML Memory Errors From Returning

Update WordPress, WPML components, and the active theme

A higher PHP limit can hide a compatibility problem without fixing it. Keep WordPress core, WPML, every active WPML add-on, and your theme current—especially before running translation jobs. An older page-builder integration, WooCommerce extension, or theme framework may repeatedly load excessive data during translation, creating the conditions for a wpml allowed memory size exhausted error. Updates do not guarantee lower memory use, but mismatched versions are an avoidable source of it.

Translate large workloads in smaller batches

Bulk translation is convenient, but a queue of 500 products is not the same workload as five pages. Split large jobs into smaller groups, particularly when products have variations, custom fields, multilingual SEO metadata, or builder-generated content. Translate one batch, confirm it completes, then continue. Avoid running a bulk translation, string scan, plugin update, and cache rebuild at the same time; all can compete for the same PHP workers and server memory.

Test for plugin and theme conflicts

Use a staging site for this test. Temporarily disable nonessential plugins and switch to a default WordPress theme, then repeat the action that failed. If memory use drops, restore components one at a time until the problem returns. This is slower than increasing a number in wp-config.php, but it identifies whether an SEO plugin, page builder, custom field package, or theme integration is inflating WPML’s workload.

Review hosting resources, not only the PHP limit

A 512 MB PHP memory limit is meaningful only if the server has sufficient total RAM, CPU capacity, and available PHP workers. On shared hosting, several concurrent requests can exhaust account-level resources even when each process stays within its own limit. If ordinary translation tasks still crash after updates, smaller batches, and conflict testing, ask the host to inspect error logs and worker saturation—or move to a plan designed for heavier WordPress admin workloads.

Give WPML Room to Work—and Verify What Is Actually Applied

For many smaller WPML sites, 256 MB is a practical starting point; for WooCommerce stores, page builders, large translation queues, and complex plugin stacks, 512 MB is often the safer operational limit. Update the appropriate server-level setting, then confirm the active value in WordPress or your hosting panel—not merely the value in a configuration file. If a wpml allowed memory size exhausted error persists after that, treat it as a signal to inspect the failing process, conflicting plugins, unusually large content, and PHP error logs rather than endlessly raising the limit.

A healthy memory limit is not about giving WordPress unlimited resources; it is about leaving enough headroom for multilingual work to finish reliably. For sites already committed to WPML, LATW AI Translator for WPML can also provide a lower-cost translation workflow through your own chosen AI or machine-translation provider instead of WPML’s built-in translation credits. Set the limit, verify it is live, and let the remaining errors point you to the real bottleneck.

Our WordPress plugins
Translate your WordPress site with AI
Pick the LATW plugin that fits how your site is built - a complete standalone multilingual system, or drop-in AI translation for the setup you already run.
LATW for WPML Add-on for WPML
LATW for WPML
Translate posts, pages, custom fields, builder content and strings 1400× cheaper than WPML's Automatic Translation - billed to your own API key.
→ Works with everything WPML supports
→ Gutenberg, WooCommerce, Elementor, Bricks
→ Yoast & Rank Math SEO fields
Read more →
LATW Multilingual Standalone
LATW Multilingual
Language switcher, clean URLs and full multilingual SEO in one package - no WPML or Polylang required. Pro adds AI translation on six engines.
→ Standalone - no WPML or Polylang needed
→ Switcher, clean URLs & full hreflang SEO
→ Free bilingual site; Pro adds AI translation
Read more →
← Back to blog