Title: Image upload HTTP generic error
Last modified: January 25, 2019

---

# Image upload HTTP generic error

 *  Resolved [erotavlas](https://wordpress.org/support/users/erotavlas/)
 * (@erotavlas)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/image-upload-http-generic-error/)
 * Hi,
    I found a problem with latest version 5.0.3 of wordpress and latest version
   0.9.7.1 of W3 Total Cache plugin. In particular, after several trials and errors,
   I found that in order to upload the images the W3 Total Cache plugin needs to
   be disabled. Do you know if it depends on some configuration? I noticed this 
   since last update of the plugin. Thank you

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

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/image-upload-http-generic-error/#post-11130170)
 * Hello,
    Can you please share the error you get when you try to upload the images?
 *  [moisture9063](https://wordpress.org/support/users/ngrhd/)
 * (@ngrhd)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/image-upload-http-generic-error/#post-11130305)
 * This is exactly what I’m facing on my Multisite
 *  [moisture9063](https://wordpress.org/support/users/ngrhd/)
 * (@ngrhd)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/image-upload-http-generic-error/#post-11130330)
 * [https://i.imgur.com/bZy1iVW.png](https://i.imgur.com/bZy1iVW.png)
    It happens
   as soon as I enable W3 from Network settings. None of the multisite is able to
   upload image.
    -  This reply was modified 7 years, 4 months ago by [moisture9063](https://wordpress.org/support/users/ngrhd/).
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/image-upload-http-generic-error/#post-11130356)
 * Did the issue occur after the update?
 *  [moisture9063](https://wordpress.org/support/users/ngrhd/)
 * (@ngrhd)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/image-upload-http-generic-error/#post-11130373)
 * Thank you for the reply. I turned off the HTML minify but the specific issue 
   still persists, however, I noticed one thing got corrected. The wordpress admin
   bar when viewing the site from frontend now loads correctly.
 *  [harris.anas](https://wordpress.org/support/users/harrisanas/)
 * (@harrisanas)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/image-upload-http-generic-error/#post-11130378)
 * I found this thread because after the upgrade to version 0.9.7.1 of W3 Total 
   Cache plugin, I was getting “HTTP Error” when uploading images to Media Library.
 * The following workaround of Marko Vasiljevic worked for me as described on thread
   [https://wordpress.org/support/topic/error-after-upgrade-29/](https://wordpress.org/support/topic/error-after-upgrade-29/)
 * What happens is:
    In wp-content/plugins/w3-total-cache/Cdn_Plugin.php on line
   74 there is this:
 *     ```
       add_filter( 'wp_insert_attachment_data',
             array( $this, 'check_inserting_new_attachment' ) );
       ```
   
 * It should be this:
 *     ```
       add_filter( 'wp_insert_attachment_data',
             array( $this, 'check_inserting_new_attachment' ), 10, 2 );
       ```
   
 * Hopefully a fix will be released soon. Thank you Marko!
 *  [moisture9063](https://wordpress.org/support/users/ngrhd/)
 * (@ngrhd)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/image-upload-http-generic-error/#post-11130405)
 * [@harrisanas](https://wordpress.org/support/users/harrisanas/) Thank you for 
   pointing to the post! This worked.
 *  [harris.anas](https://wordpress.org/support/users/harrisanas/)
 * (@harrisanas)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/image-upload-http-generic-error/#post-11130419)
 * [@ngrhd](https://wordpress.org/support/users/ngrhd/) Glad for helping! Credits
   to Marko Vasiljevic [@vmarko](https://wordpress.org/support/users/vmarko/)
    -  This reply was modified 7 years, 4 months ago by [harris.anas](https://wordpress.org/support/users/harrisanas/).
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/image-upload-http-generic-error/#post-11130481)
 * Hello,
    Glad to know the issue was resolved!
 *  [mikepolinske](https://wordpress.org/support/users/mikepolinske/)
 * (@mikepolinske)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/image-upload-http-generic-error/#post-11132659)
 * [@harrisanas](https://wordpress.org/support/users/harrisanas/) Thank you very
   much!
 * [@vmarko](https://wordpress.org/support/users/vmarko/) any idea when an update
   will come out?
 *  [toto1988](https://wordpress.org/support/users/toto1988/)
 * (@toto1988)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/image-upload-http-generic-error/#post-11133116)
 * [@harrisanas](https://wordpress.org/support/users/harrisanas/) You´re my hero!
   Thanks a lot!
 *  [Claudio Bernasconi](https://wordpress.org/support/users/bernasconi/)
 * (@bernasconi)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/image-upload-http-generic-error/#post-11141183)
 * I can confirm that this error starts occurring after the latest update of W3 
   Total Cache and it seems to me that it only affects users with a configured CDN.
   I used the fix mentioned by [@harrisanas](https://wordpress.org/support/users/harrisanas/)
   above which resolved the issue for me. Hope this report helps to fix the error
   in the next update.
 *  [raptureforums](https://wordpress.org/support/users/raptureforums/)
 * (@raptureforums)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/image-upload-http-generic-error/#post-11147132)
 * I’m having the same problem. Any idea when a plugin fix is coming for this? I
   haven’t been able to update my image on my site since this W3TC upgrade. Thank
   you.

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

The topic ‘Image upload HTTP generic error’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 13 replies
 * 8 participants
 * Last reply from: [raptureforums](https://wordpress.org/support/users/raptureforums/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/image-upload-http-generic-error/#post-11147132)
 * Status: resolved