This is by far one of the most annoying errors in WordPress.
It is because it’s a non-descriptive error, and shows nothing, so it can be a little difficult to fix.
I actually have no idea why the error occurs. I have been using WordPress for close to 8 years, and I have seen it off in the last 3 maybe. Usually, it goes away on its own, or reuploading the image kind of does the trick but with the recent WordPress core update, it did not.
This issue may be about the web hosting used, or just something else. Honestly, I really haven’t looked it that much to be able to establish the exact cause.
The good news is, I was able to come up with a quick solution that involved adding the following code to the Theme’s function.php.
add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ ); function change_graphic_lib($array) { return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ ); }
Pro Tip: Where to Add PHP Code in Divi Theme
It is important to note that when adding php code into the Theme’s function.php, it must be added into a child theme. This is to avoid losing your changes whenever there is a new Divi Theme update.
Pro Tip: How to Quickly Disable Automatic WordPress Core Updates
Well, that’s it! We hope you enjoyed reading this tutorial.





0 Comments