Everything's empty

How to Fix a Sudden Disappearance of all WordPress Posts

| 3 Comments

It’s your biggest nightmare; you go to your WordPress site, and there’s no content there. Did the blog goblin come and munch it all up? You log in to your dashboard, but all of the posts are all listed, like nothing happened. What sort of voodoo trickery is this!?

Well, in the few instances that I’ve dealt with this, it’s always been a single culprit and it’s actually very easy to fix. Assuming that nothing else is to blame (like a recently installed plugin, or some theme editing gone wrong), here’s where I’d start.

Check your database

Log into your web host. If you’ve got a good web host (like HostGator), you’ll be working with cPanel. Scroll down to the databases section and click on phpMyAdmin, which is the application for managing your SQL databases. Then open up your WordPress database and click on the Structure tab to review all of the tables in your database.

Scroll down to your wp_posts and wp_comments tables and look to see whether they say In Use where the Type and Collation columns are. If they do, check the box(es) at the beginning of the row and at the bottom of the table, choose Repair from the drop-down menu. You should get a little confirmation that the tables have been repaired.

Now head back to your site and reload it. Is everything back to normal? If not, I invite you to explain your circumstances below so that other users who have the same problem can find a solution.

Categories: The Basics | Permalink

What next?

Hire me

If you couldn't quite manage this yourself, find it too intimidating, or just don't have the time to do it, you can always hire Dave to do it. Please get in touch so that we can discuss your needs.

Leave a comment

If you have a question, update, or comment about the tutorial, please leave a comment. I try and respond to every comment, though it may take a few days, so please check back soon.

Keep your site backed up, updated & secure

I provide a service called The WP Butler, which helps you stay on top of the maintenance of your WordPress site. Instead of worrying about whether your site is secure, updated and backed up, The WP Butler handles all that for you on a regular basis, so that you can focus on doing what you do best. If you use coupon DIWW, you'll save 15% on our already-low-prices for all maintenance plans.

Author: Dave Clements

Dave Clements has been building websites for close to a decade and in 2010, he formalised that by starting his own company, The UK Edge. He now works on a variety of web projects, from simple tasks like installing a new WordPress site, to consulting on problems, or redesigning his clients' sites. He also runs Do It With WordPress, a site dedicated to providing free tutorials on WordPress. When he's not building your new website, you can find Dave eating Wheat Thins, spending time with friends and family, watching Indie films, fostering kittens from the local Humane Society, listening to some dubstep, dance and electronic rock, and exploring the world.

3 Comments

  1. This has happened before and all I did was disable the last plugin installed, then deleting it and just going into permalinks and hitting update button that usually does the trick even before you go into the db this is worth a shot. :)

  2. Thank you Mario and Dave. Exactly what I needed! I suddenly had all my posts disappear when I updated a single post and the site was ‘hanging’ on the post update. I guess it got one of the tables stuck in ‘in use’. Saving the permalinks did the trick though :-)

Leave a Reply