I get the following error when enabeling the Web Profiler module:
The website encountered an unexpected error. Please try again later.
TypeError: Argument 3 passed to Drupal\stage_file_proxy\EventSubscriber\ProxySubscriber::__construct() must be an instance of Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher, instance of Drupal\webprofiler\TraceableEventDispatcher given, called in /Applications/MAMP/htdocs/biomin.co.uk/biomin/core/lib/Drupal/Component/DependencyInjection/Container.php on line 276 in Drupal\stage_file_proxy\EventSubscriber\ProxySubscriber->__construct() (line 53 of modules/contrib/stage_file_proxy/src/EventSubscriber/ProxySubscriber.php).
Drupal\stage_file_proxy\EventSubscriber\ProxySubscriber->__construct(Object, Object, Object) (Line: 276)
Drupal\Component\DependencyInjection\Container->createService(Array, 'stage_file_proxy.subscriber') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('stage_file_proxy.subscriber') (Line: 148)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->getListeners('kernel.request') (Line: 245)
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->preProcess('kernel.request') (Line: 135)
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('kernel.request', Object) (Line: 125)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 64)
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: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 38)
Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 656)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
I also use the Stage file proxy module: https://www.drupal.org/project/stage_file_proxy
When uninstalling the Web Profiler module the error disappears.
Does anybody have an idea what the issue might be?
Comments
Comment #2
willzyx commented@kleinermann thanks for reporting.
The problem was solved in stage_file_proxy whit this commit. Try to upgrade stage_file_proxy to the latest version
Comment #3
heyehren commentedThanks @willzyx, this fixed the issue for me.