Last active
June 5, 2021 06:13
-
-
Save ajitbohra/8dc968042b0c2269da017f2aad8a6ed6 to your computer and use it in GitHub Desktop.
Fixing Wordpress Media Upload HTTP Error on Godaddy / Shared Hosting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); | |
} | |
?> |
I've been looking all over for a solution! This worked perfectly. THANK YOU
Thank you! You saved my day.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Amazing, works perfectly!