In case anyone might run into similar issues, I saw these errors on page requests in the webserver log on upgrading from 2.2.0 to 2.2.1 (some server specific directory info removed):
stderr: PHP Fatal error: Uncaught Error: Call to undefined function Aws\\boolean_value() in web/src/addons/XFAws/_vendor/aws/aws-sdk-php/src/Endpoint/UseFipsEndpoint/Configuration.php:14
stderr: Stack trace:
stderr: #0 web/src/addons/XFAws/_vendor/aws/aws-sdk-php/src/Endpoint/UseFipsEndpoint/ConfigurationProvider.php(174): Aws\\Endpoint\\UseFipsEndpoint\\Configuration->__construct(false)
stderr: #1 web/src/vendor/guzzlehttp/promises/src/Promise.php(204): Aws\\Endpoint\\UseFipsEndpoint\\ConfigurationProvider::Aws\\Endpoint\\UseFipsEndpoint\\{closure}(Object(Aws\\Endpoint\\UseFipsEndpoint\\Exception\\ConfigurationException))
stderr: #2 web/src/vendor/guzzlehttp/promises/src/Promise.php(169): GuzzleHttp\\Promise\\Promise::callHandler(2, Object(Aws\\Endpoint\\UseFipsEndpoint\\Exception\\ConfigurationException), NULL)
stderr: #3 /var/www/clients/client0/web1/web/src/vendor/guzzlehttp/promises/src/RejectedPromise.php(42): GuzzleHttp\\Promise\\Promise::GuzzleHttp\\Promise\\{closure}(Ob in web/src/addons/XFAws/_vendor/aws/aws-sdk-php/src/Endpoint/UseFipsEndpoint/Configuration.php on line 14
Some image and video embeds weren't working on the pages. I tried a few things and running composer update in the XFAws directory I did see:
Updating dependencies
Package operations: 0 installs, 1 update, 0 removals
- Updating aws/aws-sdk-php (3.209.16 => 3.209.18): Loading from cache
And the errors go away and site works as expected. However, the XenForo health check currently complains that 17 files have 'unexpected contents', although a quick check they seem the same as the original:
src/addons/XFAws/composer.lock Unexpected contents |
src/addons/XFAws/_vendor/aws/aws-sdk-php/src/data/athena/2017-05-18/api-2.json.php Unexpected contents |
src/addons/XFAws/_vendor/aws/aws-sdk-php/src/data/ec2/2016-11-15/api-2.json.php Unexpected contents |
src/addons/XFAws/_vendor/aws/aws-sdk-php/src/data/ec2/2016-11-15/paginators-1.json.php Unexpected contents |
src/addons/XFAws/_vendor/aws/aws-sdk-php/src/data/endpoints.json.php Unexpected contents |
src/addons/XFAws/_vendor/aws/aws-sdk-php/src/data/lakeformation/2017-03-31/api-2.json.php Unexpected contents |
src/addons/XFAws/_vendor/aws/aws-sdk-php/src/data/metering.marketplace/2016-01-14/api-2.json.php Unexpected contents |
src/addons/XFAws/_vendor/aws/aws-sdk-php/src/data/rbin/2021-06-15/api-2.json.php Unexpected contents |
src/addons/XFAws/_vendor/aws/aws-sdk-php/src/data/robomaker/2018-06-29/api-2.json.php Unexpected contents |
src/addons/XFAws/_vendor/aws/aws-sdk-php/src/Ec2/Ec2Client.php Unexpected contents |
src/addons/XFAws/_vendor/aws/aws-sdk-php/src/S3/StreamWrapper.php Unexpected contents |
src/addons/XFAws/_vendor/aws/aws-sdk-php/src/Sdk.php Unexpected contents |
src/addons/XFAws/_vendor/composer/autoload_classmap.php Unexpected contents |
src/addons/XFAws/_vendor/composer/autoload_real.php Unexpected contents |
src/addons/XFAws/_vendor/composer/autoload_static.php Unexpected contents |
src/addons/XFAws/_vendor/composer/ClassLoader.php Unexpected contents |
src/addons/XFAws/_vendor/composer/installed.json Unexpected contents |