Skip to content

Instantly share code, notes, and snippets.

@ajitbohra
Last active June 5, 2021 06:13
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ajitbohra/8dc968042b0c2269da017f2aad8a6ed6 to your computer and use it in GitHub Desktop.
Save ajitbohra/8dc968042b0c2269da017f2aad8a6ed6 to your computer and use it in GitHub Desktop.
Fixing Wordpress Media Upload HTTP Error on Godaddy / Shared Hosting
<?php
/**
* Facing HTTP Error on wordpress media upload on Godaddy / Shared Host ? This snippet might help you fix issue
* For more details about issue: http://www.lubus.in/blog/wordpress-media-upload-http-error-godaddy-shared-hosting-255
**/
/** Change graphic manuplation library used by wordpress **/
add_filter( 'wp_image_editors', 'change_graphic_lib' );
function change_graphic_lib($array) {
return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
}
?>
@joelemberson
Copy link

Amazing, works perfectly!

@tronish1189
Copy link

I've been looking all over for a solution! This worked perfectly. THANK YOU

@zonay
Copy link

zonay commented Mar 3, 2019

Thank you! You saved my day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment