How to increase server memory limit

In case you have many plugins installed, you may encounter problems with saving the theme options panel . In case this happens, you can try to increase the server memory limit by choosing one of the following options :

WordPress way :#

1. Edit your wp-config.php file and enter the following code :

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

You can find more information about this here :

http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

PHP.ini file :#

If you have access to your php.ini file on your server, please follow this steps :

  1. Open the php.ini file
  2. Search for the following text : “memory_limit”
  3. Increase this value to 64MB as shown bellow :
memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)

.htaccess file :#

Before proceeding this way, please backup your .htaccess file.

  1. Open the .htaccess file
  2. Add the following code :
php_value memory_limit 64M

If none of the options above fixed your problems, please contact your hosting provider and ask them to increase the memory limit of your site to 64MB.