WordPress "Allowed Memory Size Exhausted" Error: Fix It
PHP ran out of memory. Raise the limit in wp-config.php or your hosting panel, then find what is using it.
The full message reads like Fatal error: Allowed memory size of 134217728 bytes exhausted. That number is the limit in bytes, and 134217728 is 128 MB.
Step 1: Raise the WordPress limit

Add this line to wp-config.php, above the line That's all, stop editing!:
define( 'WP_MEMORY_LIMIT', '256M' );
Important: this setting only works up to the limit your hosting allows. If your host caps PHP at a lower value, WordPress cannot go beyond that cap.
Step 2: Raise the limit in your hosting panel

Most hosting panels have a PHP configuration page with a memory_limit option. Choose a higher value such as 256M or 512M. Some plans only offer certain values, so check what your plan allows.
Step 3: Find what is using the memory

Raising the limit treats the symptom. Look at the cause:
- A plugin that does heavy work, such as a backup, import or page builder.
- An action that handles a lot of data at once, such as a large import or image processing.
If the error began right after installing or updating something, switch that plugin off by renaming its folder in wp-content/plugins.
Step 4: Reduce the load

- Remove plugins you do not use.
- Upload smaller images.
- Ask your host if your plan is too small for your site.
Still failing?
Your host can see the exact PHP limits for your account. Ask them what the maximum memory_limit is on your plan.
Related guides
- Writing Clear Error Reports: Screenshots, URLs and Steps
- WordPress Tag and Date Archives Duplicate Content: Settings
- WordPress Permalinks Change: Redirect Old URLs and Avoid 404s
- Error Establishing a Database Connection in WordPress: Full Checklist