I have created an image media entity bundle for a slideshow slide. The slideshow displays rooms in a museum and needs to include the following fields:

  • Photo of room (image field)
  • Floor plan location illustration (image field)
  • Floor plan number (integer field)
  • Description (long formatted text)

When I have the Photo of the room, floor plan number and description fields everything works as expected. When I add the Floor plan location (the second image field) then I see the following ajax error in the console when adding an image to the bundle:

AjaxError:
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /media/add/tour_exhibition_hall_slides?element_parents=field_exhibition_hall_photo/widget/0&ajax_form=1
StatusText: OK
ResponseText:

Removing the 2nd image field does not fix the problem - the ajax error persists even with just one image field. I have to recreate the bundle w/ only one image field for it to work properly again.

It should be noted that I did apply the patch found in this thread to fix the thumbnail image when using an image folder structure different than the default: https://www.drupal.org/node/2767501

I wanted to bring this to your attention. Thank you.

Comments

soothmidas created an issue.