TypeError: Argument 1 passed to Drupal webform_share

Created on 12 June 2023, over 1 year ago
Updated 20 July 2023, about 1 year ago

Problem/Motivation

After several updates in the Drupal modules, one of them was the WebForm update; I encountered the following known error, without knowing the cause.

The website encountered an unexpected error. Please try again later.

After many attempts, I found out via darsh that the line came from webform_share

drush watchdog:show --severity=Error

And error messages:

TypeError: Argument 1 passed to Drupal\webform_share\EventSubscriber\WebformShareEventSubscriber::onResponse() must be an instance of Symfony\Component\HttpKernel\Event\ResponseEvent, inst
TypeError: Argument 1 passed to Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer::renderBarePage() must be of the type array, bool given, called in /home/vps/public_html/site
TypeError: Argument 1 passed to Drupal\webform_share\EventSubscriber\WebformShareEventSubscriber::onResponse() must be an instance of Symfony\Component\HttpKernel\Event\ResponseEvent, inst
TypeError: Argument 1 passed to Drupal\webform_share\EventSubscriber\WebformShareEventSubscriber::onResponse() must be an instance of Symfony\Component\HttpKernel\Event\ResponseEvent, inst
TypeError: Argument 1 passed to Drupal\webform_share\EventSubscriber\WebformShareEventSubscriber::onResponse() must be an instance of Symfony\Component\HttpKernel\Event\ResponseEvent, inst
TypeError: Argument 1 passed to Drupal\webform_share\EventSubscriber\WebformShareEventSubscriber::onResponse() must be an instance of Symfony\Component\HttpKernel\Event\ResponseEvent, inst
TypeError: Argument 1 passed to Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer::renderBarePage() must be of the type array, bool given, called in /home/vps/public_html/site

about Symphny, i got this:

$ composer info | grep -E '^symfony'
Deprecation warning: require.technosophos/LibRIS is invalid, it should not contain uppercase characters. Please use technosophos/libris instead. Make sure you fix this as Composer 2.0 will error.
symfony-cmf/routing 1.4.1 Extends the Symfony2 routing component for dynamic routes and chaining several routers
symfony/class-loader v3.4.41 Symfony ClassLoader Component
symfony/console v3.4.41 Symfony Console Component
symfony/debug v3.4.41 Symfony Debug Component
symfony/dependency-injection v3.4.41 Symfony DependencyInjection Component
symfony/event-dispatcher v3.4.41 Symfony EventDispatcher Component
symfony/filesystem v4.4.27 Provides basic utilities for the filesystem
symfony/finder v5.3.7 Finds files and directories via an intuitive fluent interface
symfony/http-foundation v3.4.41 Symfony HttpFoundation Component
symfony/http-kernel v3.4.44 Symfony HttpKernel Component
symfony/polyfill-ctype v1.17.0 Symfony polyfill for ctype functions
symfony/polyfill-iconv v1.17.0 Symfony polyfill for the Iconv extension
symfony/polyfill-intl-idn v1.17.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-mbstring v1.17.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php56 v1.17.0 Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70 v1.17.0 Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-php72 v1.17.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php80 v1.23.1 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/polyfill-util v1.17.0 Symfony utilities for portability of PHP codes
symfony/process v3.4.41 Symfony Process Component
symfony/psr-http-message-bridge v1.1.2 PSR HTTP message bridge
symfony/routing v3.4.41 Symfony Routing Component
symfony/serializer v3.4.41 Symfony Serializer Component
symfony/translation v3.4.41 Symfony Translation Component
symfony/validator v3.4.41 Symfony Validator Component
symfony/var-dumper v4.4.31 Provides mechanisms for walking through any arbitrary PHP variable
symfony/yaml v3.4.41 Symfony Yaml Component

I don't know how to solve the problem yet; Does anyone have experience solving this problem?

πŸ› Bug report
Status

Closed: cannot reproduce

Version

6.1

Component

Code

Created by

πŸ‡§πŸ‡­Bahrain drattar

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

Comments & Activities

Production build 0.71.5 2024