Argument 3 passed to SomethingWentWrongExceptionSubscriber::__construct() must be an instance of Drupal\Core\Logger\LoggerChannelFactory, instance of Drupal\redirect_404\Render\Redirect404LogSuppressor given

Created on 3 May 2019, over 5 years ago
Updated 2 June 2023, over 1 year ago

When I updated module to 8.x-1.02 version, I got this error:

The website encountered an unexpected error. Please try again later.
TypeError: Argument 3 passed to Drupal\something_went_wrong\EventSubscriber\SomethingWentWrongExceptionSubscriber::__construct() must be an instance of Drupal\Core\Logger\LoggerChannelFactory, instance of Drupal\redirect_404\Render\Redirect404LogSuppressor given, called in /home/studiopresent/domains/limited.studiopresent.work/public_html/core/lib/Drupal/Component/DependencyInjection/Container.php on line 281 in Drupal\something_went_wrong\EventSubscriber\SomethingWentWrongExceptionSubscriber->__construct() (line 68 of modules/contrib/something_went_wrong/src/EventSubscriber/SomethingWentWrongExceptionSubscriber.php).

Drupal\something_went_wrong\EventSubscriber\SomethingWentWrongExceptionSubscriber->__construct(Object, Object, Object, Object) (Line: 281)
Drupal\Component\DependencyInjection\Container->createService(Array, 'something_went_wrong.exception.subscriber') (Line: 173)
Drupal\Component\DependencyInjection\Container->get('something_went_wrong.exception.subscriber') (Line: 105)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.exception', Object) (Line: 228)
Symfony\Component\HttpKernel\HttpKernel->handleException(Object, Object, 1) (Line: 79)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇷🇸Serbia bojan.m

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India vaibhavy72-aipl

    TypeError: Argument 3 passed to Drupal\aster_base\EventSubscriber\WorkflowTransitionMainSubscriber::__construct() must be an instance of Drupal\Core\Logger\LoggerChannelFactory, instance of Drupal\redirect_404\Render\Redirect404LogSuppressor given
    same error while updating contents, drupal 9. cache cleared but not working

Production build 0.71.5 2024