Trying to use with Amazon S3 Service. Have created appropriate Service, Container, Class, but it still gives:

Notice: Undefined variable: id in StorageS3CloudFront->requestCloudFront() (line 237 of /usr/drupal7/sites/all/modules/storage_api/services/s3_cloudfront.inc).

Is module ready to use? Has anyone succeeded to use it with Amazon S3 services?

Comments

modimanz’s picture

It is working for me, although I do get a similar error on occasion. I am using Drupal 7.0beta2. I also have CloudFront setup on the bucket I am using. I have written a script that imports 11,000+ documents into a new content type I created called Documents. It uses database info to tag the Document and stores the file using the storage_api. I am very happy with the results, but I had to make a couple fixes to the storage_core_bridge.module file so it would work. I will post the changes if anybody is interested. Basically the Stream Wrapper class had a static function that was calling the $this variable and the $storage_core_bridge_filename was not being updated if you tried to import several files at once, so all file names would be the same. I fixed both of these issues on my copy of the module, but I do not know the status of the official storage_api release. I will gladly offer my changes if anybody is interested, although, I am still studying the code so my changes could possibly have repercussions of which I am not aware. I love this module. I thank the developer much. You have really made my life easier.

jbrown’s picture

Assigned: Unassigned » jbrown
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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