How to fixed WordPress Error Allowed Memory Size Of 40M Exhausted Quick Fix 128M

Опубликовано: 27 Февраль 2026
на канале: WP Solution
52
1

How to fixed WordPress Error Allowed Memory Size Of 40M Exhausted Quick Fix 128M
To fix the WordPress error "Allowed Memory Size Of 40M Exhausted Quick Fix 128M", you need to increase the memory limit allocated to WordPress. This error typically occurs when WordPress requires more memory than the default limit set in your server's configuration.

Here's a short description of the steps to fix this issue:

Locate the wp-config.php file: This file is located in the root directory of your WordPress installation.

Edit the wp-config.php file: Open the wp-config.php file in a text editor.

Add a line of code: Add the following line of code just before the line that says "That's all, stop editing! Happy blogging."

php
Copy code
define( 'WP_MEMORY_LIMIT', '128M' );
Replace '128M' with the desired memory limit. You can set it to '256M' or higher if needed.

Save the changes: Save the wp-config.php file and close the text editor.

Check if the issue is resolved: Reload your WordPress site and see if the error is gone. If it persists, you may need to contact your hosting provider for assistance or try alternative methods to increase the memory limit, such as editing the PHP.ini file or contacting your server administrator.

By following these steps, you should be able to quickly fix the "Allowed Memory Size Of 40M Exhausted" error in WordPress and increase the memory limit to 128M or higher.




WPSOLUTION
Whatsapp: +8801723397649