Closed (fixed)
Project:
Video.js (HTML5 Video Player)
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2017 at 12:10 UTC
Updated:
9 Dec 2023 at 19:19 UTC
Jump to comment: Most recent
Comments
Comment #2
wim leersThat's thrown by:
I certainly cannot reproduce this. I also don't see how
entity_embedcould possibly trigger this, since it does not constructEntityDisplayBasesubclass objects.Even though I cannot reproduce this nor can I fathom how, if you can, then please reopen this issue and provide concrete steps to reproduce. Thanks! 🙏
Comment #3
selfirian commentedI have the same issue, it occurs when tryinig to edit an entity embed, I'm trying to use this with the media library from core.
I does work but I'm unable to modify the button's icon.
Comment #4
chrsnlsn commentedI'm also running into this with core media library can't create an embed button, when I use the dropdown to select the embed type "entity" nothing gets returned and this error shows up in the logs.
Comment #5
rgreeott01 commentedI'm experiencing the same issue as defined by Slefirian & Chrsnlsn. From my logi file
Uncaught PHP Exception InvalidArgumentException: "Missing required properties for an EntityDisplay entity." at /srv/bindings/dcbce8fe2fa54462bf1e1f7b7ea17bae/code/core/lib/Drupal/Core/Entity/EntityDisplayBase.php
Comment #6
iyyappan.govindI am getting the same error.
Comment #7
iyyappan.govindComment #8
iyyappan.govindIt is throwing error while
$entity_type = entity_form_display.Comment #9
wim leersThat can only happen if you have an
EntityDisplayInterfaceentity that has either notargetEntityTypeor nobundle. (i.e. the code I quoted in #2.)Are any of you using custom entity displays?
Comment #10
iyyappan.govindHi @Wim Leers ,
Yes we custom entity display which is coming from videojs module. Videojs module provides field formatter called
VideoJsPlayerFormatter. It showing this error in below code because we are callingisApplicable()functionThanks
Comment #11
vighneshh commentedDo we have any solution for this issue facing the exact issue while migrating a site from drupal7 to drupal 9
Comment #12
dave reidWell there look to be several things wrong with that isApplicable method in videojs:
1. Not being defensive in calling entity_get_form_display() and checking for an exception if the given form mode doesn't exist.
2. It does all that to not even use the variables, all it's doing is checking $field_definition->isList(), which I'm still not sure why because even single-value fields are still lists, of just one value.
This needs to be fixed upstream in videojs to probably just remove that isApplicable method entirely.
Comment #14
dave reidComment #20
_shyI like it, thanks.
Merged in 8.x-1.x and 3.x branches.