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

BlinX created an issue. See original summary.

AstonVictor’s picture

You 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'

nkoporec’s picture

Status: Active » Fixed

Moving this to fixed, since @Aston Victor solution has probably fixed the issue that @Blinx raised.

BlinX’s picture

Thanks @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

nkoporec’s picture

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

BlinX’s picture

Thanks for the info @nkoporec !
I like it when people try to be clear in their explanation ;-)

Status: Fixed » Closed (fixed)

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