I think I created a model without giving it a title and get an unstable site with WSCOD with following message:

The website encountered an unexpected error. Please try again later.
TypeError: Return value of Drupal\eca\Plugin\ECA\Event\EventBase::eventName() must be of the type string, null returned in Drupal\eca\Plugin\ECA\Event\EventBase->eventName() (line 24 of modules/contrib/eca/src/Plugin/ECA/Event/EventBase.php).

Drupal\eca\Plugin\ECA\Event\EventBase->eventName() (Line: 135)
Drupal\eca\Entity\EcaStorage->loadByEvent(Object, 'account.set') (Line: 105)
Drupal\eca\Processor->execute(Object, 'account.set') (Line: 44)
Drupal\eca\EventSubscriber\EcaBase->onEvent(Object, 'account.set', Object)
call_user_func(Array, Object, 'account.set', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'account.set') (Line: 65)
Drupal\Core\Session\AccountProxy->setAccount(Object) (Line: 79)
Drupal\Core\EventSubscriber\AuthenticationSubscriber->onKernelRequestAuthenticate(Object, 'kernel.request', Object)
call_user_func(Array, Object, 'kernel.request', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.request') (Line: 134)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 42)
Drupal\webform_product\RedirectMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Comments

nojj created an issue. See original summary.

mxh’s picture

Please provide some details so that we are able to reproduce the error.

Did the error directly occur after an upgrade or some time later? How did you perform the upgrade?

jurgenhaas’s picture

Title: WSOD when creating model without title » WSOD with incompatible ECA API
Project: ECA: Event - Condition - Action » ECA State Machine
Version: 1.0.0-beta7 » 1.0.x-dev
Assigned: Unassigned » jurgenhaas
Priority: Normal » Critical

Good news! This is not an ECA issue at all. It's the incompatible eca_state_machine module. I'm fixing this now.

jurgenhaas’s picture

Status: Active » Reviewed & tested by the community

Fixed this in the latest dev release. @nojj please run a composer update followed by a drush cr, this should resolve this issue completely. If so, please set the issue status to RTBC.

  • jurgenhaas committed 015665b on 1.0.x
    Issue #3272433 by nojj, mxh, jurgenhaas: WSOD with incompatible ECA API
    
nojj’s picture

solved for me!

jurgenhaas’s picture

Status: Reviewed & tested by the community » Fixed

Thx

Status: Fixed » Closed (fixed)

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