• Resolved weipah

    (@weipah)


    When activating another plugin that uses the aws sdk for s3 storage for example it will break the site due to redeclaration of functions.

    A popular example is W3 Total Cache Plugin with a configured CDN for Amazon CloudFront/S3.

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

    Your plugin also seems to pre-load aws sdk functions also S3 storage is not even used for backup.

    Would it be possible for you to provide a fix for this in a future version?

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support happyAnt

    (@duongcuong96)

    @weipah
    please help me add define('W3TC_SKIPLIB_AWS', true); to wp-config.php file, BEFORE the line said /* That's all, stop editing! Happy publishing. */
    Thanks!

    Thread Starter weipah

    (@weipah)

    @duongcuong96 ok thanks I will try that. What does this actually acomplish?

    Plugin Support happyAnt

    (@duongcuong96)

    @weipah
    the line will tell W3TC don’t load its own AWS SDK, so maybe it can help ^^
    Did you already try that? Is it work?
    Thanks!

    Thread Starter weipah

    (@weipah)

    Actually this seems not like a good aproach to rely on another plugin, so that yours will not break something. Also I have not even configured S3 in backup and still the aws sdk is loaded somehow.

    On a side note since we updated our wordpress to 5.4.2 the plugin is not shown anymore in the menu. I’m not sure if it also has to do with the aws sdk issue. But disabling w3tc doesn’t bring back the menu entry of backwpup. Backup jobs seem to be running, because they are triggered by cronjobs.

    I’m very disappointed of the plugin in its current state.

    Plugin Support happyAnt

    (@duongcuong96)

    @weipah
    it’s not related to the sdk issue, please just deactivate and re-activate the plugin again, or clear your browser cache.
    Thanks!

    Plugin Support happyAnt

    (@duongcuong96)

    since we haven’t heard back from you, I’m going to mark it as resolved.
    If you’re still having problems, feel free to let us know ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘AWS SDK in multiple plugins breaks site’ is closed to new replies.