The "image_style" entity type does not exist.

Created on 12 December 2023, 7 months ago
Updated 13 December 2023, 7 months ago

Problem/Motivation

When installing from a config directory, the image style entity type might not exist at the install type of the module.

Steps to reproduce

Update this module and file_mdm on an existing config sync installation
observer the error:

 The "image_style" entity type does not exist.                
                                                               

Exception trace:
  at /var/www/html/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php:139
 Drupal\Core\Entity\EntityTypeManager->getDefinition() at /var/www/html/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php:253
 Drupal\Core\Entity\EntityTypeManager->getHandler() at /var/www/html/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php:192
 Drupal\Core\Entity\EntityTypeManager->getStorage() at /var/www/html/web/modules/contrib/imagemagick/imagemagick.install:37
 imagemagick_requirements() at /var/www/html/web/core/includes/install.inc:895

Proposed resolution

Check for the entity type and add a dependency for "image" module

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇸United States pookmish

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024