Title: HTTP error when uploading
Last modified: January 3, 2018

---

# HTTP error when uploading

 *  [Matt](https://wordpress.org/support/users/mzak/)
 * (@mzak)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/http-error-when-uploading-7/)
 * When uploading images of any size, I’m getting an HTTP error once the upload 
   completes (screenshot: [https://i.imgur.com/7WqrLly.png](https://i.imgur.com/7WqrLly.png))
 * Interestingly the image is in fact uploading and optimizing, but this error message
   is confusing to users.
 * Could someone look into this please?

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

 *  [Jacques Letesson](https://wordpress.org/support/users/jk_/)
 * (@jk_)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/http-error-when-uploading-7/#post-9862854)
 * Hello [@mazk](https://wordpress.org/support/users/mazk/),
 * I have the exact same issue.
 * Looking forward to a fix.
 * J.
 *  [Jacques Letesson](https://wordpress.org/support/users/jk_/)
 * (@jk_)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/http-error-when-uploading-7/#post-9862880)
 *     ```
       [14-Jan-2018 09:57:36 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in /var/www/html/wp-content/plugins/kraken-image-optimizer/lib/Kraken.php:65
       Stack trace:
       #0 /var/www/html/wp-content/plugins/kraken-image-optimizer/lib/Kraken.php(50): Kraken->request(Array, 'https://api.kra...', 'upload')
       #1 /var/www/html/wp-content/plugins/kraken-image-optimizer/kraken.php(1171): Kraken->upload(Array)
       #2 /var/www/html/wp-content/plugins/kraken-image-optimizer/kraken.php(1273): Wp_Kraken->optimize_image('/var/www/html/w...', 'lossy')
       #3 /var/www/html/wp-includes/class-wp-hook.php(288): Wp_Kraken->optimize_thumbnails(Array)
       #4 /var/www/html/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)
       #5 /var/www/html/wp-admin/includes/image.php(293): apply_filters('wp_generate_att...', Array, 11506)
       #6 /var/www/html/wp-admin/includes/media.php(384): wp_generate_attachment_metadata(11506, '/var/www/html/w...')
       #7 /var/www/html/wp-admin/includes/ajax-actions.php(2113): media_handle_upload('async-upload', '11505', Array)
       #8 /var/www/ht in /var/www/html/wp-content/plugins/kraken-image-optimizer/lib/Kraken.php on line 65
       ```
   
 * This is the error I got in the log. Curl is installed and working though.

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

The topic ‘HTTP error when uploading’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [Jacques Letesson](https://wordpress.org/support/users/jk_/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/http-error-when-uploading-7/#post-9862880)
 * Status: not resolved