Class 'Drupal\sqlite\Driver\Database\sqlite\Install\Tasks' not found in [mysiteroot]/web/core/includes/install.inc:1172

Created on 5 October 2022, almost 2 years ago
Updated 11 July 2023, about 1 year ago

Problem/Motivation

This issue is preventing my dev site from working. I thought it was a corrupted database, so I made a backup and created a fresh new database, but the site cannot open the install.php url, with a 500 error. This was the same error as with the original working database.

I was able to create a new Drupal 9.4.7 website locally with no issues.

This is using MAMP Pro 6.6 (latest release)
PHP 7.4.24 - also switched php to lower versions, and higher versions (8.1) but got the same php error each time.
Site uses settings.local.php to define the db connection - I removed the call to this file within settings.php and ran the site again, with the same issue.

The php error log says: PHP Fatal error: Uncaught Error: Class 'Drupal\sqlite\Driver\Database\sqlite\Install\Tasks' not found in [mysiteroot]/web/core/includes/install.inc:1172

Within that specified file we (install.inc) and line, this function is running:

function db_installer_object($driver, $namespace = NULL) {
// We cannot use Database::getConnection->getDriverClass() here, because
// the connection object is not yet functional.
if ($namespace) {
$task_class = $namespace . "\\Install\\Tasks";
return new $task_class(); <-- this is line 1172
}
// Old Drupal 8 style contrib namespace.
$task_class = "Drupal\\Driver\\Database\\{$driver}\\Install\\Tasks";
if (class_exists($task_class)) {
return new $task_class();
}
else {
// Core provided driver.
$task_class = "Drupal\\Core\\Database\\Driver\\{$driver}\\Install\\Tasks";
return new $task_class();
}
}

Steps to reproduce

Other than getting a hard copy of my local site, I do not know of a quick way to reproduce this issue.

I'm unable to come up with any relevant information for the remaining fields in this form.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Closed: outdated

Version

9.5

Component
SQLite driverΒ  β†’

Last updated 5 months ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States dave1981

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Closing as outdated. Issue seems to maybe be around 7.4 which isn't supported in D10. And believe D9 is just under security now.

    But if still a major issue please reopen updating issue summary thanks.

Production build 0.71.5 2024