I am running a WordPress 2.9.2 blog with a custom Debian installation on an Amazon Web Services EC2 machine.
Everything worked fine until Monday. Then came Tuesday, and suddendly, overnight, I canβt upload photos using the default WP file downloader (either flash or html).
When I try to upload an image, it displays the following error:
The file is empty. Download something more substantial. This error can also be caused by disabling downloads in your php.ini or post_max_size, defined as less than upload_max_filesize in php.ini
So, I checked my php.ini and changed some settings as follows:
- upload_max_filesize : 64M
- post_max_size : 90M
- memory_limit : 128M
- max_excecution_time : 600
- max_input_time : 600
But that did not work. Then I tried chmod - the wp-content / uploads / folder and its subfolders in 777 . Does not work.
Did some research on Google and added the 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>
Does not work. Finally, the increased WP memory limit in the wp-settings.php file. Does not work.
So now I have no options. Anyone have any ideas on how to solve this? It really annoys me and my client!
Thanks in advance!
source share