No errors but video still doesn't get uploaded to youtube
kuky - April 26, 2009 - 16:34
| Project: | Video Upload |
| Version: | 6.x-1.2 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | critical |
| Assigned: | kuky |
| Status: | active |
Description
I installed the Video Upload module, the zend framework, zend library and every other module/library/... needed.
I also put the path into php.ini (although it doesn't find openssl.so). I also installed the poormanscron, but it doesn't show any errors in the watchdog. The files are uploaded on the local server, but they don't get uploaded on YouTube when the cron is started (manually or automatically).
Does anyone have any idea why this is happening?
Thank you!
Kuky

#1
Few days ago, I run into the situation like you..... http://drupal.org/node/403420 .......After the following procedure, I can upload successfully.
1) upgrade to 6.x-1.x-dev
2) the WYSIWYG Editor in the video content type must be turned off
3) check the configuration of CCK video filed very very very carefully...never skip any field with red *.... : )
BTW, try to upload a video directly in the Youtube, then you should find an orphaned video at Administer » Content management » Manage Video Uploads, and that means the connection between Drupal and Youtube is set up correctly.
#2
@happydrupal
I do see the orphaned video.. But the videos I upload through my test site in localhost still doesn't get uploaded. I do NOT use any WYSIWYG editor.
What do you mean "check the video field very carefully..."?
#3
@sainzu
Do read and check every part in the configuration of CCK video filed very very carefully!!
Last time, I just forget to type something in the "Default keywords", and of course, did'nt work.........^^|||
BTW, I'm not sure video upload works under Localhost? Anyway, hope you find your way out.
#4
Happydupal.. thanks.. I figured out what you were talking about. I was using the previous version of the module when I read your comment and so couldn't find the "Default keywords" section.
#5
getting a different error now - back to the searching...
#6
I'm running this off of my localhost and having the same issue. Video uploads to local and just says "processing". I am able to see an orphaned video that I upload directly through YouTube.
I don't see "Default Keywords" anywhere.
Any suggestions/help?
#7
In video_upload_widget.inc is see a bunch of options (auto-delete, width, height, auto-start).
Where can I find these options? I can't navigate to them at all.
#8
After more research, its never hitting video_upload_widget_widget_settings_form() to show the right form fields.
#9
Click on the Manage fields tab then click on the configure of your video field when you editing your content type, you'll find the default keyword in the form. Check the attachment "content_type.jpg" of the first comment @ #478706: Where do I enter default keywords?
or you can find it in the follwoing URL
/admin/content/node-type/{machine id of your video content type}/fields/{machine id of your video field}Also, don't forget to fill in those fields with red asterisk in the same form. Check the attachment "content_type_default.jpg" of the second comment @ #478706: Where do I enter default keywords?
#10
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...
#11
@happydrupal
I don't see any red stars indicating required fields when I go to Content Types > Video (name of my content type) > Manage Fields
I turned off FCK for that node/content type, however CRON seems to not even run the code which uploads the videos (I tested this with a die('something here'); statement in the function that uploads videos)
I am testing on localhost, but I have also turned on any php / apache extensions that might be required, so I'm confused as to why this isn't working.
#12
when using version video_upload-6.x-1.x-dev the default keyword section is on the video settings page...
on my site all these fields are appearing. What versions of all the modules (including CCK) do you use, then we can compare...?
(I'll be back on wednesday)
#13
Video Upload - 6.x-1.2
CCK - 6.x-2.2
Drupal - 6.12
UPDATE:
I have used Watchdog to debug this (pretty extensively):
I'll list the watchdog message: (I noted file / line number just to test if the cron process was calling each function that should be called - I then have some info in pertinent parts)
Starting @ hook_cron in video_upload:
Begin Video Upload CRON - 2009-05-29 :: 15-02-31-000000function _video_upload_verify_all - admin.inc line 310
function _video_upload_delete_rejected_videos - admin.inc line 449
function _video_upload_delete_rejected_videos - admin.inc - line 391
function _video_upload_upload_all - admin.inc line 283
function _video_upload_upload_all - admin.inc line 288 - field: field_video (I had this one output my video field)
function _video_upload_upload_all - admin.inc line 296 - SQL: SELECT nid FROM {content_type_video} WHERE field_video_status = 3
function _video_upload_upload_all - admin.inc line 298 - NID of field: (THIS IS NULL!)
End Video Upload CRON - 2009-05-29 :: 15-02-34-000000
SO -This is searching for video fields where status = 3 (this is the constant VIDEO_UPLOAD_STATUS_UPLOAD_PENDING)
HOWEVER, when I create content with the video field and upload the video, the status automatically gets set to 1 (the constant VIDEO_UPLOAD_STATUS_OK). This is incorrect, as while my video is uploaded to my server just fine, it's not uploaded to Youtube! It should be set to VIDEO_UPLOAD_STATUS_UPLOAD_PENDING.
It appears that there there might be a need need for better separation in the constants / coding logic to better describe the video status' - i.e. uploading to your server vs. uploading to the provider (Youtube) (Or hopefully that's taken care of and there's something simple causing this issue)
I'm still a bit noobish at custom modules with this extent of functionality - Next step as far as I can tell is to change the default value of an uploaded (to the server) video so this SQL query correctly grabs the right file. However, I'm not sure where to change this just yet - I think some of the code here is for the still unused browser upload method.
#14
Perhaps this is the offending function? :
It appears that the default settings for that value is "3", however in implementation, the video status always gets set to "1"
<?php/**
* Implementation of hook_field().
*/
function video_upload_field($op, $node, $field, &$items, $teaser, $page) {
// Preserver original items.
$original_items = $items;
$filefield = filefield_field($op, $node, $field, $items, $teaser, $page);
switch ($op) {
case 'delete':
video_upload_delete($items, $field);
return $filefield;
case 'presave':
case 'update':
// Set status to permanent.
foreach ($items as $delta => $file) {
$file = (object) $file;
file_set_status($file, FILE_STATUS_PERMANENT);
}
// Fall through is intentional here.
case 'load':
// Since the files table has a status field, the filefield module is
// overwriting the video's status. Reset that here.
// @fixme The 'status' field should be renamed so it doesn't conflict
// with filefield.
foreach ($original_items as $delta => $item) {
if (isset($filefield[$field['field_name']][$delta])) {
$filefield[$field['field_name']][$delta]['status'] = $original_items[$delta]['status'];
}
$items[$delta]['status'] = $original_items[$delta]['status'];
}
return $filefield;
default:
return $filefield;
}
}
?>
#15
As a hack, I changed the database so the status was 3 to get it to run. Now I have the no default keyword error.
However, I have yet to find an admin area where I can enter a default keyword for the video.
#16
nikefido, the problems you describe above should be fixed in the latest 6.x dev release. A new stable release should be available soon.
#17
I'm having the same issues. Using the latest drupal, filefield, video_upload.
The settings page when adding the CCK field is not correct or not getting called: video_upload_widget_widget_settings_form(). Its just calling the generic filefield settings.
When uploading a video, it only saves locally. I can upload through YouTube and see the orphaned video.
#18
AWESOME. The new dev release fixes the settings page (so you can enter the default keywords).
The file still saves local, then when running cron I get the following error:
Class 'Zend_Gdata_YouTube' not found in /****/***/****/drupalcommunity.local/sites/all/modules/community/video_upload/providers/youtube/zend_gdata.inc on line 114#19
My fault.
IT WORKS. Video is uploaded after running cron. I'm so happy.
Just one question. I thought drupal 6 was supposed to upload directly to youtube, not saving it locally first (mine is saving it locally and uploaded during cron).
#20
It's actually the opposite: 5.x only implements the browser method, while 6.x only implements the direct upload method (the terminology is counterintuitive—Direct upload method actually means the file will hit your drupal server first).
Long term, I hope to support both methods, although I'm less and less inclined to recommend the browser method for anybody who is serious about video (not retaining the original videos that users submit would effectively lock a site into the 3rd-party provider).
#21
@mhcueball2, @jhedstrom and @nikefido: are you also using the latest ZendGdata-1.8.1 and poormanscron-6.x-1.0? Or doing the cron job in a different way?
I hope to fix this this week, so i'm very curious! thanks!
#22
jhedstrom - I agree about storing the videos. Youtube API seems to down more than not. However, the option would be nice for those with shared hosting and not a lot of space...but you're right...I don't think this will be a popular option.
NicoDruif - I'm actually using ZendGData 1.8.2 and running cron manually while testing. Make sure you have the latest FileField module and the Video Upload DEV release.
#23
@mhcueball2: okay, thanks for version info, what PHP version are you using? I'll try the video upload module with a clean drupal installation this friday again, i'll let you know the results!
#24
I have an issue other users of your module also posted on Drupal.org. Videos are not uploaded to youtube, but orphaned videos are visible in the "Home › Administer › Content managementManage Video Uploads" section.
I am using CentOS 5.3, PHP 5.2.6, ZendGdata 1.8.2, cron is working fine, the youtube account itself works.
Filefield 6.x-3.0, CCK 6.x-2.2, video_upload 6.x-1.2
The module is configured correctly as far as I know.
I don't get any watchdog errors or httpd errors.
I don't know where to go to solve this.
I also posted this message on Drupal.org.
#25
i'll be back on saturday with my testing results... I hope positive ones...
#26
Using:
- drupal-6.12
- filefield-6.x-3.0
- video_upload-6.x-1.x-dev with ZendGdata-1.8.2
on:
- PHP 5.2.6
and no poormanscron...
It works! Video is being uploaded to youtube and everything works as it should! Yeeej!
#27
@ NicoDruif
Does that mean that the poormanscron module may cause some trouble in using Video Upload module??
#28
@happydrupal
I am not sure: or it is the PHP version or it is the poormanscron indeed...?
#29
Hi,
i have installed latest dev of videoupload-module on an ubuntu8.04 Server with PHP 5.2.6 and i am running the crons by hand at the moment, cause its just a devel-version of the site.
I can create videos-upload-fields with all setting (default-keywords etc.) but the videos are not uploaded to youtube. When i upload directly throug youTube the videos are shown on the "Manage-Video-Uploads"-Page.
Maybe someone of the guys who suceeded in this mission have an idea ?
Edit: Found this Log: Video Upload: error BC <?xml version='1.0' encoding='UTF-8'?>yt:validation
requiredmedia:group/media:keywords/text() 0 while attempting to upload a video.Maybe this can help.
#30
@chaosprinz,
manage your video_upload field in your content type admin page for the particular content type you are using. make sure that all fields with asterisks are filled in, including the 'keywords' field. make sure there are no spaces in between the keywords. You might have done this already, but wanted to check!
#31
I checked it about 50 times and cant find anything. I post screenshots of my configuration, maybe someone sees a failure, for which i am too blind.