• Resolved evildoer

    (@evildoer)


    Customers are getting an error when they try to add items to the shopping cart.

    Error! Nonce Security Check Failed!

    It is sporadic. It takes a few tries / adding items to the cart before the error shows up. Once the error shows up the cart will no longer work until I delete the cache in admin. Then the cart will work for a while until it crashes again. Customers have been complaining and my client is losing business. Sales have been way off for months now making it hard to determine how long this problem has been happening.

    This website has been running fine since 2016 with few changes.

    When I’m logged into my client’s WordPress site as an admin and test the shopping cart, it seems to work fine.

    I have disabled the nonce check long ago. I am using litespeed cache plugin with no problems for a long time (years) am using and cart version 4.6.9.

    I discovered the following in the cPanel error log:

    [13-Sep-2023 23:29:04 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/xxxxxxx/public_html/xxxxxxxxx.com/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 490
    [13-Sep-2023 23:29:04 UTC] PHP Warning: sort() expects parameter 1 to be array, bool given in /home/xxxxxx/public_html/xxxxxxxx.com/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 499

    I read the 2 other support references to this problem with no real solution.

    Please advise.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi,

    Once the error shows up the cart will no longer work until I delete the cache in admin. Then the cart will work for a while until it crashes again.

    This sounds like a cache issue. Has anything changed in your site or server lately? Has your cache plugin been updated lately?

    You can also use the following documentation to determine if the PHP session on the site is working correctly:
    https://www.tipsandtricks-hq.com/forum/topic/php-session-not-working-correctly

    Also, can you share the shortcode you are currently using?

    Kind regards.

    Thread Starter evildoer

    (@evildoer)

    [wp_cart_button name=”Garlicious Grind 4 ounce jar” price=”8.00″]

    [show_wp_shopping_cart]

    Litespeed Cache plugin looks like it was update August 17th, 2023

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Your shortcodes look okay to me. I think your cache plugin is probably causing this issue.

    Have you also spoken to your host support team regarding any recent sever updates? Or did your host add some type of caching system to your server?

    Kind regards.

    I have 3 products on the page and suddenly one is getting an error

    “Error! The price field may have been tampered. Security check failed.

    If this site uses any caching, empty the cache then try again.”

    I’ve tried emptying the cache and tried installing WP Fastest cache.

    I’ve duplicated and updated another block that worked and it that didn’t work.

    The code is

    [wp_cart_button name=”T’ai Chi Ch’üan private session” price=”$75.00″]

    Can you help shed some light?

    Plugin Contributor mbrsolution

    (@mbrsolution)

    @suezeeme, please start a new support thread.

    Thank you.

    Thread Starter evildoer

    (@evildoer)

    My problem turned out to be Litespeed cache plugin. I disabled and reverted to Autoptimize and cart works fine now.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error ! Nonce Security Check Failed ! Sporadic’ is closed to new replies.