I'm not sure whats going on here. I watched the video tutorial at http://fleetthought.com/using-flashvideo-user-contributed-video-drupal-t... and then installed the flash video module. I am not using private files. I thought I had everything set up correctly, but the conversion was failing. I checked the ffmpeg_data table and it looked like module was trying to pick the videos from /sites/default/files even though I had specified an upload directory. So I thought I'd see if I could get it to work if I didn't provide an upload directory path, so I removed the path info from the CCK upload field in the content type. I also removed the directory name from the Video Import Directory.
Then I attempted to create a piece of content with the video upload. I was able to fill out the form and upload the .wmv file. When I submitted the form, I saw a whole bunch of error messages beginning with:
warning: unlink(sites/default/files//finished_video/Player.swf) [function.unlink]: Permission denied in /var/www/vhosts/mysite.com/httpdocs/includes/file.inc on line 435.
The removal of the original filesites/default/files//finished_video/Player.swf has failed.
warning: filesize() [function.filesize]: stat failed for /var/www/vhosts/mysite.com/httpdocs/sitesdefaultfilesproduct_reviewsnew-star-trek-action-figures1.jpg in /var/www/vhosts/mysite.com/httpdocs/sites/all/modules/flashvideo/flashvideo.module on line 1374.
warning: filesize() [function.filesize]: stat failed for /var/www/vhosts/mysite.com/httpdocs/sitesdefaultfilesmember-audio3BachGavotteShort.mp3 in /var/www/vhosts/mysite.com/httpdocs/sites/all/modules/flashvideo/flashvideo.module on line 1374.
warning: filesize() [function.filesize]: stat failed for /var/www/vhosts/mysite.com/httpdocs/sitesdefaultfileslocation_reviewsHRC_B_small_0.gif in /var/www/vhosts/mysite.com/httpdocs/sites/all/modules/flashvideo/flashvideo.module on line 1374.
And ending with:
For security reasons, your upload has been renamed tositesdefaultfilescivicrmtemplates_cen_USen_US%%9191991975F02%%Menu.tpl_.php.
For security reasons, your upload has been renamed tositesdefaultfilescivicrmtemplates_cen_USen_US%%9393A93AD3FA7%%recentlyViewed.tpl_.php.
For security reasons, your upload has been renamed tositesdefaultfilescivicrmtemplates_cen_USen_US%%93938938D45F8%%Subject.tpl_.php.
For security reasons, your upload has been renamed tositesdefaultfilescivicrmtemplates_cen_USen_US%%3939739732F46%%jquery.tpl_.php.
Member Video test with fingers crossed has been created.
Every file in my /sites/default/files directory has been renamed and pulled out of their sub-folders and into the root of /sites/default/files.
Any ideas what is causing this? Let me know if you need any more information. Thanks -Nancy
Comments
Comment #1
attheshow commentedThe first two error messages sound like they have something to do with server permissions. In my experience, the PHP unlink() and filesize() functions should be able to run without causing an error on the server.
Comment #2
travist commentedWow.... this is a crazy error. From looking at your paths, it seems that the "/" has been removed from them. For example the "sitesdefaultfiles" should read "sites/default/files".... I am not sure what in the world might be causing this, but it is something definitely worth looking into.
Mark, have you been able to reproduce this error? I just tried on my server and it is working just fine...
Nancy, you might need to give Mark and I some more detail as to your configuration within the FlashVideo settings. I would like to at least see some screen shots of your node type configuration as well as the Universal Settings.
Thanks,
Travis.
Comment #3
attheshow commentedTravis,
No, I haven't been able to reproduce this.
-Mark
Comment #4
attheshow commentedI just marked the issue #534074: Generating recursive css, but no flv? as a duplicate of this issue. Looks like we have one other user with this issue.
Comment #5
mikerz commentedI want to point out that Flashvideo was causing this for me. I've disabled it, and everything works fine.
Something about the conversion process really screws with my drupal user files
Comment #6
mikerz commentedany ideas on this?
I don't have FFMPEG-PHP installed, could that be the issue? (I tried unsuccessfully to get it installed on my shared server).
I used FFMPEG Wrapper successfully so my FFMPEG installation is good, and I am successfully running the Audio module so my files directory/upload mechanism works.
So far, Flashvideo has not been able to create a FLV for me (I searched around to see if it dumped a flv in some random location, but no). There seems to be missing "ffmpeg_movie" variable which triggers the error.
Comment #7
attheshow commentedNo, FFMPEG-PHP isn't required for the module to function. Did you happen to go through the video tutorial mentioned at the top of this issue? In that I walk through running some test commands via the command line to make sure that your FFMPEG commands will work successfully.
Comment #8
mikerz commentedI finally got around to going the CCK route last night, and the tutorial worked perfectly for conversion! Thank you for that!
(It's not working at all yet, but it generated a flv correctly so I'll figure the rest out eventually :p )