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."

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dsnopek’s picture

Priority: Normal » Critical
Issue tags: +sprint

Marking as "Critical" because this is a regression!

mpotter’s picture

Updating to latest media_vimeo module doesn't fix this, so likely something in the latest Media?

dsnopek’s picture

This 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:

projects[media][version] = 2.x-dev
projects[media][subdir] = contrib
projects[media][download][type] = git
projects[media][download][revision] = 6382429
projects[media][download][branch] = 7.x-2.x
projects[media][patch][2192981] = http://drupal.org/files/issues/media-restore-edit-button-2192981-13.patch
projects[media][patch][2126697] = http://drupal.org/files/issues/media-wysiwyg-alt-title-handling-2126697-27.patch
projects[media][patch][2308487] = http://drupal.org/files/issues/media-alt-title-double-encoded-2308487-1.patch
projects[media][patch][2084287] = http://www.drupal.org/files/issues/media-file-name-focus-2084287-2.patch
projects[media][patch][2421589] = http://www.drupal.org/files/issues/media-library-preview-overflow-2421589-2.patch
dsnopek’s picture

You can get the checkbox to save by doing the following:

  1. Select the "Vimeo Video" tab
  2. Check "Specify an http protocol"
  3. Choose either HTTP or HTTPS
  4. Click "Save configuration"

It seems like something might be wrong with that form, or the config we have saved in Features breaking that form...

mpotter’s picture

Priority: Critical » Normal

This 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.

mglaman’s picture

Title: Vimeo preview images not working » Update Vimeo configuration export
Assigned: Unassigned » mglaman

Issue here is a stale Vimeo file display export, going to work on patch now.

mglaman’s picture

Assigned: mglaman » Unassigned
Status: Active » Needs review
FileSize
650 bytes

I think the issue is this logic in hook_file_default_displays_alter(). It was setting the protocol to // which is invalid.

mglaman’s picture

dsnopek’s picture

FileSize
653 bytes

Actually, 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

Elijah Lynn’s picture

Status: Needs review » Reviewed & tested by the community

Looks good! Tested it and the config form saves without errors and the Vimeo preview image now shows in the WYSIWYG area.

dsnopek’s picture

Status: Reviewed & tested by the community » Fixed

@Elijah: Thanks for testing! Committed. :-)

  • dsnopek committed 82a4fcc on 7.x-1.x
    Update Panopoly Widgets for Issue #2504829 by dsnopek, mglaman, mpotter...

Status: Fixed » Closed (fixed)

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