Home Forums Newsletter Plugin Support Fatal error: Cannot redeclare Aws\constantly()

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #299394
    Jonathan
    Participant

    Hello,

    With the latest update, I am getting the following PHP error every 5 minutes:

    Fatal error: Cannot redeclare Aws\constantly() (previously declared in plugins/myownplugin/includes/libraries/aws/Aws/functions.php:20) in plugins/newsletter-amazon/vendor/aws/aws-sdk-php/src/functions.php on line 20

    It seems to be a conflict with one of my own plugins, but I never got this error before the last update. Is it possible to check what could be causing this?

    Thanks

    #299425
    Stefano
    Keymaster

    Hi, this happens because both our Amazon SES plugin and the plugin named “myownplugin” are loading the Amazon SDK. Try to update the Amazon SES addon to version 1.4.2, we’re trying to deal with those kinds of conflicts. If the problem cannot be solved with an update (be sure to test the addon sending an email from its configuration panel), please open a ticket for a debug session (not every time that conflict can be resolved).

    #299520
    Jonathan
    Participant

    Thanks for your reply. I still got the same error after updating to v1.4.2, so, for now, I just went into the code and commented the row that requires the AWS sdk.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.