• Resolved Imagevanderk

    (@vanderk)


    I’m seeing continuous woocommerce-paypal-payments log entries like this on my live site:

    Error – Cart simulation failed: Could not validate nonce.

    These appear roughly once per minute, even when no one is actively checking out. I don’t know when it started but has been going on as far back as my logs show (3/10/26).

    Site details

    • Site URL: https://arrow4graphics.com
    • WooCommerce version: Version 10.6.2
    • WooCommerce PayPal Payments version: Version 4.0.2
    • WordPress version: 6.9.4
    • Theme: Kadence (free)
    • Hosting: ICDSoft
    • Caching/CDN: WP Rocket, server‑side cache, Cloudflare (free)
    • Other key plugins: Rank Math, Wordfence, Ajax Search Pro, Cloudflare Turnstile, WooCommerce Shipping & Tax, etc.

    What I’m seeing

    • Example log block:

    text

    2026-04-08T13:23:26+00:00 Error #4683 – Cart simulation failed: Could not validate nonce.

    2026-04-08T13:24:26+00:00 Error #6258 – Cart simulation failed: Could not validate nonce.

    (similar entries continue about once a minute)

    • Real payments: multiple Credit/debit card and PayPal payments succeeded and one was declined by the provider (normal decline), so live checkout is mostly working.

    Steps I already tried

    1. Excluded WooCommerce pages from Cloudflare cache using Cache Response Rules:
      • *arrow4graphics.com/cart*
      • *arrow4graphics.com/checkout*
      • *arrow4graphics.com/my-account*
      • *arrow4graphics.com/?wc-ajax=*
        All set with Cache-Control: no-cache and cache purged afterward.
    2. WP Rocket: confirmed cart/checkout/my‑account are excluded from caching and cleared plugin + server cache.
    3. Tested in an incognito browser to avoid any logged‑in or cookie issues.
    4. The same errors do not appear on my staging site, which uses PayPal sandbox and similar plugins/settings.

    Despite this, the “Cart simulation failed: Could not validate nonce” errors continue on live about once per minute.

    Questions

    1. Is this expected background behavior that can be safely ignored, or does it indicate a real problem that could affect customers?
    2. Are there known issues in my WooCommerce PayPal Payments version related to the cart simulation nonce validation?
    3. Is there any filter or setting I can use to disable or adjust the cart simulation endpoint, or further debug why the nonce is failing?

    I can provide:

    • Full woocommerce-paypal-payments log for today
    • WooCommerce System Status report
    • Specific Debug IDs if needed

    Thank you for any guidance you can provide.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @vanderk ,

    Thank you for your detailed report and for sharing all the context — this really helps a lot in narrowing things down.

    I’ve reviewed your case along with similar reports, and I’d like to clarify what’s happening and address your questions directly.

    What this error actually means

    The log message: “Cart simulation failed: Could not validate nonce” is not the root cause of an issue, but rather a warning generated during a background process.

    The PayPal plugin performs a cart simulation in the background to calculate totals before creating an order. If that request runs without a valid session/nonce, the validation fails and the log entry is created. This commonly happens due to:

    • Cached or stateless requests
    • Expired sessions
    • Background calls (not real user actions)

    1. Is this expected behavior or a real problem?

    Based on:

    • Your successful live transactions
    • No checkout failures reported
    • The errors occurring regularly even without users

    This is generally considered non-blocking behavior and can often be safely ignored from a functional standpoint. These logs are not necessarily tied to failed payments and are often just noise from background validation.

    2. Are there known issues with your plugin version?

    There are no confirmed widespread regressions tied specifically to your version (4.0.2) regarding this error. However, similar reports across versions indicate:

    • The message appears frequently in logs
    • It is usually not the root issue, but a side effect of caching or session handling

    3. Can this be disabled or adjusted?

    There is no official setting to fully disable cart simulation, as it’s part of how PayPal keeps totals accurate. However, you can try this PHP snippet on a staging/test website:

    add_filter( 'woocommerce_paypal_payments_simulate_cart_enabled', '__return_false' );

    However, it’s not guaranteed to resolve the logs and is generally not recommended unless needed for testing.

    Recommended next steps

    To confirm the source, we suggest:

    1. Temporarily enable Cloudflare Development Mode (or pause it briefly)
    2. Disable WP Rocket for a few minutes
    3. Monitor logs for 5–10 minutes

    If logs stop, it confirms a caching layer is triggering these requests. If everything is working fine on the checkout side, then this is very likely just log noise from background processes.

    Please note that within this forum, we focus on supporting WooCommerce core functionality. Since this behavior originates from the WooCommerce PayPal Payments plugin, the best place for deeper investigation or plugin-specific fixes would be their dedicated support channel:
    https://wordpress.org/support/plugin/woocommerce-paypal-payments/

    That said, if you notice any issues directly related to WooCommerce core features, please don’t hesitate to let us know — we’ll be more than happy to assist.

    Best regards,
    Mina Emad

    Plugin Support Imageshahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,

    Thank you for the detailed information and the steps you’ve already taken this is really helpful.

    From what you’ve described, the issue appears to be specifically related to the WooCommerce PayPal Payments plugin, particularly around its internal cart simulation process and nonce validation.

    Since this functionality is handled entirely by the PayPal Payments plugin (and not WooCommerce core), the best course of action would be to reach out directly to the plugin’s support team so they can investigate this behavior further.

    You can contact them here:
    https://wordpress.org/support/plugin/woocommerce-paypal-payments/

    Thank you for understanding and cooperation.

    Thread Starter Imagevanderk

    (@vanderk)

    Thank you, Mina. I tried your recommendations and am still getting the error messages so I will shift over to the WooCommerce PayPal Payments forum as recommended by you and shahzeen and tag this one as resolved.

    Plugin Support ImageLovingBro (woo-hc)

    (@lovingbro)

    Hi @vanderk,

    It’s great to hear back from you, and I’m really glad we could help point you in the right direction on this one.

    Thanks as well for taking the time to test things thoroughly and for following through by reaching out to the WooCommerce PayPal Payments team, that’s the right step for a deeper look into this behavior.

    If everything is working well on your end now, we’d really appreciate it if you could share a quick review of your experience with WooCommerce. It helps other merchants who might run into a similar situation. You can leave a review here, https://wordpress.org/support/plugin/woocommerce/reviews/#new-post

    If anything else comes up on the WooCommerce side, feel free to reach out anytime, happy to help.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.