I'm trying to update from Drupal 7.22 to the current (7.26) version. I keep getting the following error.

Fatal error: Class 'DatabaseTasks_mysql' not found in /server/path/stuff/here/domainname.com/html/modules/system/system.install on line 188

I have tried upgrading incrementally 7.22 -> 7.23
I've tried upgrading directly to 7.26
I've tried uploading files via FTP, following the standard upgrade instructions, and I've tried upgrading with drush. I always get the same error. (though the line number does change depending on which version I'm updating to.)

Does anyone have any suggestions?

Comments

leeboone’s picture

One forgotten detail, I'm getting that error on domain.com/system/config

darol100’s picture

Do you have a backup of your site ?

When you first created your Drupal website did you import the files from Drupal.org or you used a click software in your web server that created the website automatic ?

Have you ever updating the core before ?

- Darryl Norris
Be Connected: Website | Twitter | LinkendIn | GitHub

leeboone’s picture

I didn't build the site, so I can't answer all of your questions, Though from looking at it, I don't think it was a one-click install.
I have upgraded the core a few times in the past without difficulty. Each time using the standard method of uploading files via FTP.

darol100’s picture

If this website is a production site?

You should contact the web server provider and ask if they have any backups configuration setup. And restore the website ASAP.
Or you can browser in the server if can find a Backup & Migrate configuration and restore the database. After your website is live back, you should consider to set a local environment in a non-production server. And try to upgrade your core version by version and see what happen make sure that you read the documentation of updating your core.

Did you check the Release Notes ?

Here are the URL of the release notes so you can look it and is if anything of their issue is affecting you. However, you should go to each release note page and read the documentation.

https://drupal.org/drupal-7.23-release-notes
In the release 7.23 they change something on the .htacces. "There are two changes to the .htaccess file in this release". Did you include the .htacccess ?

https://drupal.org/drupal-7.24-release-notes
"Important upgrade note: Upgrading an existing Drupal site to this version requires manual changes to the .htaccess files in the site's files directories. See SA-CORE-2013-003 for instructions."

https://drupal.org/drupal-7.25-release-notes
"Changes to Drupal's page caching system in this release caused an incompatibility with the Authcache module (see this issue). The solution is to upgrade to Authcache 7.x-1.7 or higher."

https://drupal.org/drupal-7.26-release-notes
"On sites with a very large number of unpublished nodes in the database, the Taxonomy module update function introduced in this release may take a very long time to run and consume an excessive amount of memory. A fix is being discussed in this issue."

I hope this can help you out, any other question feel free to ask.

- Darryl Norris
Be Connected: Website | Twitter | LinkendIn | GitHub

rcodina’s picture

Solution that worked for me, extracted from "Bbdrvr" answer on drupal's stackexchange question:

What finally fixed it for me was emptying the registry and registry_file tables, then running update.php.

Please, upvote his answer if this works for you too!