WP Tuts Hub

WordPress Tutorials, Themes and Plugins Hub
Advertisement

Browse

  • Home
  • Categories
    • WordPress Troubleshooting
    • WordPress Tips and Tricks
    • SSH (Secure Shell)
    • WordPress Insights
    • WordPress Common Facts
    • Securing WordPress
  • Series Tutorials
    • Advanced WordPress Topic
  • Privacy Policy
  • Terms of Use
  • Contact Me
  • About WP Tuts Hub
Home/WordPress Troubleshooting/How to Fix HTTP Error in WordPress (Different Possible Ways)
WordPress Troubleshooting
July 25, 2016

How to Fix HTTP Error in WordPress (Different Possible Ways)

  • File Upload Error
  • HTTP Error
  • WordPress Error
http error with wordpress file upload

“HTTP Error” is one of the WordPress’s most common and frustrating error. It’s kinda overwhelming when you suddenly get “HTTP Error” without any clue left behind to fix it. Though there can be different possible reasons to this particular problem, we will try to solve this problem with all of the different possible ways.

Different Possible Ways to Fix HTTP Error in WordPress:

Try implementing different methods incrementally to see if it fixes this problem.

Method 1:

Increase your PHP memory.  Add this code define('WP_MEMORY_LIMIT', '64M') into your wp-config.php file.

  • To learn more about increasing memory limit in PHP read this official documentation at WordPress Codex.

Method 2:

Add this piece of code at the top of your .htaccess file:

SetEnv MAGICK_THREAD_LIMIT 1

Note (If you have Wordfence plugin installed):

  • It’s usually seen after installing Wordfence plugin.
  • If it doesn’t work try changing Wordfence Plugin’s Firewall status from “Enabled and Protecting” to others or try unchecking some of the options like “file_upload”
  • After changing configurations or disabling plugins clear Cache or switch themes to another one temporarily to clear caches.

Method 3:

Add one of these codes in .htaccess (at the top):

<IfModule mod_security.c>
 SecFilterEngine Off
 SecFilterScanPOST Off
</IfModule>

or

# Exclude the file upload and WP CRON scripts from authentication

<FilesMatch "(async-upload\.php|wp-cron\.php|xmlrpc\.php)$">
  Satisfy Any
  Order allow,deny
  Allow from all
  Deny from none
</FilesMatch>

or

AddType x-mapp-php5 .php

(at the very top of your .htaccess file)

Method 4:

It may also happens due to EWWW Image optimizer plugin. Try after disabling this plugin.

  • After changing configurations or diabling plugins clear Cache or switch themes to another temporarily to clear the cache.

Method 5:

Disable Wordfence plugin or change Firewall status from “Enabled and Protecting” to others or try unchecking some of the options like “file_upload”

  • After changing configurations or diabling plugins clear Cache or switch themes to another temporarily to clear the cache.

Method 6:  (Nginx specific)

First make sure the upload_max_filesize, post_max_size and memory_limit has enough size. Open your php.ini file and change them if they are too low.


;This sets the maximum amount of memory in bytes that a script is allowed to allocate
memory_limit = 128M

;The maximum size of an uploaded file.
upload_max_filesize = 100M

;Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize
post_max_size = 200M

And then, open nginx configuration file. You can find it in
sudo nano /etc/nginx/nginx.conf or sudo nano /usr/local/nginx/conf/nginx.conf
Put this piece of code in http or server or location context to increase the size limit in nginx.conf:


# set client body size to 2M #
client_max_body_size 100M;

Method 7:

If the above methods doesn’t fix your problem try disabling your plugins one by one so that you can figure out if any one of them are causing the issue.

Still cannot figure out what is wrong? Send me an email to zubaer[at]wordpressinsights[dot]com and I shall try to help you.

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Reddit (Opens in new window) Reddit
  • Email a link to a friend (Opens in new window) Email

Related

Next Article How to Create New WordPress Administrator via MySQL

About the author

Md. Zubaer Ahammed
Md. Zubaer Ahammed

Md. Zubaer Ahammed is a senior full-stack developer building learning platforms and modern web systems with WordPress, Laravel, Python/Django, Vue, and React. More at https://zubaer.com/.

Related Posts

  • WooCommerce HPOS Migration: Updating Custom Order Meta Without Breaking Reports
  • Secure WordPress site from hacking, DDoS and Brute force attack How to Secure WordPress Site From Hacking, DDoS and Brute Force Attack
WP Tuts Hub

WordPress tutorials, themes, and plugins — written for builders.

  • Portfolio
  • Calorie Calculator Pro
  • Contact
  • About
  • Privacy
  • Terms

© 2026 WP Tuts Hub · Md. Zubaer Ahammed