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
| Comment | File | Size | Author |
|---|---|---|---|
| #31 | videoupload_sc1.jpg | 286.23 KB | chaosprinz |
| #31 | videoupload_sc2.jpg | 324.15 KB | chaosprinz |
| #31 | videoupload_sc3.jpg | 324.37 KB | chaosprinz |
| #31 | videoupload_sc4.jpg | 275.53 KB | chaosprinz |
Comments
Comment #1
happydrupal commentedFew 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.
Comment #2
sainzu commented@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..."?
Comment #3
happydrupal commented@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.
Comment #4
sainzu commentedHappydupal.. 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.
Comment #5
sean porter commentedgetting a different error now - back to the searching...
Comment #6
hardcoredev commentedI'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?
Comment #7
hardcoredev commentedIn 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.
Comment #8
hardcoredev commentedAfter more research, its never hitting video_upload_widget_widget_settings_form() to show the right form fields.
Comment #9
happydrupal commentedClick 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?
Comment #10
NicoDruif commentedHi 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...
Comment #11
nikefido commented@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.
Comment #12
NicoDruif commentedwhen 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)
Comment #13
nikefido commentedVideo Upload - 6.x-1.2
UPDATE:CCK - 6.x-2.2
Drupal - 6.12
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:
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.
Comment #14
nikefido commentedPerhaps 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"
Comment #15
nikefido commentedAs 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.
Comment #16
jhedstromnikefido, the problems you describe above should be fixed in the latest 6.x dev release. A new stable release should be available soon.
Comment #17
hardcoredev commentedI'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.
Comment #18
hardcoredev commentedAWESOME. 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 114Comment #19
hardcoredev commentedMy 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).
Comment #20
jhedstromIt'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).
Comment #21
NicoDruif commented@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!
Comment #22
hardcoredev commentedjhedstrom - 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.
Comment #23
NicoDruif commented@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!
Comment #24
Oke commentedI 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.
Comment #25
NicoDruif commentedi'll be back on saturday with my testing results... I hope positive ones...
Comment #26
NicoDruif commentedUsing:
- 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!
Comment #27
happydrupal commented@ NicoDruif
Does that mean that the poormanscron module may cause some trouble in using Video Upload module??
Comment #28
NicoDruif commented@happydrupal
I am not sure: or it is the PHP version or it is the poormanscron indeed...?
Comment #29
chaosprinz commentedHi,
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.
Comment #30
sean porter commented@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!
Comment #31
chaosprinz commentedI 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.
Comment #32
chintu_ddu commentedWhen i upload videos they are stored into the files directory.They are not uploaded to the youtube.
After running cron manually they are uploaded to the youtube. Is there any solution to get rid of running the cron manually everytime other than configuring the cron job in the cpanel.
Also when i saw the files directory, the video files were still there even though they were uploaded to the youtube.Actually i don't want to store the files on the server.
Does anyone know the solution?
I am using
Drupal 6.15
filefield 6.x-3.3
video upload 6.x-1.6
Thanks in advance.
Comment #33
bojanz commentedWhen using the direct upload method, cron must be run for the files to be uploaded. No way around this.
You can use the browser upload method ( the files don't hit your server, go straight to youtube), that's 2.x-dev, although I must warn you it's still a bit experimental.
Comment #34
chintu_ddu commentedThanks bojanz for quick reply.
Now I have used browser base upload method.Its working correctly.But the problem is that when i delete the video or change the video it is not deleted from the youtube. When i checked the database entry (status of the video)after deleting the video it was NULL.
Now when cron runs next time it doesn't get the status('delete') which is required to delete the video from you tube.
So it doesn't delete the video.Then i changed the status to "delete" manually and added the video id and then ran the cron job , the video get deleted from the you tube.
I think the problem is with the status update.
Do you have any solution?
Comment #35
bojanz commentedThe video does not get deleted from youtube when you delete the node.
You need to go to "Manage Video Uploads" and delete them from there.
This is intentional.