Title: HTTP error during upload, XHR failed loading: POST wp-admin/async-upload.php,
Last modified: March 15, 2018

---

# HTTP error during upload, XHR failed loading: POST wp-admin/async-upload.php,

 *  [acwporg](https://wordpress.org/support/users/acwporg/)
 * (@acwporg)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/http-error-during-upload-xhr-failed-loading-post-wp-admin-async-upload-php/)
 * Hi,
    I have a client site that was seeing the HTTP error during upload and XHR
   failed loading: POST wp-admin/async-upload.php in the console on Chrome.
 * With WP_DEBUG enabled, we’re seeing this error:
 * Fatal error: Call to undefined function imagecreatefromjpeg() in /wp-content/
   plugins/image-watermark/image-watermark.php on line 1099
 * When I disable this plugin, the images upload without issue.
 * Prior I had checked memory limit (still 256Mb) and trialled this setting in .
   htaccess in WP-ADMIN folder turning off mod_security settings – didn’t fix.
 * <IfModule mod_security.c>
    SecFilterEngine Off SecFilterScanPOST Off </IfModule
   >
 * Also added this to .htaccess
    setEnv MAGICK_THREAD_LIMIT 1 as per this – [https://www.inmotionhosting.com/support/edu/wordpress/http-image-error](https://www.inmotionhosting.com/support/edu/wordpress/http-image-error)
 * Site is running PHP 5.6.34 with latest WP and plugins – Image Watermark Version
   1.6.4
 * My fix thus far is disable auto watermarking or deactivate plugin.
 * Applying the watermark manually via Media Library also fails with this error 
   in PHP Log
    PHP Fatal error: Call to undefined function imagecreatefromjpeg()
   in /home/mjptemp/public_html/wp-content/plugins/image-watermark/image-watermark.
   php on line 1099.
 * thanks!

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

 *  Plugin Author [dFactory](https://wordpress.org/support/users/dfactory/)
 * (@dfactory)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/http-error-during-upload-xhr-failed-loading-post-wp-admin-async-upload-php/#post-10095086)
 * That’s strange.
    Please check if you have GD Library or ImageMagic extension 
   activated on your server. You should have at least one of them available.
 *  [jimmi_steen](https://wordpress.org/support/users/jimmi_steen/)
 * (@jimmi_steen)
 * [8 years ago](https://wordpress.org/support/topic/http-error-during-upload-xhr-failed-loading-post-wp-admin-async-upload-php/#post-10372681)
 * We have exactly same problem. And yes ImageMagic is installed and working properly
   on our server.

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

The topic ‘HTTP error during upload, XHR failed loading: POST wp-admin/async-upload.
php,’ is closed to new replies.

 * ![](https://ps.w.org/image-watermark/assets/icon-256x256.png?rev=3416802)
 * [Image Watermark](https://wordpress.org/plugins/image-watermark/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/image-watermark/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/image-watermark/)
 * [Active Topics](https://wordpress.org/support/plugin/image-watermark/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/image-watermark/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/image-watermark/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [jimmi_steen](https://wordpress.org/support/users/jimmi_steen/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/http-error-during-upload-xhr-failed-loading-post-wp-admin-async-upload-php/#post-10372681)
 * Status: not resolved