HTTP ERROR when uploading images in WordPress with LiteSpeed

This issue may or may not have to do with LiteSpeed.

Here are some suggestions that may help you to troubleshoot first:

Suggestion 1:

Put this in your themes 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’ );
}

Suggestion 2:

Server configuration may not have the proper amount of memory allocated to Apache/PHP.

If anyone has this same problem, please try verifying that you have enough server memory allocation in your server configuration settings.
You can also add this to your wp-config.php file:
define(‘WP_MEMORY_LIMIT’, ’64MB’);

Suggestion 3:
Go to the /wp-content/ directory and see if the /uploads/ folder has been given the correct file permission.

If none of these suggestions work, please let us know.

  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

500 errors

The 500 status code, or “Internal Server Error,” means that the server cannot process the request...

Add support key

To add the LiteSpeed support team's key to your server, run the following command from the SSH...

Compression isn't working

Please make sure the .CSS MIME-type has been added to "Compressible Types" in the web admin...

Database connection issue caused by CL Imunify360

In this situation, LSWS may not be the cause of your MySQL database connection issue.Do you use...

Fatal error when enabling LSCWP in WHM cache manager

While using the Web Cache Management feature of our WHM plugin, you might occasionally see an...