Uninstall of Library is not clean / Cannot reinstall

Created on 7 February 2024, 10 months ago
Updated 21 August 2024, 3 months 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

Fixed

Version

1.0

Component

Module: Library

Created by

🇮🇳India newswatch Delhi/Bangalore

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

Merge Requests

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).

  • First commit to issue fork.
  • Status changed to Needs review 4 months ago
  • Pipeline finished with Success
    4 months ago
    Total: 291s
    #224734
  • Status changed to Needs work 4 months ago
  • 🇨🇭Switzerland berdir Switzerland

    Why the update function jump from 8102 to 8104?

  • Status changed to Needs review 4 months ago
  • 🇧🇪Belgium dieterholvoet Brussels

    Fixed!

  • Pipeline finished with Success
    4 months ago
    Total: 343s
    #246517
  • Pipeline finished with Skipped
    4 months ago
    #246712
  • Status changed to Fixed 4 months ago
  • 🇨🇭Switzerland berdir Switzerland

    Merged.

    Not sure what #2/3 is about, but if that can be reproduced that will require a new issue.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024