• 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

    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

    (@dfactory)

    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.

    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.