The "commerce_shipment" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 133 of core\lib\Drupal\Core\Entity\EntityTypeManager.php)

Created on 20 September 2017, almost 7 years ago
Updated 7 June 2023, about 1 year ago

Hi,

I have installed Commerce Module and Commerce Shipping Module, website was working fine when i was installed, but after installing features module, I am experiencing with the following error.

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

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "commerce_shipment" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 133 of core\lib\Drupal\Core\Entity\EntityTypeManager.php).

Following are the modules I am using.
commerce
commerce_shipping
physical
features
config_update

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India Shiva Srikanth T India

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.

  • 🇮🇹Italy trickfun

    same error for me after unistall module.
    every field i delete i get this error

    Drupal\Component\Plugin\Exception\PluginNotFoundException: The "commerce_shipment" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 139 of core/lib/Drupal/Core/Entity/EntityTypeManager.php).
    Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::schema(Object) (Line: 456)
    Drupal\field\Entity\FieldStorageConfig->getSchema() (Line: 493)
    Drupal\field\Entity\FieldStorageConfig->getColumns() (Line: 1648)
    Drupal\Core\Entity\Sql\SqlContentEntityStorage->readFieldItemsToPurge(Object, 10) (Line: 557)
    Drupal\Core\Entity\ContentEntityStorageBase->purgeFieldData(Object, 10) (Line: 83)
    field_purge_batch(10) (Line: 115)
    Drupal\field_ui\Form\FieldConfigDeleteForm->submitForm(Array, Object)
    call_user_func_array(Array, Array) (Line: 114)
    Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
    Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 597)
    Drupal\Core\Form\FormBuilder->processForm('field_config_delete_form', Array, Object) (Line: 325)
    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: 117)
    Drupal\cdn\StackMiddleware\DuplicateContentPreventionMiddleware->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: 718)
    Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
  • 🇬🇧United Kingdom richard.lampitt

    For those still encountering this error, the drush command drush cc plugin worked for me.

Production build 0.69.0 2024