Integrated aws-sdk-php into WordPress custom theme
I’ve got a custom Wordpress theme where the AWS PHP SDK is included using Composer, which requires GuzzleHttp composer package. We’ve recently run into namespace conflicts with plugins that also require GuzzleHttp, presumably because they require different versions. To resolve this, I’ve been learning php-scoper to namespace my theme files and composer packages. I’m now at a point where the theme is namespaced and the site loads correctly but still can’t use AWS functions without the following error:
“Fatal error: Uncaught RuntimeException: Unable to determine what Guzzle version is installed. in /wp-content/themes/mytheme/build/vendor/aws/aws-sdk-php/src/functions.php:305”.