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.
When trying to add an image style:
Fatal error: Call to a member function list_objects() on a non-object in /var/www/sites/all/modules/contrib/amazons3/AmazonS3StreamWrapper.inc on line 1124
Comment | File | Size | Author |
---|---|---|---|
#5 | 2284347.5-bucket-undefined.patch | 1021 bytes | deviantintegral |
Comments
Comment #1
mstef CreditAttribution: mstef commentedOkay, few problems.
This happens when the Bucket is not specified. It should degrade nicer than that without causing a WSOD.
Semi-related: Line 1013 is: drupal_set_message(t('Bucket name not configured.') . 'error');
That dot should be a comma.
Comment #2
mstef CreditAttribution: mstef commentedMany examples of this:
There needs to be check that getS3() returns a usable object. That function can return NULL (which is what is happening in this case).
Comment #3
pal4life CreditAttribution: pal4life commentedThis happened to me when trying to run a feed importer.
Comment #4
deviantintegral CreditAttribution: deviantintegral at Lullabot for NBCUniversal commentedWe should throw exceptions if a method like getS3() can't return a usable object. I'm going to come back and check this after #2176589: AWS PHP SDK v2 support.
Comment #5
deviantintegral CreditAttribution: deviantintegral at Lullabot for NBCUniversal commentedI'm going to say this is wontfix for the 1.x branch given that the Drupal variable is required in the form.
Comment #6
deviantintegral CreditAttribution: deviantintegral at Lullabot for NBCUniversal commentedActually, I've fixed this in a simpler way over at #2470127: Use doctrine/cache for request caching, so this will be fixed when that goes in.