I am facing below issue when I am configuring Amazon S3 API Key, Amazon S3 API Secret and Default Bucket Name etc.

Fatal error: Class 'Aws\Common\Credentials\Credentials' not found in /sites/all/modules/Amazon S3/amazons3/amazons3.module on line 519
I have installed this module as instruction given at https://www.drupal.org/node/1371166

Please guide me how can I solve this or suggest me if I am doing anything wrong.

Comments

kirtivaland’s picture

Issue summary: View changes
kirtivaland’s picture

Status: Active » Fixed

I have resolved it on my own by installing proper files & packages under amazons3 and composer module. I was in very hurry and raised this issue. Forgive me for this.

Let me know if any one is having this issue.

deviantintegral’s picture

Category: Bug report » Support request
Priority: Critical » Normal

Thanks for updating, glad you got this working.

Cristian.Andrei’s picture

Status: Fixed » Needs work

Hi,

I'm facing the same original scenario that is described in the issue description.

@kirtivaland , what do you mean by "installing proper files & packages under amazons3 and composer module" ? Can you write some instructions for this ?

Thanks,
Cristian

deviantintegral’s picture

You need to use Composer Manager to fetch all of the upstream PHP libraries. If you use drush, it's automatic (just say yes when it asks to download them). See Installation and Patches in the README. It's worth reading the Composer Manager docs if you want to customize where composer libraries are stored on disk.

deviantintegral’s picture

Status: Needs work » Postponed (maintainer needs more info)
rlmumford’s picture

Status: Postponed (maintainer needs more info) » Active

I tried to install this today using drush 6.2.0 and on php 5.5.

The automatic installation with composer failed with the following error:

[Composer\Repository\RepositorySecurityException]
  The contents of http://packagist.org/p/aws/aws-sdk-php$db01f5b4b2e7db1e4b0f
  3e5468b8b513a2e9c673da39f965519a3b67fcc93fec.json do not match its signatur
  e. This should indicate a man-in-the-middle attack. Try running composer ag
  ain and report this if you think it is a mistake.

However, I was able to navigate to the amazons3 module directory and run drush composer install. This downloaded all of the required libraries into sites/all/modules/contrib/amazons3/vendor but I still get the about error when trying to save my s3 credentials.

deviantintegral’s picture

Status: Active » Postponed (maintainer needs more info)

The vendor directory you created with composer install won't be loaded by Drupal. It looks like you probably just had a glitch in your internet connection that corrupted the download - can you try it again? Or, run 'composer update' in the vendor directory used by composer manager, and not in the S3 module itself.