AWS Connectivity Broken
-
The latest release 0.9.7.5 added in a copy of the AWS SDK and it broke sites that have other plugins using AWS SDK.
A previous issue posted related to this problem was tagged as resolved when it actually is not resolved. There was a suggestion to add
define('W3TC_SKIPLIB_AWS', true);
to wp_config but this just eliminates the duplicate SDK load error. If you do adddefine('W3TC_SKIPLIB_AWS', true);
to wp_config then uploads and downloads stop working with the following error log:[03-Jul-2019 07:09:58 UTC] PHP Fatal error: Class 'Aws\Credentials\Credentials' not found in /var/www/wp-content/plugins/w3-total-cache/CdnEngine_Mirror_CloudFront.php on line 32 [03-Jul-2019 07:09:58 UTC] PHP Stack trace: [03-Jul-2019 07:09:58 UTC] PHP 1. {main}() /var/www/wp-admin/post.php:0 [03-Jul-2019 07:09:58 UTC] PHP 2. wp_delete_attachment() /var/www/wp-admin/post.php:303 [03-Jul-2019 07:09:58 UTC] PHP 3. do_action() /var/www/wp-includes/post.php:5419 [03-Jul-2019 07:09:58 UTC] PHP 4. WP_Hook->do_action() /var/www/wp-includes/plugin.php:465 [03-Jul-2019 07:09:58 UTC] PHP 5. WP_Hook->apply_filters() /var/www/wp-includes/class-wp-hook.php:310 [03-Jul-2019 07:09:58 UTC] PHP 6. call_user_func_array:{/var/www/wp-includes/class-wp-hook.php:286}() /var/www/wp-includes/class-wp-hook.php:286 [03-Jul-2019 07:09:58 UTC] PHP 7. W3TC\Cdn_Plugin->delete_attachment() /var/www/wp-includes/class-wp-hook.php:286 [03-Jul-2019 07:09:58 UTC] PHP 8. W3TC\Cdn_Core->purge() /var/www/wp-content/plugins/w3-total-cache/Cdn_Plugin.php:215 [03-Jul-2019 07:09:58 UTC] PHP 9. W3TC\CdnEngine_Mirror_CloudFront->purge() /var/www/wp-content/plugins/w3-total-cache/Cdn_Core.php:272 [03-Jul-2019 07:09:58 UTC] PHP 10. W3TC\CdnEngine_Mirror_CloudFront->_init() /var/www/wp-content/plugins/w3-total-cache/CdnEngine_Mirror_CloudFront.php:64
Alternate suggestion was to disable other plugins that load the AWS SDK which is not a solution.
Could you add a field to the W3TC AWS admin to allow us to give you the path for the AWS SDK as previously loaded by the other plugin to use?
Thanks in advance. We have been using W3TC for 7 years with few issues. This one would be a deal-breaker though. Thanks for all your hard work though. Great plugin π
- The topic ‘AWS Connectivity Broken’ is closed to new replies.