Resolving Generic “HTTP Error” in the WordPress Media Uploader

Over time I have built, edited, and contributed to hundreds of WordPress websites. But it wasn’t until an odd scenario of events this year that I ran into a rogue, yet vague error in WordPress “HTTP error” …

The Generic “HTTP error” during a WordPress Upload

wordpress upload http error

The WordPress HTTP Error Upload Problem:

  1. Uploading images caused a generic”HTTP Error” in the WordPress Upload.
  2. The raw files was getting uploaded to the WordPress website but WordPress wasn’t crunching the image or producing any of the alternate image sizes.
    1. The thumbnails in the Media Gallery were also missing
  3. No PHP error was being logged in the error_log file

Fixing the WordPress HTTP Error

After some research and review I found a plugin that was shared on github that resolves a conflict. The underlying issue is that some website hosts and WordPress have a conflict on the WP Image Editor class. This seems to be a rare issue. I have only run into this on one website.

The solution was to apply to create this WordPress plugin and add it to the WordPress having the issue. Once the plugin was activated, the HTTP error was gone on the next upload attempt. WordPress media uploads returned to the proper crunching and optimization process.

Resources

Want to learn more about wordpress? Try this resource...

Digging into WordPress