Clean download of drupal 7.8, installed in my home directory and added to apache via a vhost. Site in general works OK.

Error message in status report page is:
Failed to load the AWSSDK
Please make sure the AWSSDK library is installed in the libraries directory. Use the drush make file for easy installation.

I've downloaded and enabled Libraries 7.x-2.0-alpha1 AWS SDK for PHP 7.x-4.4, and AWS SDK for PHP UI 7.x-4.4.

I couldn't work out how to install drush make so I manually git cloned https://github.com/amazonwebservices/aws-sdk-for-php.git into /Users/evansj/drupal/drupal/sites/all/modules/libraries/awssdk. It's installed at the correct level, i.e. I have a file /Users/evansj/drupal/drupal/sites/all/modules/libraries/awssdk/sdk.class.php as specified in http://drupal.org/node/1257880.

The UI project seems to work, and lets me save my settings. I also tried copying awssdk/config-sample.inc.php to awssdk/config.inc.php, and edited it to have my correct settings, but that didn't work either.

There is nothing in the php error log.

Would love to get this working! Thanks in advance for any help.

CommentFileSizeAuthor
#18 aws.zip1.42 MBsalomon007

Comments

dlearn’s picture

I had the same problem, getting the same error message after I had just installed. I noticed when I went to configure AWS sdk UI module it asked for my Amazon S3 account info. Since I hadn't signed up for amazon s3 yet, I decided to disable both AWS sdk modules and the Amazon S3 module and then no more error message! Don't know what will happen once I get an account and want to use them again, but I have been able to make the error go away.

dlearn’s picture

follow-up: once I did want to enter the S3 account info I had to enable the modules and the error returned. I checked the resolved issues and the one that is called "installation instructions" explains that you have to also download the aws sdk for php folder from Amazon and load that into your libraries folder. So I went to amazon here to download: http://aws.amazon.com/sdkforphp/ and then uploaded the folder within the folder with the same name (the name of the version) and changed the folder name to "awssdk" and now have no error in status report. Would be nice if the module wasn't named the same as the folder from Amazon and if there were clear instructions easy to find about installing the module and uploading the library files!

resting’s picture

  // Always search sites/all/*.
  $searchdir[] = 'sites/all/' . $directory;
+  $searchdir[] = 'sites/all/modules/' . $directory; //if you installed in sites/all/modules

Problem seems to be in the directory check.
I added the line above (noted with +) and clear all caches. Its detected the library now.
in libraries.module file.

boombatower’s picture

#3: ?? you should never place the library in the modules directory.

As in the original post on this issue the SDK from Amazon shuold be in the libraries directory. I kinda thought we had added an INSTALL.txt, buts lets go ahead and do so especially since everyone has trouble with this. Feel free to write up what you feel would be helpful.

boombatower’s picture

resting’s picture

yes u were right

i guess this line has confused me to installing 3rd party libraries within the libraries module itself.
"Please make sure the AWSSDK library is installed in the libraries directory"

Simply changing the line to say
"Please make sure the AWSSDK library is installed in the sites/all/libraries directory"
would be clear enough i guess.

and yes, no hacks need to be done if the modules and libraries are in their correct place. :)

boombatower’s picture

sites/all/libraries or the sites/SITE_YOU_ARE_USING/libraries. Which is why I think the libraries module should just provide that documentation since all modules that depend on it will have the same instructions.

boombatower’s picture

Status: Active » Closed (duplicate)

Lets talk over in #5 about the documentation and mark this duplicate.

bassplaya’s picture

Dear boombatower,

I encounter the same issue and I haven't been able to resolve it.
I've updated to the latest Drupal 7 version (7.10) all modules that were installed are up-to-date.

Libraries
I have downloaded the aws sdk for php from https://github.com/amazonwebservices/aws-sdk-for-php/zipball/master and installed (placed it manually as I don't know how to work with git) at sites/all/libraries

Modules installed and enabled:
I have the libraries API installed (version 7.x-2.0-alpha2) and the AWS SDK for PHP module (version 7.x-5.0) and AWS SDK for php UI (version 7.x-5.0).

All seems to be working but it doesn't recognize my AWS SDK library and gives:

Failed to load the AWSSDK
Please make sure the AWSSDK library is installed in the libraries directory. Use the drush make file for easy installation.

As for the instructions on the project page of AWS SDK for php module it mentions:

Usage

To include the sdk.class.php file, as is the only file required, simply execute the following (please see the libraries project for more details).

<?php
libraries_load('awssdk');
?>

Sadly, I can't find out where to paste this code. I've tried the settings.php file but that resulted in a WSOD, probably no good.
Could you please give me more instructions on how to get this working because I fear that the reason why my drupal site can't see the awssdk library is probably that little snippet of code above that is missing.

Many thanks.
BassPlaya

bassplaya’s picture

