andersundsehr / aus_driver_amazon_s3

Provides a TYPO3 FAL driver for the Amazon Web Service S3
GNU Lesser General Public License v3.0
21 stars 40 forks source link

Fatal errors with aus_driver_amazon_s3 and TYPO3 8.7 #40

Closed dknubben closed 5 years ago

dknubben commented 6 years ago

Hello,

we have problems with the extension (tested latest 1.7.1 and an older 1.6.0) and TYPO3 (8.7.17) First (already reported #35): Fatal error: Cannot redeclare GuzzleHttp\json_encode() (previously declared in /typo3_src-8.7.17/vendor/guzzlehttp/guzzle/src/functions.php:322)

quick fix: removing all GuzzleHttp-things in aws-autoloader.php Is this a solution?

Second (when selecting the file list view): Fatal error: Uncaught InvalidArgumentException: Found 1 error while validating the input provided for the ListObjectsV2 operation: [Bucket] is missing and is a required parameter in ./typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/Api/Validator.php:65 Stack trace: #0 ./typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/Middleware.php(78): Aws\Api\Validator->validate('ListObjectsV2', Object(Aws\Api\StructureShape), Array) #1 ./typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/S3/S3Client.php(425): Aws\Middleware::Aws{closure}(Object(Aws\Command), NULL) #2 ./typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/S3/S3Client.php(448): Aws\S3\S3Client::Aws\S3{closure}(Object(Aws\Command), NULL) #3 ./typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/S3/S3Client.php(38 in ./typo3conf/ext/aus_driver_amazon_s3/Resources/Private/PHP/Aws/Aws/Api/Validator.php on line 65

With TYPO3 7.6 and same configuration no problem.

Lagerregal commented 5 years ago

Does this error occurs on a composer based setup? Please use composer to install this extension (highly recommended).

Lagerregal commented 5 years ago

Duplicated by #35