Drupal 10 and Drush 9 and Aegir 3.190 error "Could not load SQL class"

Created on 3 December 2020, about 4 years ago
Updated 28 July 2023, over 1 year ago

Problem/Motivation

I had to upgrade to Drush 8.4.5 which still allows aegir to work
I was able to install a platform that iincludes drush/drush: ^9.7.1 || ^ 10.0
However i cannot install a site. I get the following errors:
Undefined index: error task.hosting.inc:14-
noticeCould not load SQL class. There is a mismatch between your Drupal root and your PHP autoloading.-
errorUndefined index: error task.hosting.inc:14-
noticeThis can happen if you mix Drupal 8 and Drupal 7.-
errorUndefined index: error task.hosting.inc:14-
noticePlease check that the location of Drush matches the Drupal core version you want Drush to talk to.-
errorDrush\Sql\SqlException: Unable to find a matching SQL Class. Drush cannot find your database connection details. in /usr/local/src/drush/commands/sql/sql.drush.inc:577 Stack trace: #0 /usr/local/src/drush/commands/sql/sql.drush.inc(572): drush_sql_get_class(Array) #1 /usr/share/drush/commands/provision/platform/drupal/install_8.inc(102): drush_sql_get_class() #2 /usr/share/drush/commands/provision/platform/drupal/install_8.inc(176): install_main() #3 /usr/local/src/drush/includes/drush.inc(78): include_once('/usr/share/drus...') #4 /usr/local/src/drush/includes/engines.inc(520): drush_include('/usr/share/drus...', 'install') #5 /usr/share/drush/commands/provision/platform/provision_drupal.drush.inc(97): drush_include_engine('drupal', 'install') #6 /usr/local/src/drush/includes/command.inc(422): drush_provision_drupal_provision_install_backend() #7 /usr/local/src/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array) #8 /usr/local/src/drush/includes/command.inc(199): drush_command() #9 /usr/local/src/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array) #10 /usr/local/src/drush/includes/preflight.inc(67): Drush\Boot\BaseBoot->bootstrap_and_dispatch() #11 /usr/local/src/drush/drush.php(12): drush_main() #12 {main} (edited)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.190

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

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 SocialNicheGuru

    Here is what the issue I get:

    Unable to include file packages10inc or packagesinc from !path.
    -
    error
    Unable to include the drupal engine packages from /var/aegir/.drush/commands/provision/platform/drupal.
    -
    error
    Drush command terminated abnormally due to an unrecoverable error. Error: Uncaught Error: Call to undefined function _provision_drupal_search_paths() in /var/aegir/.drush/commands/provision/platform/provision_drupal.drush.inc:646 Stack trace: #0 /var/aegir/.drush/commands/provision/platform/provision_drupal.drush.inc(618): _provision_drupal_find_modules('base', '') #1

Production build 0.71.5 2024