Fatal Errorz

Posted on: July 19th, 2012

Fatal error: Call to undefined method wpdb::delete()

That was the line that almost killed me. The line that almost made me lose it and run into the streets screaming. But thankfully it can be fixed.

If you were like me and had a Dreamhost server crash (lesson learned, sharing servers sucks), you may have had some down time the past few weeks. If you follow me on Twitter, you saw my anger:

After all was said and done I tried logging into my admin. Much to my dismay I saw that there was a Fatal Error.

To me, Fatal Error means: EVERYTHING IS DEAD! YOUR FAMILY HATES YOU! YOUR DATABASE FARTS IN YOUR GENERAL DIRECTION! Heartbreak and anger were the first things to kick in. Then the simple Google logic. Search for it.

Praise the WordPress forums and their infinite wisdom. This topic has the answer at the bottom. Download a fresh version of WordPress, and replace the wp-admin and wp-includes directories.

The issue most likely occurred when you tried to upgrade a database and WordPress (or your server) farted out on you.

Hopefully this saves someone…and if not, meh, still nice to know why my database hated me for a while.

Tags: , , , , , , ,

previous post: Get The Slug and Name From Custom Taxonomy next post: Pass and $_GET a Title in PHP