Fix Error 400 Bad Request http in Wordpress

15
byLev
6K followers
Updated

Are you trying to update or publish a post/page and you get sent to that horrible page that says: 400 Bad Request Error

Maybe while trying to update you noticed that Wordpress is "saving draft" for what seems like forever and you can't even update. Well then this may fix it.

By the way, I have read others say to deactivate your plugins to find the culprit or upgrade your Wordpress version. Or try a different browser or update your browser, etc. Well, what if you have done all this and still nothing.

Wait! Before you waste hours like I did doing all that - first try this. It worked for me.

So it turns out that it may not even be your browser that is causing this either.

The simple solution is, all you need to do is Flush Your Local DNS Cache

Here's how...


For Windows:

1. Click on Start, followed by All Programs, and then Accessories.

2. Right-click on Command Prompt and choose Run as Administrator.

3. In the Command Prompt window type in the following command and press Enter:

ipconfig/flushdns

4. If all goes well, which it should, you will see the following confirmation message:

Successfully flushed the DNS Resolver Cache.

For Apple:

Issue the following command for OS X Mountain Lion or Lion:

killall -HUP mDNSResponder

...for older systems try this:

dscacheutil -flushcache -or- lookupd -flushcache

Then you're going to want to log-out and back in to Wordpress. And hopefully, magically all your troubles will be over!

I hope this solves it. Good luck.

Lev

Login
Create Your Free Wealthy Affiliate Account Today!
icon
4-Steps to Success Class
icon
One Profit Ready Website
icon
Market Research & Analysis Tools
icon
Millionaire Mentorship
icon
Core “Business Start Up” Training

Recent Comments

16

Thanks for this tip!
- Ces

Tried it and still didn't work. Renamed the file and it worked! Tada!! Thanks for the tip ;-)

Glad it worked Liz and thanks for adding yet another solution:)

Thank you so much for this Lev! This was really helpful. I kept getting the 404 Error every time I tried to publish content and it was getting on my nerves, very frustrating. Now its all fine. :-)

No problem Ashwini! I'm glad I could help. It was driving me crazy too:)

While I have not had this experience, somewhere along the way this is certainly possible. So...I thank for taking the time to compose this for our benefit.

Too bad you only received one 'Like" on this as I expect it could benefit others in the many who are studying and developing their websites.

I'll remember and share this link if I see someone similarly stuck! Thanks much!

Linda

Thanks Linda if it helps just one person it will have been worth it ;-)

Yes I agree, it just seems to be happening much more often to me, the more work i do inside wordpress. I suggest clearing browser history and dns cache everyday...if you're working in wordpress a lot.

I guess it is because it did not work for everybody.

I wish it had work. I know it could resolve this kind of thing (Flushin dns) so THX ! but... not enough :P

One additional thing to try first is...saving draft or publishing while your cursor is in the title section...this seems to work sometimes too.

Thank you so much for this share Lev! This is a great additional information. Very much appreciate it.

Thanks, just keep it in the back of your mind ;-)
If it still doesn't work then close all open connections, tabs, close all browsers and check with different browsers, clearing history, etc one last time.

See more comments

Login
Create Your Free Wealthy Affiliate Account Today!
icon
4-Steps to Success Class
icon
One Profit Ready Website
icon
Market Research & Analysis Tools
icon
Millionaire Mentorship
icon
Core “Business Start Up” Training