• Resolved k.borisov

    (@kborisov)


    Hi,

    Since the last update of WooCommerce(7.0.0) and the WooCommerce Amazon Pay (2.3.0) I get the following error:
    Error: Class 'WC_Gateway_Amazon_Payments_Advanced' not found in /var/www/vhosts/mdev.somnishop.com/httpdocs/wp-content/plugins/woocommerce-gateway-amazon-payments-advanced/includes/class-wc-gateway-amazon-payments-advanced-express.php on line 11.
    The error is shown on the dashboard and the frontend.

    The issue is not present when the AMP plugin(2.3.0) is deactivated.

    Thanks in advance,
    Kamen

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @kborisov

    Thank you for contacting us, WooCommerce is not yet fully compatible, but it can be configured to work at a basic level.

    1) I will suggest disabling AMP on cart and checkout pages

    2) Update cart behavior settings to redirect on adding a product in cart and disabling Ajax add to cart check on from Archive.

    Additionally, I will suggest using the AMP Enhancer plugin, it can help you in addressing some Incompatibilities in WoCommerce.

    As we tested WooCommerce with WooCommerce Amazon Pay on the Storefront theme, we didn’t encounter any issues, as we mentioned above you don’t need to enable AMP on the cart and Checkout pages so you can try to suppress the WooCommerce Amazon Pay plugin from AMP settings

    AMP->Plugin Suppression and mark the WooCommerce Amazon Pay plugin as “suppressed”
    (screenshot)

    Additionally please send your UUID by visiting AMP->Support so we can investigate the issue further.

    I hope this helps!

    Thread Starter k.borisov

    (@kborisov)

    Thanks for the answer.

    I tried reproducing the problem on a clean installation and everything works there.

    The problem should be just on this website. I am testing the updates on a development copy of a functioning website.

    The shop is set up like in your recommendation (1).
    For 2) we have written custom logic, but this is also can’t the problem.

    The error is shown on every page including the admin dashboard. The website is practically unusable when both plugins are activated – only the standard WordPress critical error message is shown.
    The error from the original question is displayed when the debugger is enabled.

    I’ve switched to the storefront theme and disabled every other plugin, but the issue is still there.

    Another specific is that the installation is a multisite network. But this shouldn’t be a problem?

    Here is the UUID: ampwp-3db3ec79-0997-533c-8eff-c2e3c6cf2769

    Thanks for the help,
    Kamen

    Plugin Support Milind More

    (@milindmore22)

    Hello Kamen,

    AMP plugin can work on multisite, I am not sure if the issue is related to your setup or your custom theme.

    As I am only seeing errors pointing toward your theme in the error log.

    eg:

    [20-Oct-2022 17:43:40 UTC] PHP Warning: ClassGoogle_Model` not found in /var/www/vhosts/mdev.somnishop.com/httpdocs/wp-content/themes/somnishop-amp/vendor/google/apiclient-services/autoload.php on line 21
    [20-Oct-2022 17:43:40 UTC] PHP Stack trace:
    [20-Oct-2022 17:43:40 UTC] PHP 1. {main}() /var/www/vhosts/mdev.somnishop.com/httpdocs/index.php:0
    [20-Oct-2022 17:43:40 UTC] PHP 2. require() /var/www/vhosts/mdev.somnishop.com/httpdocs/index.php:17
    [20-Oct-2022 17:43:40 UTC] PHP 3. require_once() /var/www/vhosts/mdev.somnishop.com/httpdocs/wp-blog-header.php:13
    [20-Oct-2022 17:43:40 UTC] PHP 4. require_once() /var/www/vhosts/mdev.somnishop.com/httpdocs/wp-load.php:50
    [20-Oct-2022 17:43:40 UTC] PHP 5. require_once() /var/www/vhosts/mdev.somnishop.com/httpdocs/wp-config.php:81
    [20-Oct-2022 17:43:40 UTC] PHP 6. include() /var/www/vhosts/mdev.somnishop.com/httpdocs/wp-settings.php:566
    [20-Oct-2022 17:43:40 UTC] PHP 7. require_once() /var/www/vhosts/mdev.somnishop.com/httpdocs/wp-content/themes/somnishop-amp/functions.php:18
    [20-Oct-2022 17:43:40 UTC] PHP 8. require_once() /var/www/vhosts/mdev.somnishop.com/httpdocs/wp-content/themes/somnishop-amp/inc/product-import-customization.php:8
    [20-Oct-2022 17:43:40 UTC] PHP 9. ComposerAutoloaderInite45ba34c86caf20846fa0a8de0df4a67::getLoader() /var/www/vhosts/mdev.somnishop.com/httpdocs/wp-content/themes/somnishop-amp/vendor/autoload.php:7
    [20-Oct-2022 17:43:40 UTC] PHP 10. composerRequiree45ba34c86caf20846fa0a8de0df4a67($fileIdentifier = 1f87db08236948d07391152dccb70f04, $file = /var/www/vhosts/mdev.somnishop.com/httpdocs/wp-content/themes/somnishop-amp/vendor/composer/../google/apiclient-services/autoload.php) /var/www/vhosts/mdev.somnishop.com/httpdocs/wp-content/themes/somnishop-amp/vendor/composer/autoload_real.php:61
    [20-Oct-2022 17:43:40 UTC] PHP 11. require() /var/www/vhosts/mdev.somnishop.com/httpdocs/wp-content/themes/somnishop-amp/vendor/composer/autoload_real.php:71
    [20-Oct-2022 17:43:40 UTC] PHP 12. class_alias($user_class_name = Google_Model, $alias_name = Google\\Model) /var/www/vhosts/mdev.somnishop.com/httpdocs/wp-content/themes/somnishop-amp/vendor/google/apiclient-services/autoload.php:21`

    If you see errors even after switching theme please make sure to clear cache also PHP Opcache etc.

    We will recommend self-debugging using health Check and troubleshooting plugin

    To narrow down further, could you use the Health Check & Troubleshooting plugin and enable its troubleshooting mode. This mode disables active plugins and switches to a default theme safely since it only affects the experience of the logged-in user.

    – Please enable the AMP plugin and let me know if the issue is present.
    – Enabling plugins and your theme one by one in this mode may help pinpoint if something else is involved.
    – Note you can disable troubleshooting mode from the plugins page.

    Plugin Support Milind More

    (@milindmore22)

    @kborisov As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

    Thread Starter k.borisov

    (@kborisov)

    I managed to resolve the issue by removing the Amazon Pay Plugin completely, then manually deleting all the data from the wp_options table beginning with woocommerce_amazon_.
    The Amazon Plugin was trying to load classes for an old version of the Amazon Pay API. I have no idea why it did work when the AMP Plugin was active.

    • This reply was modified 2 years, 4 months ago by k.borisov.

    Even my site.com/wp-admin login is FUBARed though, how do you remove the plugins manually? FTP?

    I’ve been using Softaculous WordPress management. When I select ‘Manage Plugins’, I’m about to turn off status on ‘WooCommerce Amazon Pay’, but when I then try to delete it, I get “Cannot delete an active plugin”, implying the plugin wasn’t turned off as indicated.

    Not sure how to best do this manually. Again apologies, I am not a webdev! Ha.

    Plugin Support Milind More

    (@milindmore22)

    @brooksrocco

    Please use this link to create a new support topic

    I can’t access my WordPress dashboard anymore! Can’t edit any plugins/pages, etc. HELP!

    Error thrown
    Class ‘WC_Gateway_Amazon_Payments_Advanced’ not found

    UPDATE:
    I FTP’d in and renamed the WooCommerce Amazon Pay plugin. Then was able to login to the dashboard and delete the plugin.

    • This reply was modified 2 years, 4 months ago by msyracuse.

    We had to rollback to Version 1.13.1, the error disappeared, and Site returned to normal.

    • This reply was modified 2 years, 3 months ago by bouncern.

    We had to rollback to Version 1.13.1 – the error disappeared, and Site returned to normal.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Compatibility issue with WooCommerce Amazon Pay plugin.’ is closed to new replies.