Error when trying to print

Created on 13 September 2024, 7 months ago

Problem/Motivation

InvalidArgumentException: Invalid option 'printBackground' for print to pdf. Must be boolean. in HeadlessChromium\PageUtils\PagePdf->invalidArgument() (line 131 of /app/vendor/chrome-php/chrome/src/PageUtils/PagePdf.php).
HeadlessChromium\PageUtils\PagePdf->validateOption('printBackground', 1)
array_map(Array, Array, Array) (Line: 79)
HeadlessChromium\PageUtils\PagePdf->setOptions(Array) (Line: 59)
HeadlessChromium\PageUtils\PagePdf->__construct(Object, Array) (Line: 720)
HeadlessChromium\Page->pdf(Array) (Line: 155)
Drupal\entity_print_chrome\Plugin\EntityPrint\PrintEngine\Chrome->getBlob() (Line: 118)
Drupal\entity_print_chrome\Plugin\EntityPrint\PrintEngine\Chrome->send('2024001.pdf', ) (Line: 64)
Drupal\entity_print\PrintBuilder->deliverPrintable(Array, Object, , 1) (Line: 91)
Drupal\entity_print\Controller\EntityPrintController->Drupal\entity_print\Controller\{closure}() (Line: 112)
Symfony\Component\HttpFoundation\StreamedResponse->sendContent() (Line: 381)
Symfony\Component\HttpFoundation\Response->send() (Line: 92)
Drupal\entity_print\Controller\EntityPrintController->viewPrint('pdf', 'node', '340') (Line: 275)
Drupal\faktura\Controller\Document\DocumentEmail->getPdf(Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
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)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia kaszarobert

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024