D10 – PHP error & error 500 with image fields in paragraphs

Created on 4 April 2023, over 1 year ago
Updated 27 July 2023, over 1 year ago

Hello,
Thanks for this great module. I'm experiencing a very annoying bug on Drupal 10 + Paragraphs. I searched the web but it seems this issue hasn't been documented yet.

Problem/Motivation

From Drupal 10, adding an image (core image field) in a paragraph returns an error.

Steps to reproduce

Install latest Drupal, Paragraphs and dependencies.
Create a new paragraph type with a built-in image field.
Add a paragraphs field on a content type.
Create a node, add a new paragraph, upload an image in the field.


Failed to load resource: the server responded with a status of 500 ()
/fr/node/17/edit?element_parents=field_sections_page/widget/3/subform/field_liste_paragraphs/widget/0/subform/field_photo/widget/0&destination=/fr/admin/content&ajax_form=1&_wrapper_format=drupal_ajax&_wrapper_format=drupal_ajax:1


FastCGI: server "/home/clients/XXX/.config/apache/XXX/.fpm/php5.external" stderr: PHP message: Uncaught PHP Exception Exception: "Serialization of 'Symfony\\Component\\HttpFoundation\\File\\UploadedFile' is not allowed" at /home/clients/XXX/sites/XXX/web/core/lib/Drupal/Component/Serialization/PhpSerialize.php line 14, referer https://XXX/fr/node/17/edit?destination=/fr/admin/content

Tested on updated installs and on clean installs.
Any clue ?

🐛 Bug report
Status

Fixed

Version

1.15

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