can't uninstall

Created on 14 June 2024, 5 months ago
Updated 17 June 2024, 5 months ago

Hello,

I can't uninstall module.
I have this message :
" Manage meta tags for all entities.
Metatag ne peut être désinstallé pour la raison suivante : Champs en attente de suppression" (Metatag cannot be uninstalled for the following reason: Fields pending deletion)

I removed all metatag fields from my content types. When deleting a field, there was an error message, but the field no longer exists.

I can't uninstall the module, even though I don't have any fields anymore. It tells me that there are pending fields.

How to fix the problem?

💬 Support request
Status

Closed: works as designed

Version

2.0

Component

Miscellaneous

Created by

🇫🇷France selinav

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

Comments & Activities

  • Issue created by @selinav
  • 🇺🇸United States DamienMcKenna NH, USA

    What was the error when you tried to remove the field?

  • 🇫🇷France selinav

    I get this message when I delete the field. The field is well deleted.

    Drupal\Component\Plugin\Exception\PluginNotFoundException: The "paragraph" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 139 of core\lib\Drupal\Core\Entity\EntityTypeManager.php).
    
    Drupal\entity_reference_revisions\Plugin\Field\FieldType\EntityReferenceRevisionsItem::schema(Object) (Line: 480)
    Drupal\field\Entity\FieldStorageConfig->getSchema() (Line: 517)
    Drupal\field\Entity\FieldStorageConfig->getColumns() (Line: 1655)
    Drupal\Core\Entity\Sql\SqlContentEntityStorage->readFieldItemsToPurge(Object, 10) (Line: 557)
    Drupal\Core\Entity\ContentEntityStorageBase->purgeFieldData(Object, 10) (Line: 83)
    field_purge_batch(10) (Line: 143)
    Drupal\field_ui\Form\FieldConfigDeleteForm->submitForm(Array, Object)
    call_user_func_array(Array, Array) (Line: 129)
    Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 67)
    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: 627)
    Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
    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: 28)
    Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
    Drupal\big_pipe\StackMiddleware\ContentLength->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: 36)
    Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
    Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
    Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

    Finally I have the problem with other deletion fields.
    Paragraphs seems to be responsible https://www.drupal.org/project/paragraphs/issues/3165612 🐛 The "paragraph" entity type does not exist error after uninstallation due to left key_value entries Active

    After follow instructions on the link, I can uninstall clearly metatag.

    Sorry for the inconvenience

  • Status changed to Closed: works as designed 5 months ago
  • 🇺🇸United States DamienMcKenna NH, USA

    No problem, I'm glad you were able to solve the problem.

  • 🇺🇸United States DamienMcKenna NH, USA
Production build 0.71.5 2024