TypeError: Argument #1 ($event) must be of type Symfony\Component\EventDispatcher\Event

Created on 11 May 2024, 7 months ago

Problem/Motivation

The website encountered an unexpected error. Try again later.

TypeError: Drupal\webform_embed\EventSubscriber\WebformEmbedSubscriber::kernel_response(): Argument #1 ($event) must be of type Symfony\Component\EventDispatcher\Event, Symfony\Component\HttpKernel\Event\ResponseEvent given in Drupal\webform_embed\EventSubscriber\WebformEmbedSubscriber->kernel_response() (line 28 of modules/contrib/webform_embed/src/EventSubscriber/WebformEmbedSubscriber.php).

call_user_func() (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 214)
Symfony\Component\HttpKernel\HttpKernel->filterResponse() (Line: 202)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Steps to reproduce

  1. Install 2.x-dev version and enable module.

Proposed resolution

Update types.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom hocu London

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024