amzn / amazon-payments-magento-2-plugin

Extension to enable Amazon Pay on Magento 2
https://amzn.github.io/amazon-payments-magento-2-plugin/
Apache License 2.0
109 stars 77 forks source link

Amazon\Pay\Model\Config\KeyUpgrade::getPublicKeyId(): Argument #3 ($accessKey) must be of type string, null given #1188

Closed steve-caponetto closed 1 year ago

steve-caponetto commented 1 year ago

What I expected

Ran composer update to pull in latest package versions. Expected newest version to install with no issues.

What happened instead

Running bin/magento setup:upgrade gave the following error:

Amazon\Pay\Model\Config\KeyUpgrade::getPublicKeyId(): Argument #3 ($accessKey) must be of type string, null given, called in /var/www/magento/vendor/amzn/amazon-pay-magento-2-module/Setup/Patch/Data/PerformKeyUpgrade.php on line 88#0 /var/www/magento/vendor/amzn/amazon-pay-magento-2-module/Setup/Patch/Data/PerformKeyUpgrade.php(88): Amazon\Pay\Model\Config\KeyUpgrade->getPublicKeyId('default', 0, NULL)

Steps to reproduce the issue

Previously running Amazon Pay module 5.14.1

composer update bin/magento setup:upgrade

Your setup

sgabhart22 commented 1 year ago

Hi @steve-caponetto ,

Thank you for raising the issue, apparently there were some issues with testing absent values for CV1 configs. Until this change can be released, you should be able to apply the attached patch to get through the upgrade process successfully.

gh-1188.patch.txt

Thanks again, Spencer

p24-max commented 1 year ago

+1 - Facing the same issue

NisiPasa commented 1 year ago

The issue was addressed in the latest release available now on the Marketplace (5.16.0)

Thanks