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.
The file is processed by Zencoder and then the file is sent to the converted folder in the S3 bucket but the file size is set to zero (0) bytes. The other thing is that Drupal is using the local file and not the Amazon S3 converted file.
Setup:
- Video: 7.x-2.10+17-dev
- AmazonS3: 7.x-1.0
- AWS SDK for PHP: 7.x-5.4
- Original file: Uploaded to Public File under Drupal
- Converted Files: Amazon S3
Comments
Comment #1
doors CreditAttribution: doors commentedComment #2
doors CreditAttribution: doors commentedI then set the original and converted locations to the local Public folder and the converted files from zencoder are still zero (0) bytes. Really need some help with this.
Comment #3
doors CreditAttribution: doors commentedWell it seemed as if the cron was being executed too quickly or the file was taking too long to download so it quit. I extended the cron run from 5 minutes to 15 minutes and it seems to be working now.
Comment #4
doors CreditAttribution: doors commentedWhen I change the converted file location to Amazon S3 I get the following error through the logs:
PHP Fatal error: Class 'AmazonS3' not found in /mnt/www/html/docroot/sites/all/modules/amazons3/AmazonS3StreamWrapper.inc on line 593 request_id=“<request_id removed>”
I removed the request id.
What could be the cause of this?
Comment #5
doors CreditAttribution: doors commentedIn order for this to start working I had to ad my Amazon S3 credentials to Zencoder and set it as the default.
Comment #6
heshanlk