I'm running a WordPress 2.9.2 Blog with a custom install of Debian in a Amazon Web Services EC2 machine.
Everything was working fine until monday. Then came tuesday, and suddendly, overnight, I can't upload pictures using the default WP file uploader (either flash or html).
When I try to upload a picture, it displays the following error:
File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini
So I checked out my php.ini, and modified some settings as follows:
But it didn't work. Then I tried chmod -ing the wp-content/uploads/ folder and its subfolders to 777. Didn't work.
Did some research on Google, and added following lines to .htaccess:
<IfModule mod_security.c>
SetEnvIfNoCase Content-Type
"^multipart/form-data;" "MODSEC_NOPOSTBUFFERING=Do not buffer file uploads"
</IfModule>
<IfModule mod_gzip.c>
mod_gzip_on No
</IfModule>
Didn't work. Finally, increased WPs memory limit in wp-settings.php file. Didn't work.
So I'm all out of options by now. Anyone has any ideas on how to solve this? It's really bugging me and my client off!
Thanks in advance!
Not sure if this was the case (it has been over a year), but in many cases, for this same issue, the problem was due the hard drive being full.
Stupid, I know.
Just check how much space is left, and, if none, go delete logs. Apache, PHP, MySQL. They add up a lot of data when enough time is given.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With