Unable to decode output into JSON: Syntax error

Created on 15 September 2023, over 1 year ago
Updated 16 September 2023, over 1 year ago

Problem/Motivation

Getting the following error after upgrading from 2.1.1 to 2.x-dev or 2.2.0

In ProcessBase.php line 171: Unable to decode output into JSON: Syntax error. Fatal error: Declaration of Drupal\pdf_serialization\Encoder\PdfEncoder::encode(mixed $data, string $format, array $context = []):
string must be compatible with Symfony\Component\Serializer\Encoder\EncoderInterface::encode($data, $format, array $context = [])
in /var/www/html/web/modules/contrib/pdf_serialization/src/Encoder/PdfEncoder.php on line 66

Steps to reproduce

  • Upgrade website from 2.1.1 to 2.x-dev or 2.2.0
  • Drupal version: 9.5.10
  • PHP version: 8.0.26
  • Web server: nginx/1.22.1
๐Ÿ› Bug report
Status

Active

Version

2.2

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024