Closed (fixed)
Project:
Video
Version:
6.x-4.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
28 May 2010 at 20:47 UTC
Updated:
6 Oct 2010 at 04:30 UTC
Whenever I try to set the dimensions either inside the CCK field for the video setup or when creating new nodes it will error out with: An illegal choice has been detected. Please contact the site administrator.
I've tried both 4.x versions of the module and a default theme. I've tried matching the dimension settings to what I uploaded as well and still gave this error.
Comments
Comment #1
iLLin commentedI have seen this from time to time, if you can reproduce it consistently can you troubleshoot it too? I cannot reproduce that error and when I have seen it, it goes away. I think its a problem with the widget form settings.
Comment #2
DaveReed commentedFrom what I can tell this seems like a CCK issue, I will try updating cck and post my findings.
Comment #3
dmurray commentedSame issue here with both the dev and beta release.
Comment #4
negentropy commentedI am experiencing the same problem. From searching for information, I've noticed that this generic error messages seems to affect all kinds of modules but often goes unfixed and is often difficult to replicate.
I noticed something very bizarre this morning. Fed up, I switched from my web development optimized installation of Firefox (version 3.6.3, loaded with add-ons) and tried to administrate through my vanilla installation of Opera (version 10.53) and received no error. The error persists with Firefox, but Opera seems immune (I have not tried other browsers). This seems very odd to me, but it's quite clear that at least one of my many add-ons is breaking the form or its submission (although I haven't tried a vanilla installation of Firefox, nor have I gone through the exercise of identifying which add-ons cause the problem, nor do I plan to do either).
If you're having this problem, try switching to a different browser, Opera 10.53 worked for me, and see if you can get past the issue. I hope it works for you. That said, I think that “don't use Firefox or its many add-ons” is a really unsatisfying fix to this issue, especially because it's one thing for me to know to switch browsers but quite another for visitors to a site to do this, not to mention the fact that this issue has been resolved in other modules.
Comment #5
hypertext200Fixed in latest build.
Comment #6
iLLin commentedLet me know if this issue still persists as I reverted some stuff back.
Comment #7
dmurray commentedYes looks like the error is gone but seems to be some new ones now when adding a video
Comment #8
dmurray commentedAfter these messages all that is displayed on the node is
But it's never processed.
Comment #9
dmurray commentedThis error is displayed if you select convert on save
Comment #10
dmurray commentedThis error is displayed if using ffmpeg wrapper opposed to ffmpeg
Comment #11
iLLin commentedYea I was just looking at that, You are using 2.x-dev right?
Comment #12
iLLin commentedhttp://drupal.org/cvs?commit=374258
This commit shortens the value of the watchdog 'type'. I don't have postgres installed but I think this error is when you try to add a value that exceeds the length of 16... duh right? Well I shortened it, let me know if that fixes your query error problem. MySQL just truncates the value to the length of 16... bad coding on my part.
The divide by zero is another issue. I am thinking that ffmpeg was not able to extract the dimensions from the video you tried to upload. That being said, I need a fallback to prevent it from continuing and throwing errors. That function is kinda wicked... It basically finds out the aspect ratio and the WxH your converting too, and then pads the sides and top accordingly with black bars to maintain the video's aspect ratio to prevent cropping and stretching. It took me a while to get that right so I don't doubt if its wrong =), too much math... Anyway it doesn't have any start dimensions so... how do we handle that? Just check for dimensions and if none return? But it needs some dimensions which I don't understand as those dimensions should be pulled from the dropdown when uploading... Hmmm. Try to grab CVS from Head and see if those errors are gone as I had to revert files earlier today and I think I fixed this issue when doing that... Maybe? hahahah, let me know.
Comment #13
dmurray commenteddownloaded the head from the cvs
---------------------
I enabled:
Video
Video ffmpeg Helper
Upload Video
---------------------
Went to:
/node/add/video/upload
---------------------
This is where I get stuck because I choose a file to upload then hit save, then it bounces back to the node edit page and says that a resolution must be selected bu there is no options in the dropdown to select so I can't go any further.
I downloaded the latest dev version as well and tried to create a node but got a different error
Comment #14
iLLin commentedGo to the admin video settings page.
admin/settings/video/metadata
This is where your dropdown options are created. If the textarea that is there is empty, just press restore to defaults to make sure its reset to the default resolutions. IF there is options there, tell me what they are... just seems weird there is no options in the dropdown.
Comment #15
iLLin commentedAlso I did a search for "video_upload_admin_settings" and could not find that text anywhere. What module is that from?
Comment #16
dmurray commentedOk so this is with the latest cvs version.
(theres no menu entry for /admin/settings/video/metadata)
I created a resolution (400x640) and now it shows up in the drop down. I selected a video and saved the node edit for but now these errors appear.
Comment #17
dmurray commentedHeres the info for the "video_upload_admin_settings"
Comment #18
iLLin commentedI don't know what module this is, but this is not 4.x-dev. There is no table video. There is a menu entry for metadata. Not sure what happend with your install?
Comment #19
dmurray commentedWeird, I downloaded the and reinstalled the latest dev version on a new install and the menu entry is there now but once again I'm getting the message:
Comment #20
iLLin commentedI just committed some trimming functions around the options. Is there a dimensions select dropdown? That error happens when the form build doesn't not match the form that is submitted. It's like the options are not holding or are changing between form build and form submit.
Comment #21
dmurray commentedYeah there is are dimensions in the drop down. There's 28 of them in there.
Comment #22
roneill commentedUsing: 6.x-4.x-dev 2010-Jun-02
========================
Dimension for player: drop down works, but not if you edit the list through Home › Administer › Site configuration › Video > Metadata.
If you add a dimension to the list it will then only let you select the last entry in the list. Otherwise it will display the 'An illegal choice has been detected. Please contact the site administrator' Error. Must be something to do with the way the array is serialized when edited?
Also. Resolution seems to be completely ignored now. A couple of days ago if you selected e.g. 1280x720 (Matches resolution) it would encode to that size. Now it just seems to do one size only?
Be great to get these issues cleared up. Thanks again for such an excellent module. Will to continue to test the dev.
Comment #23
iLLin commentedFixed the width and height issues.
http://drupal.org/cvs?commit=374608
I can't duplicate this error you are getting. Can you copy and paste your select options on the metadata page for me.
Comment #24
iLLin commentedComment #25
iLLin commentedComment #26
dmurray commentedI can confirm that this issue (WxH) has been fixed with video 6.x-4.x-dev from June 2, 2010 - 21:20
Comment #27
roneill commentedUsing 6.x-4.x-dev 2010-Jun-03
=======================
As stated above WxH issues are fixed. Also WxH dimensions added via the metadata page are NOT producing the 'An illegal choice has been detected. Please contact the site administrator' error anymore. All seems to be behaving as expected :-) Thank you.
Comment #28
iLLin commentedComment #30
maddy121 commentedI have started having the same problem. The video default selector drop down menu in cck is not showing any selection values. I'm using 6.x-4.1-rc6.
Comment #31
hypertext200Follow this http://drupal.org/node/848294#comment-3184978