Increase Memory Limit in WordPress
The WP_MEMORY_LIMIT option is used to give instructions to PHP to use the maximum memory at a specified number.
This case is often found if WordPress runs out of memory.
The message that often appears is “Allowed memory size of xxxxxx bytes exhausted”
Or for example using Elementor, when editing, Elementor editor does not appear or only white blank.
or there is an Elementor Widget section loading continuously.
These are some of the characteristics of your WordPress running out of memory.
To increase memory, WordPress can edit the wp-config.php file
Can use FileManager from cPanel
Then find the wp-config.php file in the public directory of the website
Then edit the wp-config.php file, right-click and then select the edit menu.
Find the sentence “/ * That’s all, stop editing! Happy publishing. * /”
below that line, put this code “define (‘WP_MEMORY_LIMIT’, ‘xxM’);” without the quotes.
xx here is a number that will be used to determine the memory limit.
define (‘WP_MEMORY_LIMIT’, ’64M’);
define (‘WP_MEMORY_LIMIT’, ‘128M’);
define (‘WP_MEMORY_LIMIT’, ‘256M’);
define (‘WP_MEMORY_LIMIT’, ‘512M’);
So that after the wp-config.php file is edited like this
Don’t forget to save the changes and good luck.
Note: Some hosting companies do not allow changes to this file. Please contact the relevant Hosting Support.
- Wp Environment
- Web Hosting
- Wp Framework
- Wp Basic
- Wp Community Events
- Wp Plugins
- Booking Appointment
- Image Optimization
- Media Management
- Wp Themes
- Wp Tools
- Wp Troubleshoot
- Wp Visual Builder