after update from 8.x-2.4 to 8.x.3.0, my site is broken with fatal error, clear cache, update database didn't help.

The error message show something to do with devel/webprofiler module, so I disabled this module, then the advagg 8.x.3.0 can be installed with no problem. Meanwhile, the old stable version 8.x-2.4 do not have this behavior, it works quite well with webprofiler module.

The website encountered an unexpected error. Please try again later.
TypeError: Argument 2 passed to Drupal\advagg\Asset\CssOptimizer::__construct() must be an instance of Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher, instance of Drupal\webprofiler\TraceableEventDispatcher given, called in /var/www/cms/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 276 in Drupal\advagg\Asset\CssOptimizer->__construct() (line 17 of modules/contrib/advagg/src/Asset/CssOptimizer.php).

Drupal\advagg\Asset\CssOptimizer->__construct(Object, Object, Object) (Line: 276)
Drupal\Component\DependencyInjection\Container->createService(Array, 'advagg.optimizer.css') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('advagg.optimizer.css') (Line: 158)
Drupal::service('advagg.optimizer.css') (Line: 116)
advagg_css_alter(Array, Object, NULL) (Line: 501)
Drupal\Core\Extension\ModuleHandler->alter('css', Array, Object) (Line: 159)
Drupal\Core\Asset\AssetResolver->getCssAssets(Object, 1) (Line: 291)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object, Array) (Line: 161)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object) (Line: 93)
Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor->processAttachments(Object) (Line: 45)
Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object, 'kernel.response', Object)
call_user_func(Array, Object, 'kernel.response', Object) (Line: 61)
Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(Object, 'kernel.response', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.response', Object) (Line: 140)
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('kernel.response', Object) (Line: 184)
Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object, Object, 1) (Line: 166)
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)

Comments

lvbeck created an issue. See original summary.

NickDickinsonWilde’s picture

Assigned: Unassigned » NickDickinsonWilde
Status: Active » Needs work

Thanks for the report.
Fix coming up soon :)

NickDickinsonWilde’s picture

Assigned: NickDickinsonWilde » Unassigned
Status: Needs work » Needs review

Try updating to the latest dev version of webprofiler - I'm not able to reproduce it and it looks like it should work fine.

NickDickinsonWilde’s picture

Status: Needs review » Closed (cannot reproduce)