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-errorSite 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!
- The topic ‘HTTP error during upload, XHR failed loading: POST wp-admin/async-upload.php,’ is closed to new replies.