See the screenshot http://drupalgem.com/content/entity-browser-1
I'm using an entity reference field for media on a content type. I am using the media browser to select media images. In node create after you select an image the media browser pop closes and the thumbnail should appear in "Current selection" area or "selection display". I recently upgraded from lightning 2.1.3 to 2.1.6. Before the upgraded I did not see the title Current selections title. Another issue after the upgrade. If the field allows only 1 upload then the "Current selection" area will NOT display the image thumbnail you selected in the media browser. If the field allows unlimited upload then the thumbnails display in the "Current selection" area. I dont think the Entity Browser module is causing this. I think it may be something in Lightning Media.

Comments

leisurman created an issue. See original summary.

phenaproxima’s picture

Component: Code » Media
Issue tags: -media
phenaproxima’s picture

Status: Active » Postponed (maintainer needs more info)

I can't think of what in Lightning Media would be causing this. The 'current selection' area is usually part of the entity browser's configuration, and we don't alter any existing configuration during updates. So I think I need more information here -- could you supply the details how the field is configured now, and how it was configured under 2.1.3?

balsama’s picture

leisurman’s picture

I posted the steps here that got me to this error: https://www.drupal.org/node/2901541#comment-12217671. I also get the other error below. The 2 errors occur after I select images in the entity browser pop up window. The window then closes after you select an image and then the thubnail should load in the current selections area. And the errors only occur when the field allows 1 upload. If it allows unlimited there are no errors
error php LogicException: The database connection is not serializable. This probably means you are serializing an object that has an indirect reference to the database connection. Adjust your code s I started a fresh new lightning 2.1.6 site and the field functions fine when it allows only 1 upload. Our database may be corrupted after the upgrade.

phenaproxima’s picture

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

Project: Lightning » Lightning Media
Version: 8.x-2.16 » 8.x-2.x-dev
Component: Media » Code