• Resolved Julie Lawrence

    (@julie-lawrence)


    Hi! This plugin is slowing my site down horrifically (sporadically). Query Monitor tells me I’m getting 7 failing api calls just trying to load the home page or blog page:

    ——-

    POST

    https://api-m.paypal.com/v1/oauth2/token
    ?grant_type=client_credentials

    429 Too Many Requests (sometimes 400 instead)

    1. WooCommerce\P\A\A\PayPalBearer->request()

    Plugin: woocommerce-paypal-payments

    ——

    I’m trying to work out what the conflict is – will try reconnecting the PayPal account when I get access to that – but in the meantime, is there a way to stop those calls happening on pages that aren’t even using WC, like you can with WC itself, with calls like wp_dequeue_script( ‘woocommerce’ )? (see https://isotropic.co/how-to-stop-woocommerce-scripts-from-loading-on-non-shop-pages-optimize-scripts/) … are there specific scripts I can dequeue for WPP?

    Thanks!

    Julie

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Julie Lawrence

    (@julie-lawrence)

    I’ve made a local copy, with ONLY Woocommerce and WC Paypal Payments installed, and changed the theme, and I’m STILL getting the same issue. I don’t get the issue if I install them both in a clean wordpress installation. I’m totally out of ideas in how to debug this!

    Another similar post (https://www.ads-software.com/support/topic/authentication-with-paypal-failed-could-not-create-token/) had a similar issue, and it was resolved by turning off caches – I’ve tried that too, at both the server level, and removed any caching plugins. Still no luck.

    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @julie-lawrence

    Thanks for reaching out to us, we’re here to help.

    The issue you’re encountering is recognized and is often due to invalid credentials in the plugin settings, which results in an excessive number of API requests and slows down your website.

    If this is possible navigate to the ‘Connection’ tab. In this tab, there’s an option labeled Remove PayPal Payments data from the database with the button ‘Clear now’.

    chrome_BgAXr7M6fu.png

    Please use this to reset the current settings. This action will clear any incorrect configurations. Once you have cleared the settings, the next step is to set up the plugin again. For this, please use the?onboarding wizard?to connect the plugin.

    Alternatively, if you’re unable to access the plugin settings directly, another approach is to manually reset the configuration by deleting or renaming the woocommerce-ppcp-settings option in the wp_options table of your WordPress database. This can be done through a database management tool like Adminer.

    To help you further, we have prepared an instructional video that includes the installation of the plugin and making the necessary changes. You can watch the video here:?Instructional Video.

    This should help guide you through the process step by step. If you have any more questions or need additional assistance, please feel free to reach out.

    Kind regards,
    Krystian

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Stop fns from running on non woocommerce pages’ is closed to new replies.