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
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
Comment #2
greg boggsI 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)
Comment #3
greg boggsAfter 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
Comment #6
dieterholvoet commentedComment #7
berdirWhy the update function jump from 8102 to 8104?
Comment #8
dieterholvoet commentedFixed!
Comment #10
berdirMerged.
Not sure what #2/3 is about, but if that can be reproduced that will require a new issue.
Comment #12
kle commentedMy 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 ?