Methods for increasing the amount of memory a PHP script may consume
1. If you have access to your PHP.ini file, change the line in PHP.ini
If your line shows 16M try 32M:
memory_limit = 32M ; Maximum amount of memory a script may consume (32MB)
2. If you don’t have access to PHP.ini try adding this to an .htaccess file:
php_value memory_limit 32M
3. Try adding this line to your wp-config.php file:
Increasing memory allocated to PHP
define('WP_MEMORY_LIMIT', '32M');
4. Talk to your host.
As for your post writing problem, what happens after you’ve solved the PHP memory problem. Also what happens if you disable all plugins?
I apparently don’t have access to my PHP.ini file. At least I was unable to find it.
I implemented suggestions 2 and 3, without success.
I will talk to my host tomorrow or Monday.
Thanks for the help but I was an assembler language programmer back in the 70s and have become almost proficient at HTML. PHP is not even in my vocabulary.
Hello I’m Adrie Silva the owner of a web hosting, design, & tutorials network. I have my network on the same IP as my clients so I went through this same issue and I have the step by step solutions for altering the memory limit set by default in the php.ini file:
1: Go to your “public_html” directory
2: Locate the “wp-settings.php” file (it should be in the same directory where you first installed wordpress and where you’ll find the wp-config.php file)
3: Edit the “wp-settings.php” file
4: Change the number of the “memory_limit” to something bigger like 96..
How?
-Find:
define(‘WP_MEMORY_LIMIT’, ’32M’);
-Replace the 32 with 96
define(‘WP_MEMORY_LIMIT’, ’96M’);
-Save the file
-Refresh your website
-That should work and have you installing more plugins to your hearts delight!
Now if you’re still having problems email me at: Adrie@silvaprints.com
Or get hosted with my shared ip at a rate of 0.17Cents a month per 1GB of unmetered bandwidth, unlimited services including Fantastico on cPanel! Three days of Free Trial plus 99% uptime between 4 servers!
~Adrie Silva
http://motivate.silvaprints.com