Fix Error 400 Bad Request http in Wordpress

Last Update: December 12, 2014

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

Join the Discussion
Write something…
Recent messages
LizPB Premium
Tried it and still didn't work. Renamed the file and it worked! Tada!! Thanks for the tip ;-)
Reply
Lev Premium
Glad it worked Liz and thanks for adding yet another solution:)
Reply
Ashwini26 Premium
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. :-)
Reply
Lev Premium
No problem Ashwini! I'm glad I could help. It was driving me crazy too:)
Reply
lindasea Premium
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
Reply
Lev Premium
Thanks Linda if it helps just one person it will have been worth it ;-)
Reply
lindasea Premium
It seems that just doing this as a matter of site maintenance makes sense. Your thoughts?
Reply
Lev Premium
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.
Reply
lindasea Premium
Thank you VERY much for this suggestion. '-)
Reply
Techjul21 Premium
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
Reply
Lev Premium
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.
Reply
burnz07 Premium
Thank you so much for this share Lev! This is a great additional information. Very much appreciate it.
Reply
Lev Premium
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.
Reply
Top