- Issue created by @peterhebert
I am getting an AJAX error that is preventing upload through the media library modal 'add or select media'
The image fails to attach or upload, and the console reports the following error:
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /media-library?media_library_opener_id=media_library.opener.field_widget&media_library_allowed_types%5Bimage%5D=image&media_library_selected_type=image&media_library_remaining=1&media_library_opener_parameters%5Bfield_widget_id%5D=field_media_thumbnail_pdf&media_library_opener_parameters%5Bentity_type_id%5D=node&media_library_opener_parameters%5Bbundle%5D=resources&media_library_opener_parameters%5Bfield_name%5D=field_media_thumbnail_pdf&media_library_opener_parameters%5Bentity_id%5D=3381&media_library_opener_parameters%5Brevision_id%5D=11441&hash=gyfQi7DXqomP1GtjuyDL2sC1HlP14NHi3MpQmI5mXhA&ajax_form=1
StatusText: parsererror
ResponseText: Error: Cannot use object of type Drupal\file\Entity\File as array in Drupal\rich_image\Plugin\Field\FieldType\RichImageItem->setValue() (line 331 of /app/web/modules/contrib/rich_image/src/Plugin/Field/FieldType/RichImageItem.php).
Active
1.0
Code