Typed property Drupal\tracer\EventDispatcher\TraceableEventDispatcher::$tracer must not be accessed before initialization

Created on 15 September 2023, about 1 year ago
Updated 30 October 2023, about 1 year ago

Problem/Motivation

In Container.php line 223:

  Circular reference detected for service "config.factory", path: "token -> renderer -> theme.manager -> theme.negotiator -> access_check.theme -> theme_handler -> config.factory -> config.factory".


PHP Fatal error:  Uncaught Error: Typed property Drupal\tracer\EventDispatcher\TraceableEventDispatcher::$tracer must not be accessed before initialization in /app/web/modules/contrib/tracer/src/EventDispatcher/TraceableEventDispatcher.php:92
Stack trace:
#0 /app/vendor/symfony/http-kernel/HttpKernel.php(100): Drupal\tracer\EventDispatcher\TraceableEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\TerminateEvent), 'kernel.terminat...')
#1 /app/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(63): Symfony\Component\HttpKernel\HttpKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Render\HtmlResponse))
#2 /app/web/core/lib/Drupal/Core/DrupalKernel.php(688): Drupal\Core\StackMiddleware\StackedHttpKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Render\HtmlResponse))
#3 /app/vendor/drush/drush/src/Boot/DrupalBoot8.php(326): Drupal\Core\DrupalKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Render\HtmlResponse))
#4 [internal function]: Drush\Boot\DrupalBoot8->terminate()
#5 {main}
  thrown in /app/web/modules/contrib/tracer/src/EventDispatcher/TraceableEventDispatcher.php on line 92

Fatal error: Uncaught Error: Typed property Drupal\tracer\EventDispatcher\TraceableEventDispatcher::$tracer must not be accessed before initialization in /app/web/modules/contrib/tracer/src/EventDispatcher/TraceableEventDispatcher.php:92
Stack trace:
#0 /app/vendor/symfony/http-kernel/HttpKernel.php(100): Drupal\tracer\EventDispatcher\TraceableEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\TerminateEvent), 'kernel.terminat...')
#1 /app/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(63): Symfony\Component\HttpKernel\HttpKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Render\HtmlResponse))
#2 /app/web/core/lib/Drupal/Core/DrupalKernel.php(688): Drupal\Core\StackMiddleware\StackedHttpKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Render\HtmlResponse))
#3 /app/vendor/drush/drush/src/Boot/DrupalBoot8.php(326): Drupal\Core\DrupalKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Render\HtmlResponse))
#4 [internal function]: Drush\Boot\DrupalBoot8->terminate()
#5 {main}
  thrown in /app/web/modules/contrib/tracer/src/EventDispatcher/TraceableEventDispatcher.php on line 92

Steps to reproduce

In a Fresh D10 site;
Install web profiler and tracer modules
Enable the modules
Clear cache
Run drush updb

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฆ๐Ÿ‡บAustralia pasan.gamage

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

Comments & Activities

Production build 0.71.5 2024