Critical Sitewide Error
-
Latest version of this plugin was updated, but I stayed on the previous version of Woocommerce and it caused my entire site to show whitescreen with this error message:
Error thrown
Class ‘WC_Gateway_Amazon_Advanced’ not foundI don’t update Woocommerce when it’s a major version update, not until after a few weeks when they’ve rolled out fixes for bugs, and give time for addon plugins to get updated as well… This is a normal update strategy, so probably a lot of other users are going to run into this.
-
Hey @thanewest
Can you share with us the System Status Report?
– Go to WooCommerce > Status, and copy the report and paste it here.
Thanks for sharing with us the issue.
Best,
ChristianHey @thanewest
Need to discard some possible situations. Can you share a screenshot of the Amazon Pay settings (/wp-admin/admin.php?page=wc-settings&tab=checkout§ion=amazon_payments_advanced)? you can use https://imgbb.com/ and paste the link here.
We have a theory that the fatal is because the v1 keys are still in use on your site.
let me know.
Best,
Christian@christian1983 thanks for the idea, but I can’t check those settings since the site crashes with the plugin enabled. I went ahead and updated Woocommerce to 7.0.0 as a test to see if the error would persist, and it does persist, I got the same error message after upgrading Woo and turning on the Amazon Pay plugin. The error is sitewide, including admin pages, including that settings page/url you sent to try, so I can’t check those settings… Maybe if they’re not encrypted in the database, then I could check them?
Hey @thanewest
We found the issue, and it’s related to merchants that didn’t migrate to v2 keys, and still using v1 keys.
Please follow these steps:
1. Install/activate the plugin “WP Rollback”
2. go to https://<url>/wp-admin/plugins.php
3. on the plugin “Amazon Pay” click on rollback
4. select version 1.13.1 and click on Rollback
5. Go to https://<url>/wp-admin/admin.php?page=wc-settings&tab=checkout§ion=amazon_payments_advanced
6. enable the option “Use Login with Amazon App” (not all merchants need to do this step
7. Delete old keys
8. Save
9. Click on “CONFIGURE/REGISTER NOW” and do the onboarding (it will ask for create an account but on the next screen you are going to be able to Sign in with your actual account)
10. if automatic onboarding didn’t work, please try the manual way of this guide: https://www.notion.so/saucal/Setting-up-Amazon-Pay-plugin-V1-bc489eaeeadd425c9d4453c764d83cbe
11. Save
12. go to https://<url>/wp-admin/plugins.php
13. Update Amazon Pay to 2.3.0Hope that this helps.
Best,
ChristianHey @thanewest ,
You can deactivate the plugin on the DB, or by adding a “_” on Amazon Pay folder through FTP.
and follow the step above.
Let me know.
Best,
Christian@christian1983 thanks a ton for your quick help!
Happy to hear, @thanewest !
Thank you for pointing us the issue. We are working on a fix to prevent this fatal error.
Would you mind taking a minute to leave your feedback on your experience with the plugin? Your insights are incredibly valuable and will help us make sure we serve you and other amazing customers well in the future.
Thank you for taking the time to share your opinion. It makes such a difference in how we show up and serve others!
Best,
ChristianHello and thank you in advance!
We installed a/the WP Rollback but the plugin states that the amazon pay plugin does not implement some tagging which prevents the plugin from downloading previous versions.
Can you provide a link to the one you used?
We used this one: https://wordpress.org/plugins/wp-rollback/in the meantime we have disabled the amazon pay plugin
Hey @oweux
the Rollback plugin is the same.
you need to check if the folder of the Amazon plugin is woocommerce-gateway-amazon-payments-advanced, if not, is not going to find previous versions.
if not, you can install it manually. you can download version 1.13.1 from here: https://wordpress.org/plugins/woocommerce-gateway-amazon-payments-advanced/advanced/
let me know if that helps.
Best,
Christian-
This reply was modified 3 years, 1 month ago by
Christian.
Thank you @christian1983,
Do you have a projection of when you might be able to release a version that does not completely fail when using v1 keys?
Good Morning @christian1983,
The person that holds the amazon credentials followed the steps over the weekend and this morning the site had crashed again with the same message, the plugin had been updated to the latest (probably by them, auto-update is disabled for this plugin).
-
This reply was modified 3 years ago by
oweux. Reason: typo
I am having the same problem – it works for Version 1.13.1 but not when the plugin is updated. I needed to Rollback.
Do you have any other options?
The issue is that you don’t have the V2 keys.
You can both try these steps:
1. Deactivate the plugin on the DB, or by adding a “_” on the Amazon Pay folder through FTP.
2. Delete the Amazon Pay plugin 2.3.0 and manually install version 2.2.4 (You can download it from here: https://wordpress.org/plugins/woocommerce-gateway-amazon-payments-advanced/advanced/)
3. Go to https://<url>/wp-admin/admin.php?page=wc-settings&tab=checkout§ion=amazon_payments_advanced
4. Click on “Reconnect” or “Connect” and do the onboarding (it will ask for create an account but on the next screen you are going to be able to Sign in with your actual account)
5. if automatic onboarding didn’t work, please try the manual way of this guide: https://www.notion.so/saucal/Setting-up-Amazon-Pay-plugin-V2-433010b19b6b48dba43947caa4113d18
6. Save
7. go to https://<url>/wp-admin/plugins.php
8. Update Amazon Pay to 2.3.0Hope that this helps.
Best,
ChristianThanks – I finally got it – then I noticed it is not working for PHP8, just 7.4. Are you going to review that in the next releases?
I appreciate your help.
Jason
-
This reply was modified 3 years, 1 month ago by
The topic ‘Critical Sitewide Error’ is closed to new replies.