Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25936
    Max Blöchle
    Guest

    Hi,

    I have a problem in combination with BackWPup but this seems to apply to all plugins using aws sdk in combination with w3 total cache. [1] suggests to use define(‘W3TC_SKIPLIB_AWS’, true); but I am unsure of the consequences for w3 total cache. [2] suggests to not have the plugins enabled at the same time which is not an option to me (caching and backups must be active all the time). Could you please look into this error as combining plugins with w3 total cache causes critical errors with the website (it breaks it). Thank you!

    PHP Fatal error: Cannot redeclare Aws\parse_ini_file() (previously declared in /var/www/[redacted]/wordpress/wp-content/plugins/backwpup/vendor/aws/aws-sdk-php/src/functions.php:401) in /var/www/[redacted]/wordpress/wp-content/plugins/w3-total-cache/lib/Aws/Aws/functions.php on line 401

    [1] https://wordpress.org/support/topic/incompatibility-with-w3-total-cache-2/

    [2] https://github.com/humanmade/S3-Uploads/issues/328

    #25953
    Jesse Owens
    Keymaster

    Hi Max-

    Thanks for the detailed information. I’ve gone ahead and filed a bug report for our developers to resolve this issue for you.

    In the meantime, yes you should use the constant value in your wp-config.php file:

    define(‘W3TC_SKIPLIB_AWS’, true);

    All this value will do is prevent the duplicate AWS libraries from loading, since BackWPUp has already loaded the library.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal error with AWS SDK’ is closed to new replies.