Steps:
- Edit form
- Go to Handlers
- Click add handler
- On the "Slack" row, click Add Handler

Expected result:
handler is added and config screen is shown

Actual result:
- AJAX Error and Server error
When checking apache error_log: message is :
Uncaught PHP Exception Drupal\\Component\\Plugin\\Exception\\PluginException: "Plugin (slack_handler) instance class "Drupal\\webform\\Plugin\\WebformHandler\\SlackWebformHandler" does not exist." at /apppath/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php line 97, referer: http://appurl/admin/structure/webform/manage/other/handlers

Comments

VML Singapore created an issue. See original summary.

smaz’s picture

I'm afraid I can't recreate this. I'm using:

Drupal 8.2.3
Webform 8.x-5.0-beta5 (latest version)

Which versions are you using?
Have you tried clearing the cache, to make sure it's rebuilt all of it's plugins etc,? Though it's odd that it knows about the plugin, but can't find the class as it's in the same file.

As a note, the class it's trying to load looks wrong:
Drupal\\webform\\Plugin\\WebformHandler\\SlackWebformHandler

That should be:
Drupal\webform_slack\Plugin\WebformHandler\SlackWebformHandler

Cheers

smaz’s picture

Status: Active » Closed (cannot reproduce)