Title: HTTP error when uploading large files
Last modified: August 31, 2016

---

# HTTP error when uploading large files

 *  [Twansparant](https://wordpress.org/support/users/twansparant/)
 * (@twansparant)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/http-error-when-uploading-large-files-1/)
 * Hi there,
 * I’ve been using your plugin on this particular website for quit some time now
   and I don’t know exactly since when, but I started getting **HTTP errors** on
   uploading large files (from about 3,5 Mb and up) when the **Auto Generate** option
   is checked:
 * Auto Generate [v]
    Disable Responsive (WP 4.4+) [v] Disable Medium Large (WP 
   4.4+) [v]
 * When I uncheck the **Auto Generate** option and upload the same file again, it
   does upload without errors.
    The files that fail are actually uploaded on the
   server and the all the image sizes are created, but not the retina ones. The 
   files are also grey without thumbnail in my media library. So the upload task
   definitely fails during the creation of the retina files.
 * I tried increasing my **php memory** to a ridiculous high value of 2040 Mb in
   my **.htaccess** and **wp-config.php**, but that doesn’t help. My upload folder
   permissions are also correct.
 * Any idea what might be causing this?
    Thanks!
 * [https://wordpress.org/plugins/wp-retina-2x/](https://wordpress.org/plugins/wp-retina-2x/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/http-error-when-uploading-large-files-1/#post-7148984)
 * Hello!
 * > I tried increasing my php memory to a ridiculous high value of 2040 Mb in my.
   > htaccess and wp-config.php, but that doesn’t help.
 * Actually it might be the time it takes to the script to do everything. Can you
   try to disable all the Retina size in the settings? Try again? (should work) 
   Try to active only one size? (everything checked, one only unchecked, maybe smallest
   one).
 * Also, it would be good to have a little look at the PHP error logs, maybe the
   error is plainly written in there 🙂
 *  Thread Starter [Twansparant](https://wordpress.org/support/users/twansparant/)
 * (@twansparant)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/http-error-when-uploading-large-files-1/#post-7148986)
 * > Actually it might be the time it takes to the script to do everything. Can 
   > you try to disable all the Retina size in the settings? Try again? (should 
   > work) Try to active only one size?
 * When I disable **Auto Generate**, upload my large photo and manually generate
   the retina images afterwards, everything goes fine.
 * My error log says:
    `PHP Fatal error: Allowed memory size of 268435456 bytes 
   exhausted (tried to allocate 15360 bytes) in /path/to/mydomain/public_html/wp/
   wp-includes/media.php on line 2743`
 * So indeed it’s a memory problem…
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/http-error-when-uploading-large-files-1/#post-7149098)
 * > When I disable Auto Generate, upload my large photo and manually generate the
   > retina images afterwards, everything goes fine.
 * If you do this, it disables everything. I think it would be interesting to active
   it, disable all the images, check all the images “out” and add them one by one.
   Maybe there are a few you don’t need (and maybe you have a lot?). Of course the
   retina process double the time and the memory it takes when a new image is uploaded.
 * You can also check this : [http://stackoverflow.com/questions/21680244/fatal-error-allowed-memory-size-of-268435456-bytes-exhausted-tried-to-allocate](http://stackoverflow.com/questions/21680244/fatal-error-allowed-memory-size-of-268435456-bytes-exhausted-tried-to-allocate).
   Your PHP current settings for memory is quite low 🙂
 *  Thread Starter [Twansparant](https://wordpress.org/support/users/twansparant/)
 * (@twansparant)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/http-error-when-uploading-large-files-1/#post-7149127)
 * > I think it would be interesting to active it, disable all the images, check
   > all the images “out” and add them one by one. Maybe there are a few you don’t
   > need (and maybe you have a lot?).
 * Yes I do have a lot (like 12 custom sizes), but I can’t really miss one of them
   unfortunately…
 * > Your PHP current settings for memory is quite low
 * Huh? I succesfully set it to 2048 Mb (I checked it with a phpinfo), and that’s
   already waaaayyy higher then the recommended 512 Mb? I even tried it with 4096
   Mb and I still got the http error…

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘HTTP error when uploading large files’ is closed to new replies.

 * ![](https://ps.w.org/wp-retina-2x/assets/icon-256x256.png?rev=2597316)
 * [Perfect Images: Regenerate Thumbnails, Image Sizes, WebP & AVIF](https://wordpress.org/plugins/wp-retina-2x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-retina-2x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-retina-2x/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-retina-2x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-retina-2x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-retina-2x/reviews/)

## Tags

 * [http error](https://wordpress.org/support/topic-tag/http-error/)
 * [large files](https://wordpress.org/support/topic-tag/large-files/)
 * [media](https://wordpress.org/support/topic-tag/media/)
 * [upload](https://wordpress.org/support/topic-tag/upload/)

 * 4 replies
 * 2 participants
 * Last reply from: [Twansparant](https://wordpress.org/support/users/twansparant/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/http-error-when-uploading-large-files-1/#post-7149127)
 * Status: not resolved