Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
kirtivaland CreditAttribution: kirtivaland commentedComment #2
kirtivaland CreditAttribution: kirtivaland commentedI 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.
Comment #3
deviantintegral CreditAttribution: deviantintegral as a volunteer commentedThanks for updating, glad you got this working.
Comment #4
Cristian.Andrei CreditAttribution: Cristian.Andrei commentedHi,
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
Comment #5
deviantintegral CreditAttribution: deviantintegral as a volunteer commentedYou 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.
Comment #6
deviantintegral CreditAttribution: deviantintegral as a volunteer commentedComment #7
rlmumfordI 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:
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.Comment #8
deviantintegral CreditAttribution: deviantintegral as a volunteer commentedThe 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.