On clean install, crop does not work. Fatal error do to missing entity type.

Created on 10 January 2023, almost 2 years ago
Updated 27 January 2023, almost 2 years ago

Error on clean install.

Visiting the edit page for any media results in this fatal error. Also, crop functionality in image styles does not work. The result is the generated Widen urls will only add height+width but nothing crop related. This is important because we can't make good use of image styles without it.

I tried on a clean install of 9.4 and 9.5. Same result.

The website encountered an unexpected error. Please try again later.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "crop" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 139 of core/lib/Drupal/Core/Entity/EntityTypeManager.php).
Drupal\Core\Entity\EntityTypeManager->getHandler('crop', 'storage') (Line: 192)
Drupal\Core\Entity\EntityTypeManager->getStorage('crop') (Line: 183)
Drupal\acquia_dam\ImageStyleHelper->getCrops(Object) (Line: 74)
Drupal\acquia_dam\Form\FocalPointMediaEditFormAlter->formAlter(Array, Object) (Line: 400)
acquia_dam_form_media_form_alter(Array, Object, 'media_acquia_dam_image_asset_edit_form') (Line: 562)
Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'media_acquia_dam_image_asset_edit_form') (Line: 838)
Drupal\Core\Form\FormBuilder->prepareForm('media_acquia_dam_image_asset_edit_form', Array, Object) (Line: 282)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 707)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Install Acquia DAM. Visit any edit page for media.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States davidhernandez USA

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.71.5 2024