Title: HTTP Error When Uploading Images
Last modified: October 25, 2019

---

# HTTP Error When Uploading Images

 *  [farquhc](https://wordpress.org/support/users/farquhc/)
 * (@farquhc)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/http-error-when-uploading-images-36/)
 * Hello,
 * I am getting a weird HTTP error with no additional messaging other than HTTP 
   Error when I upload certain images. I also get this error when I use media_handle_upload
   to upload images from the frontend. Is there a bug, or something I can do with
   server configuration to address this issue?

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

 *  [Thomas@iThemes](https://wordpress.org/support/users/thomas4ithemes/)
 * (@thomas4ithemes)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/http-error-when-uploading-images-36/#post-12065857)
 * Actually that has known to happen quite often. You might see if this link helps:
   
   [https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-http-image-upload-error-in-wordpress/](https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-http-image-upload-error-in-wordpress/)
 *  Thread Starter [farquhc](https://wordpress.org/support/users/farquhc/)
 * (@farquhc)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/http-error-when-uploading-images-36/#post-12066333)
 * Tried that, tripled the resources and increased the execution time to 5 mins,
   but now I’m getting a 400 error around the admin-ajax file.
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/http-error-when-uploading-images-36/#post-12066506)
 * 1)Write this down to wp-config.php before calling wp-settings.php
 *     ```
       define('WP_DEBUG',true);
       define('WP_DEBUG_LOG', true);
       $show_errors = true;
       ```
   
 * 2)Backup your files and database.
 * > [WordPress Backups](https://wordpress.org/support/article/wordpress-backups/)
 * 3)Ask your hosting if you can overwrite the WordPress core files if your hosting
   gives you the green light overwrite the core files for the use of wordpress 3.7
   you can go to the last current version (minimum php 5.6.20 for WordPress 5.2 
   otherwise minimum php 5.2.4 for the antecedent versions).
    [https://wordpress.org/support/article/updating-wordpress/#manual-update](https://wordpress.org/support/article/updating-wordpress/#manual-update)
 * otherwise if you use WordPress less than 3.7 you have to perform the extended
   update every two minor … for WordPress 3.5 means update to 3.5.2 when available
   otherwise it advances.
 * > [Upgrading WordPress – Extended Instructions](https://wordpress.org/support/article/upgrading-wordpress-extended-instructions/)
 * 4)When you don’t use the site or you have no errors you have to disable debugging
   in this way
 *     ```
       /*define('WP_DEBUG',true);
       define('WP_DEBUG_LOG', true);
       $show_errors = true;*/
       ```
   
 * 5)If you still can’t, set the default theme, disable plugins by renaming the 
   plugins folder.
    Many times the error is because you do not correctly update 
   manually, follow the instructions I gave you in step 3.
 *  [stevenocean1122](https://wordpress.org/support/users/stevenocean1122/)
 * (@stevenocean1122)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/http-error-when-uploading-images-36/#post-12067099)
 * I am also facing still same error while uploading images in my [https://offshorededicated.net/](https://offshorededicated.net/).
   please help me to solve this problem!
 *  [autotutorial](https://wordpress.org/support/users/autotutorial/)
 * (@autotutorial)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/http-error-when-uploading-images-36/#post-12067116)
 * I notice that you use the CloudFlare reverse proxy, if you have installed WordPress
   from a zip file you can activate this pligin press clear the cache.
    [https://wordpress.org/support/topic/301-redirect-after-cloudflare-ssl/#post-12015233](https://wordpress.org/support/topic/301-redirect-after-cloudflare-ssl/#post-12015233)
   Maybe you have jascript error
 * > [Using Your Browser to Diagnose JavaScript Errors](https://wordpress.org/support/article/using-your-browser-to-diagnose-javascript-errors/)
 * [https://docs.wp-rocket.me/article/18-using-wp-rocket-with-cloudflare](https://docs.wp-rocket.me/article/18-using-wp-rocket-with-cloudflare)
   off Rocket Loader
    -  This reply was modified 6 years, 6 months ago by [autotutorial](https://wordpress.org/support/users/autotutorial/).
 *  [techdetects](https://wordpress.org/support/users/techdetects/)
 * (@techdetects)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/http-error-when-uploading-images-36/#post-12097889)
 * i thick maybe some error in your cloudeflare. remove cache from pluin or reopen
   your wp acc and then try[.](https://techdetects.com/)
 *  [absecpak](https://wordpress.org/support/users/absecpak/)
 * (@absecpak)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/http-error-when-uploading-images-36/#post-12360168)
 * You completed a number of nice points there. I did a search on the issue and 
   found nearly all people will have the same opinion with your blog[.](https://absecuritysol.com/cctv-cameras/)

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

The topic ‘HTTP Error When Uploading Images’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 1 participant
 * Last reply from: [absecpak](https://wordpress.org/support/users/absecpak/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/http-error-when-uploading-images-36/#post-12360168)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
