Drupal\amp\Asset\AmpCssCollectionRenderer::__construct(): Argument #2 ($file_url_generator) must be of type Drupal\Core\File\FileUrlGeneratorInterface, Drupal\Core\State\State

Created on 17 July 2023, 12 months ago
Updated 19 July 2023, 12 months ago

After update drupal core to 9.5.10 the site goes down and show in all pages this error

The website encountered an unexpected error. Please try again later.
TypeError: Drupal\amp\Asset\AmpCssCollectionRenderer::__construct(): Argument #2 ($file_url_generator) must be of type Drupal\Core\File\FileUrlGeneratorInterface, Drupal\Core\State\State given, called in /var/www/ci/site-d9-cal/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\amp\Asset\AmpCssCollectionRenderer->__construct() (line 87 of modules/contrib/amp/src/Asset/AmpCssCollectionRenderer.php).
Drupal\amp\Asset\AmpCssCollectionRenderer->__construct(Object, Object, Object, Object, Object) (Line: 259)
Drupal\Component\DependencyInjection\Container->createService(Array, 'asset.css.collection_renderer') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('asset.css.collection_renderer', 1) (Line: 434)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'ajax_response.attachments_processor') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('ajax_response.attachments_processor', 1) (Line: 434)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'ajax_response.subscriber') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('ajax_response.subscriber') (Line: 136)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.request') (Line: 145)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
🐛 Bug report
Status

Closed: won't fix

Version

3.0

Component

Code

Created by

🇨🇴Colombia javiereduardo

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

Comments & Activities

Production build 0.69.0 2024