Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I installed Poll and removed it the wrong way by deleting the folder.
I also removed both views Poll-admin and another (??)
Now, when I want to install Poll again I get the message: "Unable to install Poll, core.entity_view_mode.poll.teaser already exists in active configuration."
Also in Log is: "Drupal\Component\Plugin\Exception\PluginNotFoundException: The "poll" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (row 133 of .../public_html/core/lib/Drupal/Core/Entity/EntityTypeManager.php)."
What can I do to repair this??
Thanks for helping!
Rolf
Comments
Comment #2
AstonVictor CreditAttribution: AstonVictor at DevBranch commentedYou can run code
\Drupal::configFactory()->getEditable('core.entity_view_mode.poll.teaser')->delete();
to fix it.Or use drush
drush config-delete 'core.entity_view_mode.poll.teaser'
Comment #3
nkoporecMoving this to fixed, since @Aston Victor solution has probably fixed the issue that @Blinx raised.
Comment #4
BlinX CreditAttribution: BlinX commentedThanks @Aston Victor and @nkoporec for your info.
I did not try this because I configured a new install since I was not able to get around the problem by then.
Can you tell me where to run the code Aston Victor referred to??
Thanks,
Rolf
Comment #5
nkoporecWell, the easiest way is to delete configuration using drush(its a terminal tool for Drupal, just google it if you don't know it.).First way that @Aston Victor mention is a php code which you put in your custom module...there is a third way, a module which deletes the configuration for you , check it out here.If you know SQL you can also delete conf. manually(for advanced users).
Comment #6
BlinX CreditAttribution: BlinX commentedThanks for the info @nkoporec !
I like it when people try to be clear in their explanation ;-)