I did the setting for video module with amazons3,awssdk module to use zencoder.
The moment i gave the output bucket file path for zencoder and save my video content type node, the following error comes up:
Recoverable fatal error: Argument 1 passed to AmazonS3::__construct() must be an array, string given, called in /home/drum/public_html/sites/all/modules/video/transcoders/TranscoderAbstractionFactoryZencoder.inc on line 98 and defined in AmazonS3->__construct() (line 423 of /home/drum/public_html/sites/all/libraries/awssdk/services/s3.class.php).

Please help.

Comments

justafish’s picture

Category: bug » support
Status: Active » Closed (duplicate)

you need to use the latest dev versions of this module and awssdk http://drupal.org/node/1371448

makalov’s picture

Status: Closed (duplicate) » Needs review

I have the same issue. Using the dev version of the module does not help.

makalov’s picture

broken link?

justafish’s picture

nope, both those links work for me

makalov’s picture

No luck, getting corrupted content error when clicking on those links. Is there another way to get them?

makalov’s picture

Status: Needs review » Fixed

I 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.

justafish’s picture

Status: Fixed » Closed (duplicate)
asingh8c’s picture

StatusFileSize
new30.7 KB

But 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.

asingh8c’s picture

Status: Closed (duplicate) » Needs review

Please check and help.

asingh8c’s picture

hi,
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.

justafish’s picture

Status: Needs review » Closed (duplicate)

Please don't reopen closed issues. Thanks.

rossmerriam’s picture

justafish’s picture

Project: AmazonS3 » Video
Status: Closed (duplicate) » Active
dipen chaudhary’s picture

Here is a patch for this.
BTW, this will also fix video upload issues, if your video upload never completes.

dipen chaudhary’s picture

Status: Active » Needs review
dipen chaudhary’s picture

Messed up the last patch (#16), this one is against 7.x-2.x-dev and is correct.

keith.aumiller’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Component: Code » Video Transcoding

Thanks 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

dipen chaudhary’s picture

Keith,

Did you try the patch in #18, it should sort that out, I believe.

Jorrit’s picture

Component: Video Transcoding » Amazon S3
Jorrit’s picture

Status: Needs review » Fixed

Fixed 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.

sbilde’s picture

@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.

Jorrit’s picture

It 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.

sbilde’s picture

@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!?

JoshuaHameo’s picture

I have this same issue, and I have been trying to figure out how to install the patch. Is there more instructions on this issue?

Jorrit’s picture

You should just install the latest 7.x-2.x-dev version of the module.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

hatuhay’s picture

Version: 7.x-2.x-dev » 7.x-2.7

Recoverable 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.

Jorrit’s picture

What version of the AWS SDK module are you using? What version of de SDK is installed?

hatuhay’s picture

AWS SDK for PHP 7.x-5.4
SDK downloaded latest yesterday from http://aws.amazon.com/sdkforphp
Let me know how I can help

Jorrit’s picture

Are you sure that you are using version 7.x-2.7 of the video module and the latest version of the Amazon S3 module?

hatuhay’s picture

Initially yes, at this point latest dev versions...

Jorrit’s picture

I 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.

hatuhay’s picture

Issue posted on Amazon S3:
http://drupal.org/node/1794800
Thanks

vparfaniuc’s picture

Installed the latest DEV version of the module and it fixed the issue. Thanks