When I click save configuration on the PLAYERS tab I get this error

"An illegal choice has been detected. Please contact the site administrator."

It may be because I am having to used drupal 7-dev - April 5 version.

(when you upgrade to the latest apache, the feb1 of drupal 7 has issues, which will be fixed by next core release)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

An associated error warning should also have been logged to the Drupal error log. Could you try to find that log entry and post it here?

Is this error happening consistently or just once in a while? What Flash / HTML5 players are available on your system?

webengr’s picture

If I am the only one this is happening to... don't worry, I put the video on you tube and stuck the embed code for now rather than setup a content type to get the job done.

I installed the module for video.js

However to help... It seems that it does it for all players..... I\

Do you want me to do a default install of module video on a test site with just enough modules to run video then without making any player changes click save configuration on that tab ?

HERE is a cut/paste of the drupal log

TYPE
DATE
MESSAGE
USER
OPERATIONS
form 2012-04-10 12:00 Illegal choice in HTML5 player for webm element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for webm element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for ogv element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for ogv element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for ogg element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for ogg element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for mpeg element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for mpeg element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for mpg element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for mpg element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for avi element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for avi element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for wmv element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for wmv element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for asf element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for asf element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for dcr element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for dcr element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for dir element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for dir element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for swf element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for swf element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for flv element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for flv element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for f4v element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for f4v element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for rm element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for rm element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for m4v element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for m4v element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for mp4 element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for mp4 element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for 3g2 element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for 3g2 element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for 3gp element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for 3gp element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for mov element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for mov element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for mkv element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for mkv element. admin
form 2012-04-10 12:00 Illegal choice in HTML5 player for divx element. admin
form 2012-04-10 12:00 Illegal choice in Flash player for divx element.

webengr’s picture

CONFIRMED

Same server on a new website with minimal modules using drupal 7 dev version as of April 5th,
And after installing video and video ui,
I went staight to the configuration player and with none changed clicked on save configuration
and immediately got mulitple errors,
"An illegal choice has been detected. Please contact the site administrator."

It may not be the fault of the video module - could be something else... but I did generate
the fault inside the video module when attempting to save configuration for player with
nothing changed.

Type Date Message User Operations
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for webm element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for ogv element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for ogg element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for mpeg element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for mpg element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for avi element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for wmv element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for asf element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for dcr element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for dir element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for swf element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for flv element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for f4v element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for rm element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for m4v element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for mp4 element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for 3g2 element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for 3gp element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for mov element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for mkv element. admin
form 04/10/2012 - 14:52 Illegal choice in HTML5 player for divx element. admin
system 04/10/2012 - 14:52 video_ui module enabled. admin
system 04/10/2012 - 14:52 video_ui module installed. admin
system 04/10/2012 - 14:52 video module enabled. admin
system 04/10/2012 - 14:52 video module installed. admin

Jorrit’s picture

Assigned: Unassigned » Jorrit

Unfortunately, I can't reproduce this problem. Can I get access to your site with sufficient permissions to reproduce this problem? Is it happening for all browsers?

Jorrit’s picture

Another question: could you post screenshots of the form before and after you submit it?

ws5_chrisl’s picture

I'm experiencing the same issue. The strange part is that this was working previously; I just rebuilt the Drupal install from scratch to eliminate all the cruft that had built up during development.

I've attached 3 screenshots:

  1. Pre-submit form
  2. Post-submit form
  3. Post-submit error log

Let me know if I can provide any more information to help debug this issue. Thanks!

ws5_chrisl’s picture

Okay, found something interesting. I used Drush to build the project and didn't realize that Drush had downloaded 7.13-dev when I ran drush make. I rolled the core Drupal install back to 7.12 and everything works fine.

Jorrit’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

It is certainly weird that the current Drupal issue is the problem. I see some changes in the Drupal commit log related to this situation. I'm going to keep an eye on this when 7.13 is released.

webengr’s picture

Agreed, leave closed since the 7 dev is still morphing, it may go away....
But when you are ready to and if you need a temporary sandbox website, let me know
and I'll create and ftp account and load up a test site on one of my servers and give admin in
appreciation of the project.

Jorrit’s picture

Thanks for that, I don't think it is necessary. If I have time, I'll update my own development installation to see if I can fix the bug before 7.13 is released. That settings screen is kind of hacky anyway, with all those hidden radio buttons. I might change it to something that uses AHAH.

Jorrit’s picture

Status: Closed (works as designed) » Fixed

The problem is still present in the current -dev version of Drupal, which will become 7.13 this Wednesday. I have committed a fix for this problem.

For all people that want this fix: be careful when updating to Video 7.x-2.x-dev. The version has been tested a lot, but contains many changes. Read the release notes of the development release before you upgrade.

Anonymous’s picture

I'm having this same issue with using 7.14.

What is it that I should do to fix this?

Jorrit’s picture

Please update to 7.x-2.x-dev. Please read the release notes before updating.

vadzen’s picture

Hi,

Drupal 7.14
video version 7.x-2.5

I have the same issue
Log:

