Quant seed fails when taxonomy module is not enabled

Created on 31 July 2023, 11 months ago
Updated 1 March 2024, 4 months ago

Problem/Motivation

Was testing the minimal install profile and the seed failed with this error because the taxonomy module isn't enabled by default.

Since nearly everyone will have the taxonomy module installed, marking this as minor.

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.subsite3taxonomy_index' doesn't exist: SELECT "ti"."tid" AS "tid" FROM "subsite3taxonomy_index" "ti" WHERE "nid" = :db_condition_placeholder_0; Array ( [:db_condition_placeholder_0] => 1 ) in Drupal\quant\Plugin\Quant\Metadata\Info->getNodeTerms() (line 158 of /var/www/html/web/modules/contrib/quantcdn/src/Plugin/Quant/Metadata/Info.php).

Steps to reproduce

  1. Install Drupal with minimal profile
  2. Install and configure quant and quant_api
  3. Create a content type and node
  4. Run seed
  5. Result: Database error above

Proposed resolution

Maybe we should just require the taxonomy module since we have taxonomy term logic in a ton of places.

Remaining tasks

  1. Update code
  2. Review and test
  3. Commit :)

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024