Calling Drupal\Core\Render\HtmlResponseAttachmentsProcessor::__construct() without the $languageManager argument is deprecated in drupal:10.1.0 and will be required in drupal:11.0.0 16384

Created on 16 February 2024, 4 months ago

Problem/Motivation

When using this module the following error arises:

The website encountered an unexpected error. Please try again later.

Dompdf\Exception: Calling Drupal\Core\Render\HtmlResponseAttachmentsProcessor::__construct() without the $languageManager argument is deprecated in drupal:10.1.0 and will be required in drupal:11.0.0 16384 in Dompdf\Helpers::record_warnings() (line 507 of /var/www/uat/csp/vendor/dompdf/dompdf/src/Helpers.php).


trigger_error() (Line: 112)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->__construct() (Line: 77)
Drupal\dfp\DfpHtmlResponseAttachmentsProcessor->__construct() (Line: 259)
Drupal\Component\DependencyInjection\Container->createService() (Line: 177)
Drupal\Component\DependencyInjection\Container->get() (Line: 440)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 237)
Drupal\Component\DependencyInjection\Container->createService() (Line: 177)
Drupal\Component\DependencyInjection\Container->get() (Line: 105)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 214)
Symfony\Component\HttpKernel\HttpKernel->filterResponse() (Line: 202)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Proposed resolution

Proved the @language_manager argument for the DfpHtmlResponseAttachmentsProcessor

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine v.dovhaliuk

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

Comments & Activities

Production build 0.69.0 2024