Hi all,
I tested SMTP module on a website (core version 8.0.5), then I uninstalled it, but I cannot use the contact form anymore, 'cause I receive this error when I try to send the form:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" plugin does not exist. in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition()

I've already applied this patch for correct unistall: https://www.drupal.org/node/2653338#comment-10848258

Does anyone else run into this bug?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Noemi created an issue. See original summary.

jacobgkau’s picture

Yes, I am also running into this bug. Installing the module again did not seem to fix the issue as a workaround, either. I started having the issue on core version 8.0.5 and now I'm still experiencing it with core 8.0.6.

Noemi’s picture

I solved editing the system.mail configuration.
I think the unistall fails in restoring the default system mail. If you look at this config file (in admin/config/development/configuration/single/export) after unistalling SMTP module, you have "interface: null".
So I imported a correct configuration, replacing "null" with "interface: default: php_mail" (pay attention to .yml indentation) in admin/config/development/configuration/single/import, and that fixed it.
Hope it helps.

estoyausente’s picture

I could reproduce the error and I put php_mail as default system mail interface if doesn't exist any other saved in the smtp configuration. It resolves the problem, I don't know if exist any other way more correct.

php_mail is the system default mail defined in system.mail.yml.

asrob’s picture

Status: Needs review » Reviewed & tested by the community

I've successfully uninstalled it via UI, that's why RTBC'ed.

wundo’s picture

Assigned: Unassigned » wundo

  • wundo committed 35c087e on 8.x-1.x authored by estoyausente
    Issue #2698513 by estoyausente, Noemi, wundo, jacobgkau, asrob: Error "...
wundo’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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