I created a content type which contains both the media entity image field and the YAML form one.

The media entity image field has been created as an entity referenced field and configured as an ajax button that launches the Image Entity Browser in a modal window to choose images from the image library views or to upload new ones.

The YAML form field has been created and configured as an entity referenced field.

Case 1.
If I not use the form field then adding, editing and deleting images from a node work fine.

Case 2.
If I firstly add a form to a node and secondly try to add new images or delete existing ones then the ajax usage of the adding button and the removing button is disabled but the editing button works fine.

Comments

nomadkz created an issue. See original summary.

jrockowitz’s picture

It is possible that #2782989: Uncaught PHP Exception LogicException in recent version was causing this problem. You should retest this issue using the 8.x-1.0-beta13release.

I need you to look at the error that is being logged in JavaScript console when the media entity field's AJAX behavior fails. The above ticket includes some examples of what I am looking for.

Also see How to open the JavaScript console in different browsers?

nomadkz’s picture

The beta13 version not fixes the issue. The js console shows this error:

AjaxError: 
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /node/1/edit?ajax_form=1
StatusText: OK
ResponseText: AssertionError: The container was serialized. in assert() (line 29 of /home/site/www/core/lib/Drupal/Core/DependencyInjection/Container.php).ajax.js
jrockowitz’s picture

@nomadkz I would like to try to replicate your issue but I have never used the media and media entity image module. Is there a tutorial that you used to set up your current (and now broken) configuration.

jrockowitz’s picture

Status: Active » Postponed (maintainer needs more info)
jrockowitz’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Feel free to reopen if you can provide more informaion