- Issue created by @Kristen Pol
- πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
Also get this error before adding a csv file if the temp dir is not specified:
Failed to connect to your database server. The server reports the following message: No database connection configured for source plugin variable. Is the database server running? Does the database exist, and have you entered the correct database name? Have you entered the correct username and password? Have you entered the correct database hostname?
- πΊπΈUnited States benjifisher Boston area
@kristen pol:
Thanks for trying out this recipe.
I cannot reproduce the problem. This is what I tried:
- Install Drupal from the current 11.x.
- Install Drush and this recipe:
composer require drush/drush drupal/import_csv
. - Install Drupal with the
standard
profile:drush si
. - Apply the recipe:
drush recipe recipes/import_csv
. - Log in.
- Visit
/admin/content/migrate_source_ui
. - Select "Nodes (supports csv) from the select list (the default) and upload
recipes/import_csv/examples/nodes.csv
as the source. - Submit the form ("Migrate").
I did not get any errors, and the migration created three nodes.
On
/admin/config/content/migrate_source_ui
, I see the message,The module will use Drupal's default temporary:// stream if this is not set.
My test seems to confirm that. At least, the module works without that being set.
Are you getting the current versions of the migration modules? If not, that might explain why you are getting different results.
Failed to connect to your database server.
That message comes from the
migrate_drupal
module. See π Improve error reporting from migrate_drupal_migration_plugins_alter() Needs work . Can you uninstallmigrate_drupal
or supply database credentials for it? I do not think there is anything this recipe, or the modules it installs, can do to work around this core bug.