WordPress Memory Exhausted Error – Increase PHP Memory

when activated a new plugin from WordPress backend, I got memory exhausted error – Increase PHP Memory like Fatal error: Allowed memory size of 33563442 bytes exhausted (tried to allocate 2128511 bytes)

This error occurs when a WordPress script or a plugin exhausts the default allocated memory size limit.

irst open your wp-config.php of your WordPress site which is located in the root WordPress directory. Then add the following line inside the main php tag:

Now we increased the memory limit to 128M. If you still get the error after added codes, then please contact your host. Most likely, would have to go in their php.ini file to increase the memory limit for you. if you are allowed to modify php.ini by yourself, just add the following line

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments