WSOD after logging in (error from eca_form)

Created on 15 April 2025, 3 months ago

Problem/Motivation

I'm getting the error TypeError: Drupal\eca_form\HookHandler::submit(): Argument #1 ($form) must be of type array, null given in Drupal\eca_form\HookHandler::submit() (line 146 of /var/www/html/mysite/web/modules/contrib/eca/modules/form/src/HookHandler.php).

Steps to reproduce

  1. Installed site using Minimal profile.
  2. Installed modules using drush, including eca_form.
  3. Installed theme using drush (gin, gin_login).
  4. Refreshed page, logged out.
  5. Go back to home page, logged in.
  6. Got WSOD, but reloading the page will bring to home page.
  7. Checked log, found the mentioned error.

Following is the error stack trace:

The website encountered an unexpected error. Try again later.
TypeError: Drupal\eca_form\HookHandler::submit(): Argument #1 ($form) must be of type array, null given in Drupal\eca_form\HookHandler::submit() (line 146 of modules/contrib/eca/modules/form/src/HookHandler.php).
call_user_func_array(Array, Array) (Line: 129)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(NULL, Object) (Line: 67)
Drupal\Core\Form\FormSubmitter->doSubmitForm(NULL, Object) (Line: 597)
Drupal\Core\Form\FormBuilder->processForm('user_login_form', NULL, Object) (Line: 326)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 68)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->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: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 49)
Drupal\remove_http_headers\StackMiddleware\RemoveHttpHeadersMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Proposed resolution

Not sure.

Remaining tasks

Not sure.

User interface changes

Not sure.

API changes

Not sure.

Data model changes

Not sure.

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡²πŸ‡ΎMalaysia amal.bukhari

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024