Crashing when product type table isn't found.

Created on 5 January 2022, over 2 years ago
Updated 31 December 2023, 6 months ago

Problem/Motivation

When trying to migrate a Drupal Commerce installation on Drupal 7.84 to Drupal 9.3.2, I got this error:

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'temp-xxx.commerce_product_type' doesn't exist: SELECT "pt"."type" AS "type" FROM "commerce_product_type" "pt"; Array ( ) in _commerce_migrate_commerce_get_product_node_types() (line 268 of /var/www/html/xxx/web/modules/contrib/commerce_migrate/modules/commerce/commerce_migrate_commerce.module).

This is after creating a clean version of Drupal commerce with this command:

composer create-project drupalcommerce/project-base mystore --stability dev

And then installing

composer require drupal/commerce_migrate

Thanks for any suggestions or help on how to push this migration through.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bogdog400

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.

Production build 0.69.0 2024