Log report

Location
/admin/structure/views/ajax/handler/project_single_figli/default/field/field_video?_wrapper_format=drupal_ajax
Message
InvalidArgumentException: Missing required properties for an EntityDisplay entity. in Drupal\Core\Entity\EntityDisplayBase->__construct() (line 127 of /var/www/html/core/lib/Drupal/Core/Entity/EntityDisplayBase.php).
Severity
Error

for replicate

  • make a content type with video field
  • make a content views
  • add a video field.
  • the popup doesn't run even the first time.

Let me know if I can help more.

Thanks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

frazac_naba created an issue. See original summary.

heshanlk’s picture

Status: Active » Postponed (maintainer needs more info)

In your content type, are you going to upload videos or embed videos?

heshanlk’s picture

Status: Postponed (maintainer needs more info) » Needs work

Currently the display format Field doesn't work

InvalidArgumentException: Missing required properties for an EntityDisplay entity. in Drupal\Core\Entity\EntityDisplayBase->__construct() (line 127 of /home/dmqgh/www/core/lib/Drupal/Core/Entity/EntityDisplayBase.php).

Aghiad’s picture

Any solution for this? even a temp one.

heshanlk’s picture

Status: Needs review » Needs work

The last submitted patch, 5: 2665966-broken-views-field-05.patch, failed testing.

The last submitted patch, 5: 2665966-broken-views-field-05.patch, failed testing.

The last submitted patch, 5: 2665966-broken-views-field-05.patch, failed testing.

sagesolutions’s picture

Hello,

I tried the patch on both 8.x-1.1 and dev branches, and it didn't work for me either.

I get the following error when adding a video field in my "Videos page" view

AjaxError: 
An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /admin/structure/views/ajax/handler/videos/page_1/field/field_video
StatusText: Internal Server Error
ResponseText: {"message":"A fatal error occurred: Missing required properties for an EntityDisplay entity."}

Also note that on refresh, the field is there, but I cant configure it. That's really important because when I go to my /videos page, all the videos are auto-playing and I cant disable that functionality.

heshanlk’s picture

Did you try clearing the cache?. It's working fine on a fresh install. I'm not sure if you need to reset your field settings to fix the issue. But clearing the cache typically should do it.

sagesolutions’s picture

I cleared the cache, no luck.

I uninstalled completely, and then installed the 8.x-1.1-1+dev version and re-added a video field to a content type.

Then I created a new view and added a video field. I still get the same error as in comment #9

heshanlk’s picture

I tried the Simplytest.me url above in the patch (http://screencast.com/t/ft7WywUptV) and it worked for me.

Ps : 8.x-1.1-1+dev doesn't carry this change.

sagesolutions’s picture

I tried uninstalling and installed the 8.x-1.1 branch with the patch applied. I still get the ajax error.

heshanlk’s picture

Did you try to simplytest.me link above and did that work?

frazac_naba’s picture

Hello heshanlk,
All my tries are with embed videos from youtube.
Clear the cache not works, I didn't try deleting and adding a new video field.

Now I temporarily fix by edit youtube file plugin directly in the module folder.

I'll try your patch next week! (will be my first patch!)

Thank you very much

heshanlk’s picture

Status: Needs work » Patch (to be ported)

  • heshanlk committed e3392c0 on 8.x-1.x
    Issue #2665966 by heshanlk: Broken video popup in views
    
heshanlk’s picture

Status: Patch (to be ported) » Closed (fixed)
frazac_naba’s picture

The 8x-1.2 update works for me thanks!

xacto’s picture

Version: 8.x-1.1 » 8.x-1.2
Status: Closed (fixed) » Active

I am running into the same ajax problem now with the last build. No settings modal from field in views.
Video 8.x-1.2
Drupal core 8.0.5

Not sure if this is a Views core issue or a Video issue.

Location: admin/structure/views/ajax/handler/block_1/field/field_video?_wrapper_format=drupal_ajax
Message: InvalidArgumentException: Missing required properties for an EntityDisplay entity. in Drupal\Core\Entity\EntityDisplayBase->__construct() (line 127

Just a report here to reopen the issue :-)

heshanlk’s picture

Status: Active » Postponed (maintainer needs more info)

This looks to be working fine with a fresh install, may be a conflict with another module so I need more information to debug this.

dparvanova’s picture

Hi,

on a fresh new drupal 8.2.0 installation I added only Videojs module.
When trying to create a view with a video filed there are 2 formatters with name Video.js. None of them is working.
Selecting any of them records in the log the following:

location: /var/www/html/drupal-8.2.0/admin/structure/views/ajax/handler/front_page_videos/block_1/field/field_videojs?_wrapper_format=drupal_ajax
message: InvalidArgumentException: Missing required properties for an EntityDisplay entity. in Drupal\Core\Entity\EntityDisplayBase->__construct() (line 122 of /var/www/html/drupal-8.2.0/core/lib/Drupal/Core/Entity/EntityDisplayBase.php).

  • heshanlk committed e3392c0 on 8.x-2.x
    Issue #2665966 by heshanlk: Broken video popup in views
    
heshanlk’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

rfsbsb’s picture

I know this issue is marked as fixed, but I recently experienced the very same problem. I'm using version 1.2 with Drupal 8.4.2 in a fresh install.
I've created a content type with video upload. But when I try to create a view to display the video (either thumb or embed) I get the same error.

InvalidArgumentException: Missing required properties for an EntityDisplay entity. in Drupal\Core\Entity\EntityDisplayBase->__construct() (line 122 of /mysites/core/lib/Drupal/Core/Entity/EntityDisplayBase.php).
Joe Huggans’s picture

I can confirm that this issue can be caused by the videoJS module, uninstalling this module fixes the issue