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

file-manager

Then find the wp-config.php file in the public directory of the websitepublic-html

Then edit the wp-config.php file, right-click and then select the edit menu.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.

For example:

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 thisedit-menu

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.

Sharing is caring

Explore Docs

© 2023 All Rights Reserved by Artistudio

Website problem, contact us!