Fix HTTP Error

‘HTTP error’ on uploading images can be fixed by adding the following code inside functions.php file of your theme. It’s located here ‘wp-contents/themes/your_theme/functions.php’ add the below code in the last line (just before ?>)

Some theme functions.php will not have PHP close tags ‘?>’ . In such case, you can just put this piece of code below the last line of the file.

CODE:

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

/ / /

Report (Please include link to post while reporting)

Leave a Reply

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