Skip to content
Menu Menu
  • Home
  • Posts
  • RSS
  • About
Expand Search Form
Open Widgets

Digital Tips & Tricks

© koenrogiers.be - Sharing is caring

WordPress http error when uploading media (png)

Koen October 7, 2015 0


I’ve been searching the web for a solution of my uploader in WordPress. It gives a http error when uploading png images, in the class-wp-image-editor-imagick.php file in the load function:
$this->image = new Imagick( $this->file );

WordPress version is  4.3.1
ImageMagick version 6.5.4-7
PHP Version 5.4.42

No idea if it is the combination of this can be the problem but I found a partial solution for the problem. In WordPress, go to Appearence -> Editor and open the functions.php file. Now enter this code snippet at the bottom:

add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ );
function change_graphic_lib($array) {
    return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ );
}

This solution fixes the problem in /wp-admin/media-new.php but not on other pages like /wp-admin/post-new.php and /wp-admin/upload.php.

I’m investigating the problem with my hosting partner, will share a complete solution when available.

I’ve found the first part of my solution here:
https://wordpress.org/support/topic/http-error-when-uploading-images-but-not-all-failing

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


Categories Internet Tags http error, imagick, php, upload, wordpress
Previous: Spotlight search not showing contacts
Next: Google Trends Screensaver
Close Widgets

Recent Posts

  • Meterstanden digitaal registreren
  • Mollie – Online betaalprovider

Tags

alias app apple bashprofile calendar certificate chrome cloud convert dropbox google ie internet explorer ipad iphone mac mail maximize microsoft mobile monitor move mp3 online operating system php pictures privacy search sharing shortcut snap ssl storage telenet terminal tips tool upload virtual virtualbox web window windows youtube

Recent Comments

  • Koen on Macbook shift lock voor cijfers / nummers
  • RoySie on Macbook shift lock voor cijfers / nummers
  • Tim on Crelan iPad app crasht bij opstarten
  • Patrick Goethals on Macbook shift lock voor cijfers / nummers
  • Patrick Goethals on Macbook shift lock voor cijfers / nummers

© koenrogiers.be | Disclaimer | Privacy Policy | RSS | Contact | Digital Tips & Tricks