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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | dfp-calling-method-without-language-manager-argument-is-deprecated-3421906-2.patch | 3.11 KB | v.dovhaliuk |
Issue fork dfp-3421906
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
v.dovhaliuk commentedComment #3
v.dovhaliuk commentedComment #4
vladimirausUpdating to 3.x and creating MR.
Comment #6
vladimirausLooks like fixed in 3.x.
Thanks everyone.