The WP Memory Limit is the maximum amount of memory (RAM) that your site can use at one time. You generally have a Memory Limit issue when your installations is not compliant with the Server Requirements for a modern WordPress installation. When you reach your Memory Limit, you’ll encounter a fatal error. Several things consume memory, such as WordPress itself, the theme you’re using, and the plugins installed on your site. Basically, the more content and features you add to your site, the bigger your memory limit has to be. The default memory limit for WordPress is 32MB if you’re only running a small site with basic functions without a Page Builder and Theme Options (for example the native Twenty Sixteen). However, once you use a Premium WordPress theme and you start encountering unexpected issues, it may be time to adjust your memory limit to meet the standards for a modern WordPress installation.
Increasing WP Memory Limit
Increase the WP Memory Limit is a standard practice in WordPress and you find instructions also in the official WordPress documentation (Increasing memory allocated to PHP), otherwise follow the few steps below:
- Locate your wp-config.php file in the root folder of your WordPress installation.
- Open the wp-config.php with a text editor program (Notepad, TextEdit, Sublime Text) and add this code
define( 'WP_MEMORY_LIMIT', '96M' );
generally afterdefine('WP_DEBUG', false);
, screenshot. - Save the file and refresh your System Status tab. If the WP Memory Limit turns green, then you have successfully increased your WP Memory Limit.
Increasing Server Memory Limit
To increase the Server Memory Limit, you’ll need to access and modify certain files such as the php.ini file. Most hosts won’t grant you full access to modify the PHP.ini file because it affects the whole server and all the websites hosted on it. Generally you can’t modify the Server Memory Limit on low budget hosts. Please contact your host first to find out if they can adjust it for you.
Comments
0 comments
Article is closed for comments.