Fix : Http error uploading media in WordPress

This post will help you fix an error while you try to insert an image or any media in a WordPress post using your browser. Though, this error might be due to a temporary http request mishandling by your hosting server, it might as well be due to memory constraints within your WordPress installation.

Let us try and fix this issue with the steps mention herein.

Fix: http error while uploading images to a WP post

httperrorwp

Method 1 : Change the memory limit in your WordPress configuration

Required : An FTP client and a text editor
While I prefer using CoreFTP and notepad or notepad++, any FTP client or editor will do the job.

  • Login to your FTP server
  • Locate “wp-config.php” file
  • Right click the file and click on edit
  • memory_limit
  • Insert the code as highlighted in the image above

define( ‘WP_MEMORY_LIMIT’, ‘256M’ );

Save the file and overwrite it, if prompted.

Method 2: Logout and Log back in

  • Log out of your WordPress
  • Log in again
  • Try to upload the image to check if it works

Hope this solves the issue, if not please use the comment or contact section to contact me and I will try my best to solve it for you.