WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. rhayward
    Member
    Posted 2 years ago #

    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?

  2. rhayward
    Member
    Posted 2 years ago #

    Addition:

    The error is produced from this URL:

    http://***/wp-admin/upgrade.php?_wp_http_referer=%2Fwp-admin%2F

  3. sonyapiquete
    Member
    Posted 2 years ago #

    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

  4. sonyapiquete
    Member
    Posted 2 years ago #

    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.

  5. alexleonard
    Member
    Posted 2 years ago #

    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 :(

  6. rhayward
    Member
    Posted 2 years ago #

    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

  7. SpearDJ
    Member
    Posted 2 years ago #

    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.

  8. alexleonard
    Member
    Posted 2 years ago #

    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.

  9. alexleonard
    Member
    Posted 2 years ago #

    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.

    :)

  10. AJAY777
    Member
    Posted 2 years ago #

    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???

  11. esmi
    Forum Moderator
    Posted 2 years ago #

  12. gwen
    Member
    Posted 2 years ago #

    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...

  13. Splitty
    Member
    Posted 2 years ago #

    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.

  14. organicrider
    Member
    Posted 2 years ago #

    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

  15. alexleonard
    Member
    Posted 2 years ago #

    @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.

  16. organicrider
    Member
    Posted 2 years ago #

    Thanks alexeonard. Gave it a try, but no change.

  17. organicrider
    Member
    Posted 1 year ago #

    Ended up with a fix to this problem by downloading and replacing the wp-content file with the latest one. I can now get into my dashboard, but did have to reupload my theme.

  18. sscully
    Member
    Posted 1 year ago #

    This is my message. How do I fix it? I added the deTube theme to a cpanel wordpress.
    Fatal error: Call to undefined method wpdb::delete() in /home/theinter/public_html/culturenetworktv.com/home/wp-content/themes/detube/extensions/dp-post-likes.php on line 353

    When i try to add a page or video for the theme this happens. should I add the theme again? Is it the version of wordpress that is the issue?

Topic Closed

This topic has been closed to new replies.

About this Topic