• 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)

zubaer File Upload Error, HTTP Error, WordPress Error Leave a Comment
Share on Facebook Share on Twitter Share on Pinterest Share on StumbleUpon Share on Reddit Share on LinkedIn Share on tumblr
Email this article!
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:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Related

Next Article How to Create New WordPress Administrator via MySQL

About Author

zubaer

Hi, My name is Zubaer and I am a Web Devloper. Besides, I am Hybrid Mobile App Developer. My fields of proficiency are WordPress, Laravel, HTML, CSS, JavaScript, AngularJS and PHP. You can visit www.zubaer.com to know more about me.

Related Posts

  • Secure WordPress site from hacking, DDoS and Brute force attack

    How to Secure WordPress Site From Hacking, DDoS and Brute Force Attack

  • create new administrator account using mysql

    How to Create New WordPress Administrator via MySQL

Leave a Reply

Cancel reply




Popular Posts

  • Using Cron Job in WordPress - - Schedule Events With WP-Cron
    Using Cron Job in WordPress – Schedule Events With WP-Cron: Part 1 December 20, 2016
  • C Program to Store Multiple Student Records Using Structure and Pointer May 27, 2023
  • SSH Secure Shell Commands
    Frequently Used SSH (Secure Shell) Commands for a Web Developer September 7, 2016
  • Update WordPress site URL via PHPmyadmin
    WordPress Replace Old URL After Domain Change September 27, 2016

Categories

  • Advanced WordPress Topic2
  • C Programming2
  • Computer Programming2
  • Securing WordPress2
  • Series Tutorials2
  • SSH (Secure Shell1
  • WordPress Common Facts1
  • WordPress Insights2
  • WordPress Tips and Tricks4
  • WordPress Troubleshooting3

Calorie Calculator Pro

  • US Units
  • Metric Units
Please enter your age
Please enter your gender
Please enter your height
Please enter your weight (Pounds)
Please select an activity level
Your Activity Level
Basal Metabolic Rate (BMR)Sedentary - little or no exerciseLightly Active - exercise/sports 1-3 times/weekModeratetely Active - exercise/sports 3-5 times/weekVery Active - hard exercise/sports 6-7 times/weekExtra Active - very hard exercise/sports or physical job
Your body fat percentage (optional)
Please enter your First Name
Please enter your Last Name
Please enter your best email address
Please enter your age
Please enter your gender
Please enter your height
Please enter your weight (Kg)
Please select an activity level
Your Activity Level
Basal Metabolic Rate (BMR)Sedentary - little or no exerciseLightly Active - exercise/sports 1-3 times/weekModeratetely Active - exercise/sports 3-5 times/weekVery Active - hard exercise/sports 6-7 times/weekExtra Active - very hard exercise/sports or physical job
Your body fat percentage (optional)
Please enter your First Name
Please enter your Last Name
Please enter your best email address
Please enter your best email address
Problem? Try Another

Archives

  • May 20233
  • July 20171
  • December 20162
  • September 20162
  • July 20162

Tags

File Upload Error HTTP Error Prevent DDoS and Brute Force Attack Schedule Events Secure Shell Securing WordPress SSH SSH Commands Structure and Pointers in C Structures in C Programming Using Cron Job WordPress Administrator WordPress Common Facts WordPress Cron Job WordPress Error WordPress Insights WordPress Tips WordPress Tricks WP-Cron

My Services and Products

  • Hire Me or Contact Me
  • My WordPress Plugins and Themes
  • WeboCoder
  • Privacy Policy
  • Terms of Use
  • About Us

Subscribe

    Your Name (required)

    Your Email (required)

    Random Posts

    • Secure WordPress site from hacking, DDoS and Brute force attack
      How to Secure WordPress Site From Hacking, DDoS and Brute Force Attack December 5, 2016
    • http error with wordpress file upload
      How to Fix HTTP Error in WordPress (Different Possible Ways) July 25, 2016
    • WP Cron - All scheduled cron jobs
      Using Cron Job in WordPress – Schedule Events With WP-Cron: Part 2 July 10, 2017
    © WP Tuts Hub 2023.