Hi I have a problem to set the Views Database Connector (VDC) module!

here is the error

Warning: Invalid argument supplied for foreach() in views_database_connector_get_database_schemas() (line 154 of modules/views_database_connector/views_database_connector.views.inc).

I am using Drupal 8

Iwant to connecte a second data base to my Drupal site an use VDC to make views.

The two databases are on the same serveur and have the same user!

this is what I put on my setting.php file!

# if (file_exists(__DIR__ . '/settings.local.php')) {
# include __DIR__ . '/settings.local.php';
# }
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'databname',
'username' => 'username',
'password' => 'passe',
'prefix' => '',
'host' => 'localhost',
'port' => '3306',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
'driver' => 'mysql',
),
),

'second' =>
array (
'default' =>
array (
'database' => 'databname1',
'username' => 'username',
'password' => 'passe',
'host' => 'localhost',
'port' => '3306',
'collation' => 'utf8mb4_general_ci',
),
),
);

$settings['install_profile'] = 'standard';
$config_directories['sync'] = 'sites/default/files/config_Z-8CySddtqNNnVCaxM_V29oI7qsP8OdjTu8Hc1MFM9N6JIakIKlukkm5asA7hImpWc0aQyVOaQ/sync';

thank you for helping me!

Comments

VM’s picture

As the module doesn't seem widely used (based on reported installs), you may be able to obtain more specific support @ https://www.drupal.org/project/issues/views_database_connector?categorie...

soulsesa’s picture

thank you for your answer : i will take a look !