Closed (fixed)
Project:
Video
Version:
7.x-2.7
Component:
Amazon S3
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2012 at 10:30 UTC
Updated:
28 Aug 2013 at 20:12 UTC
Jump to comment: Most recent file
Comments
Comment #1
justafishyou need to use the latest dev versions of this module and awssdk http://drupal.org/node/1371448
Comment #2
makalov commentedI have the same issue. Using the dev version of the module does not help.
Comment #3
justafishWell, it should...
http://drupalcode.org/project/awssdk.git/snapshot/5b03b4f0b3cedafb6c2053...
http://drupalcode.org/project/amazons3.git/snapshot/ce89b3593cd34d3234e6...
Comment #4
makalov commentedbroken link?
Comment #5
justafishnope, both those links work for me
Comment #6
makalov commentedNo luck, getting corrupted content error when clicking on those links. Is there another way to get them?
Comment #7
justafishClick the snapshot link
http://drupalcode.org/project/awssdk.git/shortlog/refs/heads/7.x-5.x
http://drupalcode.org/project/amazons3.git/shortlog/refs/heads/7.x-1.x
Comment #8
makalov commentedI got it. You're right. By using the AmazonS3 dev version rather than beta5 version on http://drupal.org/project/amazons3 this issue goes away. Thanks.
Comment #9
justafishComment #10
asingh8c commentedBut I have installed the latest dev versions for both awssdk and amazons3 and still have the problem .I am attatching a snapshot from my modules page.You can double check.
Comment #11
asingh8c commentedPlease check and help.
Comment #12
asingh8c commentedhi,
I solved this problem by changing the arguments passed to an array instead of string when creating object for Amazons3 in function extractFrames() in file TranscoderAbstractionFactoryZencoder.inc of Video Module.
Following are my code lines (in case if someone needs) of change after line no 97 :
//4 next line added by me
$keyarray= array();
$keyarray[]=$key;
$keyarray[]=$bucket;
$s3 = new AmazonS3($keyarray);
// $s3 = new AmazonS3($key, $secret_key);
So this problem was not at all of amazons3 module, Its of video module.
Thanks.
Comment #13
justafishPlease don't reopen closed issues. Thanks.
Comment #14
rossmerriam commentedComment #15
justafishComment #16
dipen chaudhary commentedHere is a patch for this.
BTW, this will also fix video upload issues, if your video upload never completes.
Comment #17
dipen chaudhary commentedComment #18
dipen chaudhary commentedMessed up the last patch (#16), this one is against 7.x-2.x-dev and is correct.
Comment #19
keith.aumiller commentedThanks for the help in advance,
Similar issue here too. Used Dev versions still encountering this:
awssdk-7.x-5.x-dev.zip
video-7.x-2.x-dev.zip
amazons3-7.x-1.x-dev.zip
Recoverable fatal error: Argument 1 passed to AmazonS3::__construct() must be an array, string given, called in /var/aegir/hostmaster-7.x/sites/all/modules/video/transcoders/TranscoderAbstractionFactoryZencoder.inc on line 98 and defined in AmazonS3->__construct() (line 428 of /var/aegir/hostmaster-7.x/sites/all/libraries/awssdk/services/s3.class.php).
The website encountered an unexpected error. Please try again later.
ReadyState: undefined
Comment #20
dipen chaudhary commentedKeith,
Did you try the patch in #18, it should sort that out, I believe.
Comment #21
Jorrit commentedComment #22
Jorrit commentedFixed in 7.x-2.x-dev. You can try the fix using tomorrows release. I appreciate it if you can test the fix before the next release.
Comment #23
sbilde commented@Jorrit
I use following versions:
AWSSDK 7.x-5.2
Video 7.x-2.4+40-dev
AmazonS37.x-1.0-beta6+3-dev
I still need to apply this patch, in #18, by hand in TranscoderAbstractionFactoryZencoder.inc before it stop making errors.
Comment #24
Jorrit commentedIt is not tomorrow yet. Wait until the -dev release is rebuilt. My comment was made at February 26, 2012, 3:46pm, the -dev build is currently from February 26, 2012 - 1:40pm.
Comment #25
sbilde commented@Jorrit.. - sorry, my bad.
I will be glad to test this for you. Is there also gonne be applied a patch for line 410 in same file. It's the same issue regarding string->array!?
Comment #26
JoshuaHameo commentedI have this same issue, and I have been trying to figure out how to install the patch. Is there more instructions on this issue?
Comment #27
Jorrit commentedYou should just install the latest 7.x-2.x-dev version of the module.
Comment #29
hatuhay commentedRecoverable fatal error: Argument 1 passed to AmazonS3::__construct() must be an array, string given, called in /home/xxxx/public_html/sites/all/modules/AmazonS3/amazons3.module on line 66 and defined en AmazonS3->__construct() (línea 438 de /home/xxxx/public_html/sites/all/libraries/awssdk/services/s3.class.php).
When saving Bucket Name in Amazon3s configuration /admin/config/media/amazons3.
Error also with latest dev version.
Comment #30
Jorrit commentedWhat version of the AWS SDK module are you using? What version of de SDK is installed?
Comment #31
hatuhay commentedAWS SDK for PHP 7.x-5.4
SDK downloaded latest yesterday from http://aws.amazon.com/sdkforphp
Let me know how I can help
Comment #32
Jorrit commentedAre you sure that you are using version 7.x-2.7 of the video module and the latest version of the Amazon S3 module?
Comment #33
hatuhay commentedInitially yes, at this point latest dev versions...
Comment #34
Jorrit commentedI don't understand why you are still getting these errors. From the error text I understand that the error is actually in the Amazon S3 module: http://drupal.org/project/amazons3. I suggest you ask for support there.
Comment #35
hatuhay commentedIssue posted on Amazon S3:
http://drupal.org/node/1794800
Thanks
Comment #36
vparfaniuc commentedInstalled the latest DEV version of the module and it fixed the issue. Thanks