Not clear, in installation procedure, what goes in a modules folder and what goes into the libraries folder. Does everything in the awssdk folder belong in the sites/all/modules/awwsdk folder? ... or does part of it or another separate file belong in the sites/all/libraries folder?

Comments

kevin-bcr’s picture

Hi. I'm sure this is rather obvious to those used to installing libraries, so thank you for taking the time to explain.

Message I got was: "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 am using Windows. I'm sure my problem is related to the fact that I don't know what is meant by "Use the drush make file." I see the awssdk.make file in the directory.

Kevin

EDITED: OK. So I just spend a while learning about drush. My head hurts. Please tell me there's another way. :D

boombatower’s picture

Assigned: Unassigned » boombatower
Status: Active » Postponed (maintainer needs more info)

The awssdk module (this project) goes in the modules directory like any other module. The corresponding AWS SDK for PHP (from Amazon) goes in /sites/.../libraries/awssdk/ so that you end up with /sites/.../libraries/awssdk/sdk.class.php. Once that is done, clear your cache and it should have worked.

Since this issue is marked 4.0 you should be running AWS SDK for PHP (from Amazon) 1.4.0 (or 1.4.0.1).

Let me know if that helps.

gwb’s picture

I'm having the same issue. I have 4.0/1.4.0.1, the sdk.class.php is in the libraries/awssdk directory, I've cleared the cache (though cache isn't turned on). I still get the error.

Glenn

gwb’s picture

I disabled all of the related modules then re-enabled them, and the error went away.

Glenn

kevin-bcr’s picture

boombatower:

Thank you very much. You have clarified my issue. My head no longer hurts!

Now I just need to decide if I even need to use Amazon S3 to deliver my PDFs.

I would really appreciate it if you any others could give me advice. I have been using a shared hosting provider to deliver up about 1500GB/mth in bandwidth. For the first time, last week, I switched to a 3GB Virtual Dedicated Server. I am wondering if that change alone will make a difference in performance or whether I would see a bigger performance and reliability advantage in storing the files in Amazon s3 and perhaps using CloudFront?

It's not that I've ever had major hits on my shared hosting site. I did notice that with larger PDFs, they downloaded in about 60% of the time from Amazon S3 as when I downloaded them straight from the Virtual Dedicated Server. When I used the Amazon cost calculator, it seemed like it would cost me over $100/mth. Not sure if 2-3 seconds per PDF warrants the extra cost.

Anyway, I know this is off topic. Thank you for any help.

Kevin

boombatower’s picture

Status: Postponed (maintainer needs more info) » Fixed

I currently use this module to integrate with EC2 for scalable workers on http://reviewdriven.com/ so I am not sure I can answer your question very well. There are support forums for AWS which you might pose the question there. Not really sure, but glad to hear you got things working and/or understood.

kevin-bcr’s picture

Thank you. I appreciate your reply. Kevin

js’s picture

1. It would be great if the comment from #2
/sites/.../libraries/awssdk/sdk.class.php.
was included in a install.md or readme.md; or in awssdk.module comments.

It would have sped me along a bit. I use drush constantly, but not Make. The project drush_make looks to be for D6, although it likely isn't, but why waste time experimenting to simply stick a library in the expected location.

2. I bumped into libraries_load not a function error, so found I was using libraries 1.x and needed 2.x.

Thanks for the code.

Status: Fixed » Closed (fixed)

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

mediamike’s picture

I installed drupal 7.10 and this all failed. So I copied drupal 7.9 files over the top, and it still doesn't work, though Reports->Status says it is 7.9. I have awssdk in sites/all/libraries and no matter how many times I uninstall and reinstall, and clear cache, I STILL get the message 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.

zorax’s picture

subscribe,
in report : Failed to load the AWSSDK
I run php 5.3 my librarie (sdk-1.5.0.1) in sites/all/libraries/awssdk

DrupalDan’s picture

Sub...

I got the same error message:

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 copied the files including sdk.class.php to the folder at ... sites/all/libraries/awssdk but the error message is there.

Anyone knows how to fix this?

Thanks in advance

boombatower’s picture

Have you cleared the cache?

DrupalDan’s picture

@boombatower, yes. I did that several times. It's very strange why the error message is still there.

boombatower’s picture

Be sure you are using libraries 2.x-alpha2. Just to be sure yo have sites/all/libraries/awssdk/sdk.class.php along with the rest of the files. I am not sure what else to suggest to you. You can try to debug the libraries path detection code if you are able, otherwise I need some more details or error...not really sure what else to suggest.

DrupalDan’s picture

StatusFileSize
new14.22 KB
new22.14 KB
new5.6 KB

@boombatower, thanks for your response. I’m using the libraries 2.x-alpha2 now, and the AWS SDK for PHP version I use is 7.x 5.3. I downloaded the AWS SDK library a couple of days ago and it is the latest 1.5.6. What’s strange is that when I view status report, I got: Please make sure the AWSSDK library installed is 1.5.4 or greater.

A compatibility test link appears at the right side. What is shown after I clicked is as the screenshot attached.

Also, after I installed the libraries 2.x-alpha2, error messages show up at the module list page.

• Notice: Undefined variable: curl_version in require() (line 462 of C:\wamp\www\sites\all\libraries\awssdk\_compatibility_test\sdk_compatibility_test.php).
• Notice: Undefined variable: curl_version in require() (line 462 of C:\wamp\www\sites\all\libraries\awssdk\_compatibility_test\sdk_compatibility_test.php).
• Warning: in_array() expects parameter 2 to be array, null given in require() (line 462 of C:\wamp\www\sites\all\libraries\awssdk\_compatibility_test\sdk_compatibility_test.php).

I notice the cURL status is without SSL. Do you think that could be the cause? My site is still a local one. Does that mean everything will function well only if I put my site into production and have SSL?

Thanks!

boombatower’s picture

It is due to a change made in the most recent SDK. Please track this problem in #1593454: Determine how to deal with non-numeric version of SDK (fix for SDK 1.5.6). For now if you want to fix follow the instructions in the other issue.