Uninstall of Library is not clean / Cannot reinstall

Created on 7 February 2024, 5 months ago
Updated 12 June 2024, 16 days ago

Unintsall should ideally remove all relevant tables and other data from the database. But this is not happening with Paragraphs Library.

I had installed Library initially and then uninstalled it (through the /admin/modules/uninstall interface).

But now when I want to reinstall it, I can't. I get this error message:

Unable to install Paragraphs Library, core.entity_form_display.paragraph.from_library.default, core.entity_view_display.paragraph.from_library.default, paragraphs.paragraphs_type.from_library already exist in active configuration.

On examining through PHPMyAdmin, I see that 'core.entity_form_display.paragraph.from_library.default' for instance has 4 instances (in cachetags, config, config snapshot, key value).

Do note that Paragraphs itself is already installed. And the site (which is live) uses it heavily.

Should I just delete those entries? Or will that cause problems later?

Thanks.

🐛 Bug report
Status

Active

Version

1.17

Component

Module: Library

Created by

🇮🇳India newswatch Delhi/Bangalore

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

Comments & Activities

  • Issue created by @newswatch
  • 🇺🇸United States Greg Boggs Portland Oregon

    I cannot uninstall Paragraphs Library at all and it's creating a very large database table.

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

    TypeError: Drupal\Core\Entity\ContentEntityStorageBase::onFieldDefinitionUpdate(): Argument #1 ($field_definition) must be of type Drupal\Core\Field\FieldDefinitionInterface, null given, called in /var/www/html/web/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php on line 234 in Drupal\Core\Entity\ContentEntityStorageBase->onFieldDefinitionUpdate() (line 546 of core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php).
    Drupal\Core\Field\Entity\BaseFieldOverride::postDelete(Object, Array) (Line: 460)
    Drupal\Core\Entity\EntityStorageBase->delete(Array) (Line: 347)
    Drupal\Core\Entity\EntityBase->delete() (Line: 212)
    Drupal\Core\Config\ConfigManager->uninstall('module', 'paragraphs_library') (Line: 470)

  • 🇺🇸United States Greg Boggs Portland Oregon

    After many attempts, I was able to get the uninstall through and now I have this error:

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

Production build 0.69.0 2024