Status: Closed (duplicate) » Active

Sorry to put this back to active as I tried it with a clean install and it simply doesn't work. I cleared my cache in several ways. I even tried to capitalise the name of the folder into AWSSDK instead of awssdk. The problem is that I can't update because of this issue. So, yes I would very much like to know how to resolve this.
I'm using this on my local machine (MAMP) and my video-js/video.js library IS recognized.. that's so odd about the whole problem. One library is recognised but not the other one.
Please consider that I'm not a coder.

Thanx

boombatower’s picture

Version: 7.x-4.4 » 7.x-5.0

cleared cache?
libraries path look like sites/[somesite (or all)]/libraries/awssdk/sdk.class.php?

This code is extraordinarily simple. If something odd beyond this then going to need more details.

boombatower’s picture

Status: Active » Closed (duplicate)
afeijo’s picture

I have the same problem

I just downloaded all required files to enable awssdk (drupal 7, libraries 2, new mysql db, etc.)
I have the php file at sites/all/libraries/awssdk/sdk.class.php

I could not enable awssdk_ui thru drush, I did it thru drupal modules page #1391452: Problem enabling the module with Drush

yet it still show the error in the Status report page: Failed to load the AWSSDK

afeijo’s picture

ops, sorry, only after I posted that I read the comment above mine
that duplicated issue has an patch that solved my problem
but if it was commited, why the last awssdk still does not have it?

zorax’s picture

subscribe,
I try all possibility...
I just install drush just for this,
$ drush en awssdk_ui was OK
but the error is still there,
"Use the drush make file for easy installation.", can you tell me what is the command line in drush because I can't find it ???

mototribe’s picture

I could just install the downloaded file directory from Amazon.
Just had to make sure to copy all the files from the sdk-1.5.2 directory into the awssdk directory so Drupal can find:
sites/all/libraries/awssdk/sdk.class.php

clevername’s picture

clearing the cache worked for me
drush cc all

salomon007’s picture

Version: 7.x-5.0 » 7.x-2.0
Assigned: Unassigned » salomon007
StatusFileSize
new1.42 MB

Saludos yo tambien tuve el mismo problema pero en la version 6.x.x de drupal y lo solucione de esta manera.
1.- Una vez que descargas el aws.zip tienes que descomprimirlo y luego renombrarlo con este nombre awssdk.
2.- Pegarlo en la ruta siguiente /sites/all/libraries/.
3.- Dentro de la carpeta awssdk encontraras un archivo .php llamado aws-autoloader, a este archivo tienes que renombrarlo con el nombre de sdk.class.php.
4.- Ya no te aparce el problema en el informe de estado, y el esquema de las carpetas te debe de quedar asi:

/sites/all/libraries/awssdk/
-Aws
-Doctrine
-Guzzle
-Monolog
-Psr
-Symfony
sdk.class.php

GrecoNorman’s picture

Hi there,

I am not sure if this is the proper place to be posting about this or not. Please direct me to the proper area if this is the case. I am also unable to get the AWSSDK library to load and am getting the "Failed to load the AWSSDK" error message.

I have saved the awssdk folder in the libraries folder manually and the folder does have the sdk.class.php file. I don't have drush installed so I have tried clearing the cache through the web interface.

Is there anyone that can help me with this?

Thanks,

- Update. Turns out I was an idiot and failed to save the library in the correct folder. Once I figure this out I was able to make the error message go away.

sagar ramgade’s picture

Issue summary: View changes

Hi,

I also faced the same issue with 7.x-5.4 and awssdk 1.6.16, followed the instructions was getting the same error message. Once I cleared the cache the error message went off.

no sssweat’s picture

I had this error even with v2.6.3. which is "known to work".

I solved it by putting the Access Key and Secret Key inside my drupal/sites/default/settings.php file.

like so:

$conf['awssdk2_access_key'] = 'YOUR ACCESS KEY';
$conf['awssdk2_secret_key'] = 'YOUR SECRET KEY';

I am using the S3 File System Module so thats why there is 2 after awssdk.

Perhaps this MIGHT work for the Amazon S3module without the 2. (I did not try it).

Also, I disabled & uninstalled the AWS SDK for PHP Module as it was not needed, all you need is to have the awssdk2 in libraries folder, atleast for the S3 File System Module.

Playing around with both modules the S3 File System is the better one as it does not require you to hack core at all and it's much easier to install.

Also, the Amazon S3 uploads the files to your Drupal and then transfers them to the S3 bucket, while the S3 File System Module uploads them directly and right away to your S3 bucket, so its better.

PS: I am using the awssdk v2.6.3. as suggested to "known to work" S3 File System Read Me File.

https://github.com/aws/aws-sdk-php/releases/download/2.6.3/aws.zip

fweiss’s picture

I just needed that zip file, worked for me :)