Portal Home > Knowledgebase > WordPress > Fixing An "allocated memory" error with Word Press


Fixing An "allocated memory" error with Word Press




Please note that Wordpress is not our software. You should confront WordPress for support when dealing with WordPress related issues.

However, we do try to help our customers the best we can.

So here is a copy of the WordPress support FAQ's page article dealing with "alocated memory issues and settings"

 

 Increasing memory allocated to PHP for Wordpress Installations 

Also released with Version 2.5, the WP_MEMORY_LIMIT option allows you to specify the maximum amount of memory that can be consumed by PHP. 

This setting may be necessary in the event you receive a message such as "Allowed memory size of xxxxxx bytes exhausted".

This setting increases PHP Memory only for WordPress, not other applications. 

By default, WordPress will attempt to increase memory allocated to PHP to 40MB (code is at beginning of wp-settings.php),

so the setting in wp-config.php should reflect something higher than 40MB.

WordPress will automatically check if PHP has been allocated less memory than the entered value before utilizing this function. 

For example, if PHP has been allocated 64MB, there is no need to set this value to 64M as WordPress will automatically use all 64MB if need be.

Please note, this setting may not work if your host does not allow for increasing the PHP memory limit--in that event, contact your host to increase the PHP memory limit.

Also, note that many hosts set the PHP limit at 8MB.

Increase PHP Memory to 64MB

define('WP_MEMORY_LIMIT', '64M');

Increase PHP Memory to 96MB

define('WP_MEMORY_LIMIT', '96M');

When in the administration area, the memory can be increased or decreased from the WP_MEMORY_LIMIT by defining WP_MAX_MEMORY_LIMIT.

define('WP_MAX_MEMORY_LIMIT', '256M');

Cache

The WP_CACHE setting, if true, includes the wp-content/advanced-cache.php script, when executing wp-settings.php.

define('WP_CACHE', true);

 
================================================================================================

Please note that there are other options to increase memory allocated to PHP.

We can setup files on your sever if you need more memory allocation for multiple installs

of WordPress or other applications where you are trying to use a lot of memory.

eg. large plugins, large uploads or large theme installs for WordPress.

If you need more assistance with memory allocation, please open a support ticket and we'll be glad to help.

 

 



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read

Powered by WHMCompleteSolution