{"action":"created","issue":{"url":"https://api.github.com/repos/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/276","labels_url":"https://api.github.com/repos/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/276/comments","events_url":"https://api.github.com/repos/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/276/events","html_url":"https://github.com/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/276","id":105431988,"number":276,"title":"Conflict With \"Pay with Amazon\" Plugin","user":{"login":"nikhilgoyal","id":684105,"avatar_url":"https://avatars.githubusercontent.com/u/684105?v=3","gravatar_id":"","url":"https://api.github.com/users/nikhilgoyal","html_url":"https://github.com/nikhilgoyal","followers_url":"https://api.github.com/users/nikhilgoyal/followers","following_url":"https://api.github.com/users/nikhilgoyal/following{/other_user}","gists_url":"https://api.github.com/users/nikhilgoyal/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhilgoyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhilgoyal/subscriptions","organizations_url":"https://api.github.com/users/nikhilgoyal/orgs","repos_url":"https://api.github.com/users/nikhilgoyal/repos","events_url":"https://api.github.com/users/nikhilgoyal/events{/privacy}","received_events_url":"https://api.github.com/users/nikhilgoyal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-08T17:31:22Z","updated_at":"2015-09-29T09:13:31Z","closed_at":null,"body":"I believe I have found a conflict with Pay with Amazon Plugin, which renders this addon unable to use. Any image uploaded would be uploaded to the server but not S3.\r\n\r\n*What I found on Add-on Setting Page:*\r\n![Error Message]\r\n(https://cloud.githubusercontent.com/assets/684105/9741861/757a808c-567a-11e5-91ec-750e5f102fda.png)\r\n\r\nThen I investigated further, turned on wordpress debugging and tailed the log file in `wp-content`. I found that `AWS_ACCESS_KEY_ID` & `AWS_SECRET_ACCESS_KEY` have been already defined. That meant that there is plugin which is using these Constants. Took 2 sec to figure out it would be `pay with amazon` plugin for wordpress.\r\n\r\nNow, after this, I am at loss, on how to make sure I keep both the plugins. For now I have disabled `Pay with Amazon`\r\n\r\n```\r\nif( $pwacheckkout->get_option('enabled') == 'yes') {\r\n\t\t\t\r\n\t\t\tdefine('AWS_ACCESS_KEY_ID', $pwacheckkout->get_option('access_key'));\r\n\t\t\tdefine('AWS_SECRET_ACCESS_KEY', $pwacheckkout->get_option('secret_key'));\r\n\t\t\tdefine('APPLICATION_NAME', 'pwa_mws');\r\n\t\t\tdefine('APPLICATION_VERSION', '1.0.0');\r\n\t\t\tdefine('MERCHANT_ID', $pwacheckkout->get_option('merchant_id'));\r\n\t\t\tdefine('MARKETPLACE_ID', $pwacheckkout->get_option('marketplace_id'));\r\n\t\t\tdefine('WORK_ENVIRONMENT',$pwacheckkout->get_option('environment'));\r\n\t\t\tdefine('UPDATE_ODER_FROM',$pwacheckkout->get_option('pwa_order_update'));\r\n\t\t\tdefine('CUSTOM_CHECKOUT_IMAGE',$pwacheckkout->get_option('pwa_btn_img_hidden'));\r\n\t\t\tdefine('MWS_ENDPOINT_URL','https://mws.amazonservices.in/');\r\n\t\t}\r\n```\r\n\r\nNow I am in a fix, as I want to keep both plugins without fighting for some mere constants with each other. I would really appreciate some cool way to make them work."},"comment":{"url":"https://api.github.com/repos/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/comments/144001351","html_url":"https://github.com/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/276#issuecomment-144001351","issue_url":"https://api.github.com/repos/deliciousbrains/wp-amazon-s3-and-cloudfront/issues/276","id":144001351,"user":{"login":"polevaultweb","id":1770201,"avatar_url":"https://avatars.githubusercontent.com/u/1770201?v=3","gravatar_id":"","url":"https://api.github.com/users/polevaultweb","html_url":"https://github.com/polevaultweb","followers_url":"https://api.github.com/users/polevaultweb/followers","following_url":"https://api.github.com/users/polevaultweb/following{/other_user}","gists_url":"https://api.github.com/users/polevaultweb/gists{/gist_id}","starred_url":"https://api.github.com/users/polevaultweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polevaultweb/subscriptions","organizations_url":"https://api.github.com/users/polevaultweb/orgs","repos_url":"https://api.github.com/users/polevaultweb/repos","events_url":"https://api.github.com/users/polevaultweb/events{/privacy}","received_events_url":"https://api.github.com/users/polevaultweb/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T09:13:31Z","updated_at":"2015-09-29T09:13:31Z","body":"@nikhilgoyal No need thank you. We will look to add different constant names in the future, but in the short term you can add access to S3 for the IAM user you are using for the Amazon Pay plugin"}}