swiftmailer插件不存在



我在使用drupal和swiftmailer发送电子邮件时遇到问题。当发送电子邮件时,会抛出此错误

The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">DrupalCoreEntityEntityStorageException</em>: The &quot;swiftmailer&quot; plugin does not exist. in <em class="placeholder">DrupalCoreEntitySqlSqlContentEntityStorage-&gt;save()</em> (line <em class="placeholder">829</em> of <em class="placeholder">core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php</em>). <pre class="backtrace">DrupalCorePluginDefaultPluginManager-&gt;getDefinition(&#039;swiftmailer&#039;) (Line: 16)

我正在运行drupal8.5和swiftmailer/swiftmailer的v4.4.10版本,以及drupal/swiftmailer 的1.0.0-beta-2版本

我最初有一个错误"class swift_message not found",当我通过composer更新包时,我得到了这个错误。

所以在我更新它之后,以前的一位同事从drupal UI中禁用了它,因此它不起作用。从drupal UI启用它使其工作。

最新更新