form 05/14/2012 - 18:22 Illegal choice in HTML5 player for webm element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for webm element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for ogv element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for ogv element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for ogg element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for ogg element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for mpeg element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for mpeg element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for mpg element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for mpg element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for avi element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for avi element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for wmv element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for wmv element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for asf element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for asf element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for dcr element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for dcr element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for dir element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for dir element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for swf element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for swf element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for flv element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for f4v element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for rm element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for rm element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for m4v element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for m4v element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for mp4 element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for 3g2 element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for 3g2 element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for 3gp element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for 3gp element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for mov element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for mov element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for mkv element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for mkv element.
form 05/14/2012 - 18:22 Illegal choice in HTML5 player for divx element.
form 05/14/2012 - 18:22 Illegal choice in Flash player for divx element.

Drupal 7.14
video version 7.x-2.5-dev

The configuration options have been saved.

The issue solved.
Thanks

kennywyland’s picture

Status: Fixed » Needs work

I'm using Drupal 7.14 and the Video module 7.x-2.6 and I'm getting this same error. It may have worked ok for vadzen with 7.x-2.5-dev, but it's not working with 7.x-2.6.

EDIT: I tested with 7.x-2.x-dev and it's working, but 7.x-2.6 has a publish date of 2012-May-16 and 7.x-2.x-dev has a publish date of 2012-May-09 so that's a bit confusing to me. It looks like 2.6 should contain whatever bug fix is included in the 2.x-dev, but either it doesn't contain the fix or something that is stripped out of 2.x-dev during the conversion to production code is stripping away part of the bug fix.

Jorrit’s picture

This is very strange: I just downloaded 7.x-2.x and 7.x-2.6 and the only difference between the two is in the version numbers in the info files. Could you try to download 2.6 again?

Jorrit’s picture

Status: Needs work » Closed (fixed)

I will close this issue as you have contacted me by mail and this issue seems resolved.

David Lesieur’s picture

I also had this issue with Drupal 7.14 and Video 7.x-2.5. Updating Drupal to 7.15 solves the issue. That allows someone who's in a hurry to keep the upgrade to Video 7.x-2.7 for later.

pavennt’s picture

Assigned: Jorrit » pavennt
Status: Closed (fixed) » Fixed

I also had this error.I fix it by simple
in file video/modules/video_ui/video.admin.inc

/**
 * Video player admin settings
 */
function video_players_admin_settings() {
  $form = array();
  $form['extensions'] = array(
    '#type' => 'fieldset',
    '#title' => t('Video extensions'),
    '#description' => t('Here you can map specific players to each video extension type.'),
  );
  // lets get all our supported extensions and players.
  $extensions = video_video_extensions();
  $players = video_video_players();
  $flv_players = video_video_flv_players();
  $html5_players = video_video_html5_players();

  foreach ($extensions as $ext => $player) {
    $form['extensions']['video_extension_' . $ext] = array(
      '#type' => 'select',
      '#title' => t('Extension:') . '  ' . $ext,
      '#default_value' => variable_get('video_extension_' . $ext, $player),
      '#options' => $players,
      '#prefix' => '<div class="video_select" rel="' . $ext . '">',
      '#suffix' => '</div>',
    );
    // For flash
    if (!empty($flv_players)) {
      $form['extensions']['video_extension_' . $ext . '_flash_player'] = array(
        '#type' => 'radios',
        '#title' => t('Flash player for @extension', array('@extension' => $ext)),
        '#options' => $flv_players,
        '#default_value' => variable_get('video_extension_' . $ext . '_flash_player', ''),
        '#prefix' => '<div class="admin_flv_player_wrapper" id="flv_player_' . $ext . '">',
        '#suffix' => '</div>',
      );
    }
    else {
      $form['extensions']['video_extension_' . $ext . '_flash_player'] = array(
        '#type' => 'markup',
        '#markup' => t('No flash players detected.<br />You need to install !flowplayer or !jwplayer.', array('!flowplayer' => l(t('Flowplayer API'), 'http://www.drupal.org/project/flowplayer'), '!jwplayer' => l(t('JW Player'), 'http://www.drupal.org/project/jw_player'))),
        '#prefix' => '<div class="admin_flv_player_wrapper" id="flv_player_' . $ext . '">',
        '#suffix' => '</div>',
      );
    }
    // for HTML5
    if (!empty($html5_players)) {
      $form['extensions']['video_extension_' . $ext . '_html5_player'] = array(
        '#type' => 'radios',
        '#title' => t('HTML5 player for @extension', array('@extension' => $ext)),
        '#options' => $html5_players,
        '#markup' => t('Additional HTML5 players module.<br />You can install !videojs.', array('!videojs' => l(t('Video.js'), 'http://drupal.org/project/videojs'))),
        '#default_value' => variable_get('video_extension_' . $ext . '_html5_player', ''),
        '#prefix' => '<div class="admin_html5_player_wrapper" id="html5_player_' . $ext . '">',
        '#suffix' => '</div>',
      );
    }
  }
  return system_settings_form($form);
}

remove "" in default value form

 '#default_value' => variable_get('video_extension_' . $ext . '_flash_player'),
'#default_value' => variable_get('video_extension_' . $ext . '_html5_player'),

save and login admin admin/config/media/video/players select type and save

Status: Fixed » Closed (fixed)

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