• Resolved aturner374

    (@aturner374)


    PHP Fatal error: Cannot redeclare Aws\is_valid_hostname() (previously declared in C:\wamp64\www\wordpress\wp-content\CUSTOM_AWS_SDK\Aws\functions.php:382) in C:\wamp64\www\wordpress\wp-content\plugins\w3-total-cache\lib\Aws\Aws\functions.php on line 383

    I already had a copy of the AWS SDK in my code but there is also one in w3 total cache. Could you please advise how to manage this conflict?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,

    We tried to limit the number of requests when w3tc loads the AWS library and it happens only when interaction with AWS is required. If you do the same, and will not load it always – potentially both products will be able to co-exist.

    Another option is to force both projects to use the same AWS library code.
    You should include AWS separately, and force W3TC not to load own copy setting
    define('W3TC_SKIPLIB_AWS', true);

    W3 Total Cache is compatible with AWS SDK version 3 and may use it.
    Another project using AWS library should do the same.

    Hello,

    the define breaks the Cloudfront purge, I got this error:
    * The cloudfront service does not have version: 2018-11-05.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘More than one AWS SDK’ is closed to new replies.