Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Something broke between 1.21 and 1.22.
Go to the File Displays admin: /admin/structure/file-types/manage/video/file-display
Notice the Vimeo Preview Image box is not enabled. Try to enable it and save. You'll get the error: "An illegal choice has been detected. Please contact the site administrator."
Comment | File | Size | Author |
---|---|---|---|
#9 | panopoly_widgets-vimeo-config-2504829-9.patch | 653 bytes | dsnopek |
Comments
Comment #1
dsnopekMarking as "Critical" because this is a regression!
Comment #2
mpotter CreditAttribution: mpotter commentedUpdating to latest media_vimeo module doesn't fix this, so likely something in the latest Media?
Comment #3
dsnopekThis could have been caused by the upgrade to Media 2.0-alpha4: #2445119: Update Media to 2.0-alpha4
To test we can try reverting to the version of Media from Panopoly 1.21. Here's the .make excerpt:
Comment #4
dsnopekYou can get the checkbox to save by doing the following:
It seems like something might be wrong with that form, or the config we have saved in Features breaking that form...
Comment #5
mpotter CreditAttribution: mpotter commentedThis might be a red-herring. Vimeo previews are broken in Atrium in the Media Gallery paragraph (and show a Manual Crop image style for some reason).
If I embed a vimeo video with WYSIWYG and select Preview mode, it works.
If I enter a vimeo video into the normal Attachments field in an Atrium document, it works.
So it's just a Paragraphs issue, so I'll dig into this for Atrium. Moving this back to Normal since this checkbox and illegal selection seems to have been around for a long time and isn't as big an issue as I thought.
Comment #6
mglamanIssue here is a stale Vimeo file display export, going to work on patch now.
Comment #7
mglamanI think the issue is this logic in hook_file_default_displays_alter(). It was setting the protocol to // which is invalid.
Comment #8
mglamanTravis run off of my fork https://travis-ci.org/mglaman/panopoly/builds/70542646
Comment #9
dsnopekActually, I think it would be better to not specify a protocol at all. Here's an attempt at a patch to do that!
EDIT: Here's the Travis build: https://travis-ci.org/panopoly/panopoly/builds/71441582
Comment #10
Elijah LynnLooks good! Tested it and the config form saves without errors and the Vimeo preview image now shows in the WYSIWYG area.
Comment #11
dsnopek@Elijah: Thanks for testing! Committed. :-)