Problem/Motivation

I'm attempting to import a Wordpress-6.0.2 WXR file into a brand new Drupal-9.4.7 installation. I run through the steps in the UI, and on the final page where the import should happen, it fails with the error:

Failed to connect to your database server. The server reports the following message: No database connection configured for source plugin variable.

I'm very confused what this error means, as everything else in this Drupal installation is working fine, and my database connection information is already correct in sites/default/settings.php .

If I go back into the Migrations UI and manually execute each of the steps, they complete successfully. Yet, if I blow away everything that was imported, and start over again, it fails all over again with the same data connection error.

Comments

netllama created an issue. See original summary.

hongpong’s picture

hongpong’s picture

Version: 8.x-3.0-alpha5 » 8.x-3.x-dev

This kind of thing is still popping up periodically. One of the migrate modules tends to print these a little often. one of the yml files may be triggering this but it is not obvious which one.

dinarcon’s picture

I think this error is coming from \Drupal\migrate\Plugin\migrate\source\SqlBase::setUpDatabase. There is a test case in \Drupal\Tests\migrate_drupal\Unit\source\DrupalSqlBaseTest::testSourceDatabaseError if people want to research further.

I do not think the error is related to wordpress_migrate. See related core issue.

hongpong’s picture

Status: Active » Closed (won't fix)

If people see this please re open or refer to #3221087: Suppress error about missing requirements for migrating variables when using Drupal 8+ as a source .. collect the config entities for further documentation.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.