You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried running drush sql-conf --all and it gives me "Unable to load class Drush\Sql\Sql. Error: Call to a member function getAll() on null in drush_sql_conf() (line 213 of phar:///usr/local/bin/drush/commands/sql/sql.drush.inc)."
Note: I'm attempting this in lando with two databases so I can't confirm it's a general error.
And following the trail:
function drush_sql_get_version() {
return drush_get_class('Drush\Sql\Sql', array(), array(drush_drupal_major_version())) ?: NULL;
}
So it's choking on drush_drupal_major_version(). It needs the Drupal version so it can append it to the end of the class. For example in /lib/Drush/Sql/Sql7.php there is class Sql7 extends SqlVersion.
I believe this is also related to the CiviCRM commands for SQL aren't able to find the right database. The CiviCRM drush commands have the right global $GLOBALS['databases']['default']['default'] but it can't find or use the sql class.
The text was updated successfully, but these errors were encountered:
I tried running
drush sql-conf --all
and it gives me "Unable to load class Drush\Sql\Sql. Error: Call to a member function getAll() on null in drush_sql_conf() (line 213 of phar:///usr/local/bin/drush/commands/sql/sql.drush.inc)."It can't load an sql version class.
Note: I'm attempting this in lando with two databases so I can't confirm it's a general error.
And following the trail:
So it's choking on
drush_drupal_major_version()
. It needs the Drupal version so it can append it to the end of the class. For example in/lib/Drush/Sql/Sql7.php
there isclass Sql7 extends SqlVersion
.I believe this is also related to the CiviCRM commands for SQL aren't able to find the right database. The CiviCRM drush commands have the right global
$GLOBALS['databases']['default']['default']
but it can't find or use the sql class.The text was updated successfully, but these errors were encountered: