This happens in admin/reports/status
Catchable fatal error: Argument 1 passed to AmazonS3::__construct() must be an array, string given, called in /Users/joachim/Sites/veto.local/sites/all/modules/amazons3/AmazonS3StreamWrapper.inc on line 788 and defined in /Users/joachim/Sites/veto.local/sites/all/libraries/awssdk/services/s3.class.php on line 423
Call Stack
# Time Memory Function Location
1 0.0007 650200 {main}( ) ../index.php:0
2 0.6824 55760424 menu_execute_active_handler( ) ../index.php:21
3 0.6927 57127808 call_user_func_array ( ) ../menu.inc:503
4 0.6927 57128176 system_status( ) ../menu.inc:503
5 0.9742 64479560 module_invoke_all( ) ../system.admin.inc:2288
6 2.8160 73816600 call_user_func_array ( ) ../module.inc:818
7 2.8160 73817088 xmlsitemap_requirements( ) ../module.inc:818
8 2.8162 73819432 xmlsitemap_check_directory( ) ../xmlsitemap.install:50
9 2.8163 73820248 file_prepare_directory( ) ../xmlsitemap.module:797
10 2.8163 73820472 is_dir ( ) ../file.inc:444
11 2.8163 73822912 AmazonS3StreamWrapper->url_stat( ) ../file.inc:444
12 2.8163 73822912 AmazonS3StreamWrapper->_stat( ) ../AmazonS3StreamWrapper.inc:606
13 2.8163 73823056 AmazonS3StreamWrapper->_is_dir( ) ../AmazonS3StreamWrapper.inc:820
14 2.8164 73823200 AmazonS3StreamWrapper->getS3( ) ../AmazonS3StreamWrapper.inc:899
15 2.8256 74986560 AmazonS3->__construct( ) ../AmazonS3StreamWrapper.inc:788
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | update1.5.1373768.patch | 2.8 KB | justafish |
| #4 | amazons3-1373768.patch | 3.4 KB | hadsie |
| #2 | amazons3-1373784.patch | 2.44 KB | hadsie |
Comments
Comment #1
boombatower commentedAs the release notes indicate the new SDK from Amazon is not backwards compatible. Amazon S3 project should indicate the versions of awssdk it is compatible with and probably add to .info file dependency to ensure people don't enable the wrong one.
Added more explicit note to 1.5 release notes.
Comment #2
hadsie commentedAttached is a patch that should hopefully fix the changes caused by the 1.5 sdk.
Comment #3
hadsie commentedComment #4
hadsie commentedI had missed some code in the previous patch. Please ignore that one and use this one instead :).
Comment #5
boombatower commentedThe proper way to do this is
CFCredentials::get()->secretas seen https://gist.github.com/1480151. That way people can configure the AWS SDK outside of awssdk project Drupal variables.In fact I don't think you need to pass the key to the sdk at all it should just pick it up.
Hopefully libraries 2.x will get is UI that will explain all this soon. :)
Powered by Dreditor.
Comment #6
bassplaya commented@ hadsie
I'm having the same issue here and I'm stuck.
I have no clue how a patch gets applied.
Can you explain so I can use this module too? Cheers.
Comment #7
bassplaya commentedIn the meantime I learnt how to work with git and how to apply a patch. If anyone looking for that. drupal.org/patch is a great resource. Sorry for being so ignorant.
Here's what my terminal window says (MAMP):
I hope that you know what this means because I don't.
boombatower replied something as well to your patch I guess but I couldn't figure out what that all meant.
Maybe someone can explain or submit a working patch.
Cheers!
Comment #8
bassplaya commentedOk, I got your patch in #4 (http://drupal.org/comment/reply/1373768/5390154#comment-5390154) running now when I used the dev version of this module but I got an error again saying:
I've seen this mentioned in the lines of your patch somewhere but I have no clue what actually causes this.
Could it be because I'm on a local host (MAMP) instead of on a live server?
Comment #9
justafishThis needs fixing in the awssdk first http://drupal.org/node/1371444
Comment #10
justafishand here's the patch against 7.x-1.x-dev to make this module work, but you'll need the one in the above mentioned issue first.
Comment #11
bassplaya commentedHow come I can't get this patch to apply. Am I the only one?
Here's what I get in Terminal:
Comment #12
justafishPatch has been committed, please reopen if there are any problems (you'll still need to apply the awssdk patch first).
Comment #13
Saoirse1916 commentedStill not working for me. I'm using the Dev versions of awssdk and Amazon S3 and I've patched awssdk with the above patch, cleared caches, deleted everything, ran update.php, cleared caches, reinstalled everything, cleared caches again. No luck and I get the same error as above, which occurs only when I attempt to save my default bucket name in config/media/amazons3.
Comment #14
Saoirse1916 commentedComment #15
justafishtry these, the d.o packaging system probably hasn't caught up yet:
http://drupalcode.org/project/awssdk.git/snapshot/5b03b4f0b3cedafb6c2053...
http://drupalcode.org/project/amazons3.git/snapshot/ce89b3593cd34d3234e6...
Comment #16
Saoirse1916 commentedAh ha, looks like that did it. Thanks a bunch!
Comment #17
jbeckers commentedi'm on dev of both awssdk and amazons3.
just did a drush up, updated amazons3 to the latest dev, and everything seems back to normal.
the patch for awssdk seems not to be needed when you're on dev.
Comment #18
jbeckers commentedComment #19
justafishYep, all patches have been committed, so you just need the latest dev versions of everything and you should be good to go.
Comment #20
Anonymous (not verified) commentedI am coming across a similar error.
Argument 1 passed to AmazonS3::__construct() must be an array, string given, called in /Users/chris/webserver/ravelunravel/sites/all/modules/contrib/AmazonS3/amazons3.module on line 66 and defined in AmazonS3->__construct() (line 433 of /Users/chris/webserver/ravelunravel/sites/all/libraries/awssdk/services/s3.class.php).
I've followed examples and tutorials but when I enter the S3 bucket name and save, it returns this error
I'm using SDK 1.5.4.x and Module 7.x-5.3
Comment #21
Anonymous (not verified) commentedAfter a reinstall of supporting modules fixed the issue.
Comment #22
djake commentedI am attempting to update form beta7 to dev and am receiving this error. I have recently updated the SDK to 1.6.2, and am running it with beta7, no problem. (I have awssdk for php 5.4. )
Any suggestions? (Apologies if this should be a new issue.)
Comment #23
djake commentedsorry please ignore prior post