Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to push a snapshot of a codebase that contains the same AWS SDK #91

Open
PypWalters opened this issue Aug 30, 2021 · 1 comment
Open
Labels

Comments

@PypWalters
Copy link

Describe the bug

If you try to push a snapshot of a theme that uses the same AWS SDK library, you get an error about duplicate functions and are unable to push a snapshot.

Cannot redeclare Aws\constantly() (previously declared in /opt/wpsnapshots/vendor/aws/aws-sdk-php/src/functions.php:19) in /var/www/html/wp-content/themes/{theme_name}/inc/s3/Aws/functions.php on line 22

Steps to Reproduce

  1. Create a theme locally that loads and uses the same AWS SDK.
  2. Push a snapshot (either database only, code only or code and database) and see the error output in the cli.

Expected behavior

WPSnapshots should run independently of the codebase being pushed.

Environment information

  • Device: MacBook
  • OS: MacOS 10.14.6
  • Browser and version: Chrome Version 92.0.4515.159
  • WordPress version: 5.8

Additional context

@PypWalters PypWalters added the bug label Aug 30, 2021
@PypWalters
Copy link
Author

Adding the following flags --skip-plugins or --skip-themes depending on where the AWS SDK is located may circumvent an AWS SDK conflict for anyone who runs into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant