Hello Drupal Viddler Developers,

I took over for another developer on a project that used the Viddler Module for Drupal, but I'm running into a lot of problems.

Specifically, when I have a Viddler field added to a CCK form, and I check both "Record with Webcam" and "Upload a video" in the field settings, I run into quite a few problems. What I'm trying to do is get the user to either use their webcam to record a video, or, instead, upload one if they don't have a webcam.

But what happens when I submit the form is I get back an error from Viddler saying "Enter an id of a Viddler video field is required." I don't know why it's asking for the ID, as I do not have that setting checked for the field.

I've updated to the latest version of the Viddler module, and everything else works great. The previous developer can't be reached either, so I'm left with something where I'm not sure what went wrong.

Any help would be greatly appreciated. I have url that you guys can test if need be, but if I could I'd rather get advice without doing so, or at the very least email the URL rather than post it here for confidentiality sake.

Let me know,

Scott

Comments

jeremyheslop’s picture

Assigned: Unassigned » jeremyheslop

Scott,

The "Enter an id of a Viddler video field is required." typically means you've required the viddler cck field when adding new content. If no uploads or webcam recording occurs then no id is populated in a hidden form field. If you make the video optional then you shouldn't get this error. You can check to see if this field is being populated by showing the viddler id option.

Let me know how it goes.

Jeremy

scouttyg’s picture

You were ridiculously fast in your follow up! Many props to you!

Looks like making the video optional rather than required will solve it, but we want to require one or the other (webcam submission or video upload), but not both. It seems requiring a webcam video works fine, but the minute we add the New Upload/Upload a Video option to the field required seems to make it up. Any thoughts?

jeremyheslop’s picture

Scott,

If the user uploads a video or records a webcam video the video id field will populate. So technically turning the required back on would work as long as one of the two (webcam or upload) are performed. Are you seeing that this is not the case? Is it that the required VIddler video id text is misleading and it should say webcam/upload?

Jeremy

scouttyg’s picture

Hey Jeremy,

I sent you a private message with the form in question, let me know what you think. Don't worry about any test submissions to the form or anything like that, I'll clean it up once you've checked it out. If you can figure it out, send me a message back, and I'll update this issue with how it was resolved (for those who might curse at me from Google who are having this same problem and Google searching only to find this )

scouttyg’s picture

Hey everyone, just wanted to update what the issue was.

The problem was with my php.ini file. Specifically, these settings:

upload_max_filesize
post_max_size

People were uploading videos that were much larger than the max_filesize allowed, so it would fail out. Changing these to higher values fixed the problem entirely.

Thanks to Jeremy for working through this with me.

jeremyheslop’s picture

Status: Active » Closed (fixed)

Glad you figured it out. I need to add all the pre-reqs into the README some time. Anyone want to help with development?