Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

HTTP error when uploading media WordPress

Hey Everybody,

I'm trying to upload a picture in Wordpress media.

I get HTTP error (red).

Tried everything suggested from the WP forums for e.g.

tested everything on different os and browsers
adding some code to htaccess
changing permission
deactivating all plugins

Didn't work.

Someone suggested mod_security might interfere with the upload process (something to do with flash uploader useragent being blacklisted) so I tried HTTP upload

Didn't work.

- newest versions of woocommerce, the template and wp
- system is running on php 5.3 and strato servers

thanks for the help!

Answers (5)


Michael Caputo answers:

What permissions are you setting the uploads folder to?

Are you sure you've chosen the right folder in the settings?

If you've changed the uploads folder, try removing that path and letting wodpress find the folder itself, sometimes it doesn't need to be changed.

Beat-Fabrics comments:

permissions and folders are correct

it worked for 5 - 7 images and suddenly the error appears. after some time (one day eg) i can upload some images again???

Michael Caputo comments:

Are the sub folders in the upload directory set to the correct permissions?

It just became November, so maybe the November folder may not have the correct permissions?

Beat-Fabrics comments:

yes, all folders have correct permissions.
it is weird, because it works some images and than suddenly http error

Michael Caputo comments:

How big of a file are you uploading?

You may be reaching your max allowed file size for uploads.

Beat-Fabrics comments:

the files are jpg 500 x 700px and each is max. 500kb

Michael Caputo comments:

My best suggestion would be to check with your host and see if they can help you. Sounds like a server configuration problem to me.

Beat-Fabrics comments:

i allready contact strato, and they told me, thex cant help me with this problem :(

Michael Caputo comments:

Try a different browser? Firefox, chrome etc?

Beat-Fabrics comments:

yes, different browser and os


Arnav Joy answers:

are you getting any error messages ?

do you have space in the folder?

Beat-Fabrics comments:

yes. enough space and the right folder


Francisco Javier Carazo Gil answers:

Set WP_DEBUG to true and tell us if there are another problem. Also set debug in php.ini:

Beat-Fabrics comments:

wp_debug told me this:
Notice: Undefined offset: 1 in /mnt/webf/a1/44/5211844/htdocs/wp-content/themes/meari/hana/functions-slider.php on line 114

Francisco Javier Carazo Gil comments:

It doesn't seem to be the problem, but try to fix it (maybe it's a solution).

Look at this line and fix it, if you don't know how, tell me.

Beat-Fabrics comments:

sorry, but i dont know how


Daniel Yoen answers:

did you tried this?

Put this line in your wp-config file:

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

Beat-Fabrics comments:

tried it, but again http error

Daniel Yoen comments:

Where do you host your web ? :-)

Beat-Fabrics comments:

php 5.3

Daniel Yoen comments:

try to disable fastCGI in your cpanel :-)

Beat-Fabrics comments:

i have to ask strato, because i cant change it with my account. sended them an email. :)


Dbranes answers:

Here are some (more) ideas :-)

1) change 'Store uploads in this folder' to 'wp-content/uploads'
(just to be sure the upload path is right)

2) uncheck the 'uploads into month- and year-based folders' box.
(i.e. testing it with no subdirectories created)

3) add this to your .htaccess file (top) in your wp root directory (just to test)

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off

for part 1) and 2) you can do the changes here

You can also visit the "hidden" option page

and search for the values:


ps: I think it is a good rule to log every change you make,
and then redo them, so your problem doesn't get worse.