Title: Fatal error: Call to undefined method wpdb::delete()
Last modified: August 20, 2016

---

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

 *  [rhayward](https://wordpress.org/support/users/rhayward/)
 * (@rhayward)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/)
 * After an update to 3.4 a few of the blogs I administer are all rendering this
   error upon attempting to enter the dashboard:
 * Fatal error: Call to undefined method wpdb::delete() in /home/***/wp-includes/
   option.php on line 370
 * I’m not running any of the DB Cache plugins known to produce this error (so no
   db.php to remove), worse yet I’ve disabled all plug-ins (have done the php my
   admin disable, as well as renaming the plugins folder) and the error persists.
 * Interestingly all the blogs I have that got auto-updated via Dreamhost settings
   are experiencing this error, however I’ve got a test blog running the same install
   that I manually updated to 3.4 and is working fine.
 * Any other solutions to this error that aren’t plugin related?

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/page/2/?output_format=md)

 *  Thread Starter [rhayward](https://wordpress.org/support/users/rhayward/)
 * (@rhayward)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/#post-2850442)
 * Addition:
 * The error is produced from this URL:
 * [http://***/wp-admin/upgrade.php?_wp_http_referer=%2Fwp-admin%2F](http://***/wp-admin/upgrade.php?_wp_http_referer=%2Fwp-admin%2F)
 *  [sonyapiquete](https://wordpress.org/support/users/sonyapiquete/)
 * (@sonyapiquete)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/#post-2850490)
 * I have this exact same issue. My site was auto updated via Dreamhost and I’m 
   not running any DB Cache plugins. I’ve actually deleted all plugins and renamed
   my themes folder so that it’s pointing to twentyeleven. I have another site with
   the same host/on the same server (but using twentyten), but I believe I somehow
   updated that one manually before the Dreamhost auto-update happened (if that’s
   even how it works).
 * I’m very new at this and hoping for a solution other than deleting the entire
   site and doing a fresh install of WP.
 * –thank you
 *  [sonyapiquete](https://wordpress.org/support/users/sonyapiquete/)
 * (@sonyapiquete)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/#post-2850522)
 * I have found a fix that works for me. I downloaded a fresh copy of WordPress 
   to my computer and via FTP, replaced just the wp-includes and the wp-admin folders.
   I found this fix as the answer to a related forum question, but I failed to copy
   the link to that page. If I can find it again I’ll post to this page.
 *  [alexleonard](https://wordpress.org/support/users/alexleonard/)
 * (@alexleonard)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/#post-2850539)
 * Hmm, I’ve just encountered this issue on one of the WP sites I administer.
 * I’ve upgraded (via auto-upgrade) about 10 or 12 sites this morning and just one
   of them has completely failed.
 * Any attempt to access the admin area results in
 * `Fatal error: Call to undefined method wpdb::delete() in /path/to/wp-includes/
   option.php on line 370`
 * I’ve completely deleted and re-uploaded the wp-admin and wp-includes folders (
   and root files). Nothing has changed.
 * I don’t have any caching plugins (or any plugins of any complexity really).
 * The front of the site still works and I can also load /wp-admin/upgrade.php (
   which shows no db upgrade required).
 * I’m going to have to rollback the site from our nightly backups which is a pain
   in the hole 🙁
 *  Thread Starter [rhayward](https://wordpress.org/support/users/rhayward/)
 * (@rhayward)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/#post-2850578)
 * Thanks for the suggestion Sonyapiquete, I was able to copy over the wp-includes
   and wp-admin folders from a working blog to the non-working blog, this produced
   the ‘database requires updating’ screen upon logon attempt. After database update
   it seems to be working as intended. Will give it a try on my other failed blogs.
   For an added level of safety, I simply renamed the existing wp-includes and wp-
   admin to wp-includes-old and wp-admin-old, in the event the new versions produced
   the same error.
 * RH
 *  [SpearDJ](https://wordpress.org/support/users/speardj/)
 * (@speardj)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/#post-2850596)
 * Hello,
 * Just chiming in that sonyapiquete’s solution worked for me perfectly. I was also
   updated automatically with Dreamhost and had the same issues. Had to do a Database
   update indeed as well but that took no time and everything worked after such.
 *  [alexleonard](https://wordpress.org/support/users/alexleonard/)
 * (@alexleonard)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/#post-2850597)
 * Hmm, sadly not for me. Even after completely deleting wp-admin and wp-includes
   and re-uploading them I still can’t get access to the backend. Going to try playing
   with it again tomorrow morning. If no joy I’ll roll back to our backup from last
   night.
 *  [alexleonard](https://wordpress.org/support/users/alexleonard/)
 * (@alexleonard)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/#post-2850614)
 * Sorted!
 * I tried the 3.4.1 update this morning and it worked. Very odd but I’m not going
   to worry about it too much.
 * 🙂
 *  [AJAY777](https://wordpress.org/support/users/ajay777/)
 * (@ajay777)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/#post-2850621)
 * I have downloaded the new WordPress 3.4 and using it with mu-plugin. I am using
   SQL-Server database.
    In earlier version WordPress 3.2 everything was working
   fine but now I am getting these two errors in Latest version of WordPress3.4
 * 1. I am getting following error when trying to delete the post from trash:-
 * Fatal error: Call to undefined method sqlsrv_wpdb::delete() in C:\inetpub\wwwroot\
   wordpress\wp-includes\post.php on line 2084
 * 2. I am getting following error when trying to update the general settings at
   admin section:-
 * Fatal error: Call to undefined method sqlsrv_wpdb::delete() in C:\inetpub\wwwroot\
   wordpress\wp-includes\option.php on line 370
 * Please tell How to resolve these errors???
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/#post-2850623)
 * [http://wordpress.org/support/topic/troubleshooting-wordpress-34-master-list](http://wordpress.org/support/topic/troubleshooting-wordpress-34-master-list)
 *  [gwen](https://wordpress.org/support/users/gw3n/)
 * (@gw3n)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/#post-2850682)
 * Sonyapiquete’s solution worked for me, too. Everything’s normal and same as it
   was previously.
 * Am on Dreamhost server zaniah that had sudden issues and had to be replaced; 
   some of my WP sites were fine but there were a couple getting this error. I think
   the autoupdates happened mid-server move and it b0rked those sites…
 *  [Splitty](https://wordpress.org/support/users/splitty/)
 * (@splitty)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/#post-2850709)
 * > I have downloaded the new WordPress 3.4 and using it with mu-plugin. I am using
   > SQL-Server database.
 * AJAY777 have you resolved this? I’m having the same issue.
 *  [organicrider](https://wordpress.org/support/users/organicrider/)
 * (@organicrider)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/#post-2850750)
 * This is my message. How do I fix it if I don’t have a backup? My bad!
    **Fatal
   error: Call to undefined method dbrc_wpdb::delete() in /home/bonnie/public_html/
   theschoolofpeace.com/wp-includes/option.php on line 370**
 *  [alexleonard](https://wordpress.org/support/users/alexleonard/)
 * (@alexleonard)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/#post-2850751)
 * [@organicrider](https://wordpress.org/support/users/organicrider/) Have you tried
   re-downloading the latest WordPress zip, deleting the wp-admin and wp-includes
   folders and re-uploading them via FTP?
 * This has worked for me a few times.
 *  [organicrider](https://wordpress.org/support/users/organicrider/)
 * (@organicrider)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/#post-2850752)
 * Thanks alexeonard. Gave it a try, but no change.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/page/2/?output_format=md)

The topic ‘Fatal error: Call to undefined method wpdb::delete()’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 17 replies
 * 10 participants
 * Last reply from: [sscully](https://wordpress.org/support/users/sscully/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-wpdbdelete/page/2/#post-2850810)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
