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.

Issue fork paragraphs-3419799

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

newswatch created an issue. See original summary.

greg boggs’s picture

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)

greg boggs’s picture

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

This was caused by rabbit hole module still being active for paragraphy library items, so to fix it, search and replace paragraph library items in your config

DieterHolvoet made their first commit to this issue’s fork.

dieterholvoet’s picture

Status: Active » Needs review
berdir’s picture

Version: 8.x-1.17 » 8.x-1.x-dev
Status: Needs review » Needs work

Why the update function jump from 8102 to 8104?

dieterholvoet’s picture

Status: Needs work » Needs review

Fixed!

  • Berdir committed b296d2d9 on 8.x-1.x authored by DieterHolvoet
    Issue #3419799 by DieterHolvoet: Uninstall of Library is not clean /...
berdir’s picture

Status: Needs review » Fixed

Merged.

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

Status: Fixed » Closed (fixed)

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

kle’s picture

My installed “paragraphs_library” was somehow faulty. When I tried to uninstall it, I got “The ‘paragraphs_library_item’ entity type does not exist” as in #3.
After transferring the data structure of the 4 missing tables from another installation, I was able to successfully uninstall and reinstall.
Can we make the uninstall-process more robust ?