I've ploughed the FAQs and forum and tried everything. I will try to cover everything here!
I have three blogs sat on one hosted server (via 1&1). One's a very old version of WP and aside from being covered in cobwebs works fine. The other two are v2.8.4 and both exhibit the same problem
As of a week or so back, I receive the following error when I upload images from my PC to the blog. The "loading" bar goes fully to 100%, the system pauses for maybe 45 seconds and then:
Fatal error: Out of memory (allocated 32505856) (tried to allocate 4096 bytes) in /homepages/8/d151455252/htdocs/Moshtour/wordpress/wp-includes/media.php on line 345
I have added the following lines (one at a time and both at once) to my wp-config.php:
ini_set("memory_limit","128M"); define('WP_MEMORY_LIMIT', '128MB');
I tried adding the suggested line to the .htaccess file but then receives "Error 500" when accessing the web sites. I assume this is a security restriction by my ISP and fair enough.
I don't have access to my php.ini file, so contacted my site hosts. They told me to upload a fresh one which would supersede the existing one. I did this, including the line:
memory_limit = 256M
I've checked that this ini file is being picked up and it definitely is. But it still doesn't fix the error - I'm still running out of memory after the 32M (specifically 32505856B) point.
I finally disabled all plug-ins. This fixed it. Next step was to re-enable them. I got as far as three (the third being WordPress.Com Stat) before the error reappeared. I've tried a few other combinations and there is no single plug-in that's causing the issue.
I have to wonder, though, despite every ini and cfg file telling the system to ramp up or 128M or 256M why my WP is collapsing as it can't find any space after 32M?
Pretty please, anyone? It's such a pain not being able to upload photos to a travel blog!