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

Issue fork dfp-3421906

Command icon 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

v.dovhaliuk created an issue. See original summary.

v.dovhaliuk’s picture

v.dovhaliuk’s picture

Status: Needs work » Needs review
vladimiraus’s picture

Version: 2.0.0-alpha1 » 3.0.x-dev
Status: Needs review » Needs work

Updating to 3.x and creating MR.

vladimiraus’s picture

Status: Needs work » Fixed

Looks like fixed in 3.x.
Thanks everyone.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.