FileField updrade fails the Video Upload module
wjpeters - March 16, 2009 - 12:03
| Project: | Video Upload |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Description
After upgrading the FileField module to the beta1 version, the Video Upload modules stops working.
Any suggestions on how to track down what's wrong?

#1
Are there any errors in watchdog?
#2
Ya, I'm getting the same issue.
Here's the snippet from the Apache Logs.
PHP Fatal error: Call to undefined function filefield_default_value() in htdocs/sites/all/modules/video_upload/video_upload.module on line 365
from a quick browse in the filefield code, I couldn't find the replacement. I've posted a message on this imagefield issue, to try and get an answer.
#3
Here's the patch where it was removed, it might provide some guidance.
http://drupal.org/files/issues/filefield_imagefield_untangle_1.patch
#4
The correct issue would be #397578: Uncouple ImageField from FileField Custom Hooks. Needed to make some big changes to filefield to get it stabilized for an official release.
Edit: Corrected my typo of Need -> Needed
#5
My video_upload module was working last week, and now I'm getting this error as well. What happened? I was using the most current FileField, and there have been no updates to either module.
We're launching soon and video uploading was the core function of the site. Please any help would be appreciated.
#6
this is the error I'm receiving:
Fatal error: Call to undefined function filefield_default_value() in path/to/modules/video_upload/video_upload.module on line 365
with the following code:
function video_upload_default_value(&$form, &$form_state, $field, $delta) {
$items = filefield_default_value($form, $form_state, $field, $delta); // THIS IS LINE 365.
module_load_include('inc', 'video_upload', 'video_upload_widget');
foreach ($items as $delta => $item) {
$items[$delta] = array_merge($item, video_upload_widget_widget_value(array(), FALSE));
}
return $items;
}
#7
oh wow. Thank you j0rd, rolling back to this is what just pulled me out of the fire. Thanks again.
#8
For all people getting these errors after upgrading, I would recommend rolling back to the earlier version of filefield. Once the module has stabalized, I'll roll a new version of video upload that matches the stable api.
#9
jhedstrom, please don't recommend "rolling back" to a previous version of FileField. This is going to cause unexpected upgrade troubles when a user upgrades to beta3, runs update.php, then downgrads to an alpha version. Since the updates have already been run once, they won't be run again when the stable version comes out. Now the user has a database in an unexpected state.
I apologize for the drastic changes to FileField, but there was no way I could release the module in its previous state. I'm working on getting out a final release in the next 2 weeks, there aren't going to be any more API changes between now and then.
#10
@quicksketch, that's an excellent point regarding the rolling back; db updates slipped my mind when I posted this faulty advice.
@all people currently having this problem, I'll try to get a new version out as quickly as possible. Sorry for the delays.
#11
Thanks jhedstrom!
#12
If anyone did downgrade (like i did) and lost imagefield "edit node" thumbs in that process... you can download my helper module to regenerate them.
http://drupal.org/node/336264#comment-1379868
#13
Hi guys, I am having the same problem. So which version of ImageField should we use in order for this to work?
Thanks
Andrea
#14
I've just updated the dev branch to match the updated FileField API. I'll release a new stable version once I test this a bit more.
#15
filefield 6.x-3.0-rc1
video_upload 6.x-1.x-dev
When I add node can see a white screen.
And have all the video settings.
#16
@scandi,
Sorry, I should have mentioned that this will only be available after the automated packaging script runs, which happens twice a day for dev releases. To try the new code immediately, you can pull the module out of CVS.
http://drupal.org/node/251322/cvs-instructions
#17
Files more 9Мб are orphaned.
#18
Just posting a reply and hope that this forum will notify me automatically when it is updated.
#19
I'm getting the same issue with "filefield" 6.x-3.0-rc1 and looking forward to the update.
#20
Hello,
I'm update the filefield module because I was needed default images on my site and after that when I submit a node with video_upload field I'v got an error:
Referencing to the file used the Videofile field is not allowed.
I check ftp and see, that file is uploaded on the server, but on youtube is not.
Also I decide to change width and height of thumbnail image and didn't find how to do it.
So my question: Is this is the same problem with filefield changes or this is something different? Thanks.
#21
I can not see the video node page before when I click the create node. After upgrade filefield to the fresh new 6.x-3.0 version, I can go to the new video node page with the video upload field.
But the video didn't upload successful after I click upload with warning message: "Video status is unknown. This most likely means it has not yet been processed." However, this node can be saved as a new node without video. Any clue??
#22
While click on the upload, I can see the rotating timer. But nothing happen after the rotating timer had gone. Any clue?
#23
While click on the upload, I can see the rotating timer. But nothing happen after the rotating timer had gone. The video size is under the upload limit. Any clue?
#24
In Administer » Content management » Manage Video Uploads, I can see two videos.
The video directly uploaded from Youtube with link to Youtube, but it surely an orphaned Node.
The other video try to uploading from Drupal whick didn't upload successfully has the link of node and field, but there's no check box and showing "Video is being processed".
So, the connection with Youtube should be OK, but can not upload from Drupal. What should I do now??
Thanks in advance.
#25
Happydrupal and others still having issues: can you verify whether you're using the latest dev version or 6.x-1.2? The current dev version should work with the latest filefield.
#26
jhedstrom, Thanks
my current module are
FileField 6.x-3.0
Video Upload Field 6.x-1.2
Do you suggest that upgrade Video Upload to 6.x-1.x-dev first??? Or I should keep waiting the new but recommended for 6.x module???
Thanks in advance.
#27
I installed video_upload 6.x-dev, file_field 6.3, try to upload video and again the same error as i writen before:
Referencing to the file used in the Myvideofile field is not allowed.
File is uploaded to the server successfuly, but I look on page http://mysite/admin/content/video-upload and there is no file in the queue on youtube.
#28
my current module are
FileField 6.x-3.0
Video Upload Field 6.x-1.x-dev ...... just upgraded from 6.x-1.2
Still not work.
Video Node had been created wiht the message Video is being processed.. Video file had been uploaded to Drupal in the files directory.
And an video item showing Video is being processed. status under Home » Administer » Content management » Manage Video Uploads
After run the cron, a Video upload Log in Home » Administer » Reports » Recent log entries showing error message with XML code(Please see attached)
And of course, there's nothing in the Uploaded Videos list in Youtube.
It looks like there's problem during uploading to Youtube from the error message with XML code.
Any clue???
#29
With more research in the previous issues, this time I did turn off the WHISWIG FCKeditor in creating the video node by set the exclude path in the FCKeditor global profile. So there're no extra tag should be passed during the upload.
However still not work......................
Video Node had been created wiht the message Video is being processed.. Video file had been uploaded to Drupal in the files directory.
And an video item showing Video is being processed. status under Home » Administer » Content management » Manage Video Uploads
After the cron job, a Video upload Log in Home » Administer » Reports » Recent log entries showing error message with XML code:
Video Upload: error BC <?xml version='1.0' encoding='UTF-8'?><errors><error><domain>yt:validation</domain><code>required</code><location type='xpath'>media:group/media:keywords/text()</location></error></errors> 0 while attempting to upload a video.I think this shouldn't related to the tag problem..................., then?
Hope there will be the solution or answer soon!!!
Thanks in advance.
#30
Happydrupal,
It looks like your issue is unrelated to the FileField upgrade, but more similar to #375294: Video Processing but different error. Could you post your video upload field settings in that issue?
#31
can do
#32
My problem solved after I typed some keywords in the default keywords in the video filed setting. Gee............
Video is successful uploaded!!
Thanks anyway!!
#33
Wired, I saw this message only after I tried to update the title/body of the successful uploaded video node.
But I can change the Video Title & Description of the successful uploaded video from Youtube, it isn't sync back to the title/body of the original video node.
It seems that there's no sync between the Video node and Video in the Youtube. Anybody got the same issue??
#34
I checked my youtube account, but video wasn't uploaded there, only in files directory, thanks for trying to help, happydrupal.
#35
Hi there,
Thanks for developing this great module! For a big new community website I want to implement the video upload module. But... unfortunately it's not working. I'm curious which version combinations people are using that do work...
I tried:
- drupal-6.12
- filefield-6.x-3.0
- video_upload-6.x-1.x-dev with ZendGdata-1.8.1
- poormanscron-6.x-1.0
I disabled all other modules when testing with the video upload module, and filled in all necessary fiels in the settings page.
Result for now is that i can make a node with a video upload field, and i can upload a video to my own server, but... i cannot open the 'Manage Video Uploads' page. That gives a white screen. After some testing I found out that this is probably because the whole (poormans) cron job functionality isnt working when i have the video upload module enabled... even when i do a cron job manually from /admin/reports/status/run-cron for example, i get a white screen. In the logs it says that the cron job what stopped because it took too long. After disabling the video upload, cron does work again.
And because the cron job cant run, the video doesnt get uploaded to youtube ofcourse...
I also noticed that I couldnt change the file size limit, it keeps saying 2 MB.
Anyone encountered these problems? I am curious what version combinations are working.
I also posted this question here (http://drupal.org/node/475518), because I wasnt sure if this should be seen as a new issue or not...
#36
I have this same exact problem.
Here's the error i get in the watchdog:
<?phpVideo Upload: error BC <xml version='1.0' encoding='UTF-8'><errors><error><domain>yt:validation</domain><code>required</code><location type='xpath'>media:group/media:keywords/text()</location></error></errors> 0 while attempting to upload a video.
?>
One question: does this mean that it wants the videos to be categorized using youtube's taxonomy? I know when I upload i video through my account i need to add taxonomy to it. Is there a way to do that? can i just hardcode it in for now to test?
thanks!
#37
I don't know if this is new, but keywords are also required for YT to process the video. I noticed the category has "entertainment" as a fallback, there should probably be a fallback for the keywords value as well. Anyway, the videos seem to be working now.
Side note: I seem to remember there being a place where I could enter in default values for description, tags and category. I can't find that anymore. has that been removed?
#38
Subscribe