I've gotten this module to work to a certain extent. Uploading to S3 and transcoding through Zencoder is successful through the Media module. However, I'm getting multiple log file errors and thumbnails are not displaying. Errors include (in chronological order):

php: User warning: Access Denied in Aws\S3\StreamWrapper->triggerError() (line 785 of /var/www/html/sites/all/vendor/aws/aws-sdk-php/src/Aws/S3/StreamWrapper.php).

php: User warning: 403 Forbidden (Request-ID: E5AC0B4BF2D9D2E0) in Aws\S3\StreamWrapper->triggerError() (line 785 of /var/www/html/sites/all/vendor/aws/aws-sdk-php/src/Aws/S3/StreamWrapper.php).

php: Warning: filesize(): stat failed for s3://videos/thumbnails/897/thumbnail-897_0000.png in file_save() (line 614 of /var/www/html/includes/file.inc).

page not found: amazons3/image-derivative/videos/styles/thumbnail/thumbnails/897/thumbnail-897_0000.png

I was only able to successfully patch image.module (with a caution) and File Entity for correct S3 URLs. Patch application failed for both file.inc and the Media module. I get the feeling that these errors are occurring because Drupal is trying to connect to nonexistent buckets. For example s3://videos is not a bucket I own. I'm using the 7.x-2.0 version of AmazonS3. Any chance that these problems are fixed in dev or one of the betas?

Comments

eawheeler created an issue. See original summary.

eawheeler’s picture

Status: Active » Closed (works as designed)

I'm running Panopoly which bundles Media 2.1 (vs. production 2.9) and File Entity 2.0-beta3 (vs. production v2.3), so the errors I'm seeing likely are resulting from older module versions and their inability to be patched.

apaderno’s picture

Issue tags: -, -php errors, -thumbnails +php error