Support » Plugin: TI WooCommerce Wishlist » Premium version triggers Ajax error 403, not the free version

  • jeff2mars

    (@jeff2mars)


    Hi
    I was using the free version 1.21.13 without any problem, but after purchasing the last premium version 1.21.6 I have an error 403 in the dev console on this file :

    wp-content/plugins/ti-woocommerce-wishlist-premium/includes/api/ajax.php

    As a result, even though the add to wishlist button still adds the item in the wishlist, when we reload the page the heart icon is outlined like if the item wasn’t already in the wishlist.

    If i go back to the free version, everything works fine…

    • This topic was modified 2 months ago by jeff2mars.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author templateinvaders

    (@templateinvaders)

    Hi @jeff2mars

    It could be a cache issue OR some restrictions to access the mentioned file from the web.
    Could you share a link where we can check it?

    jeff2mars

    (@jeff2mars)

    https://www.oblade.fr/categorie-produit/bracelets-homme/bracelets-en-perles/collection-fuji/

    When disabling my cache plugin the bug is still there

    • This reply was modified 2 months ago by jeff2mars.
    Plugin Author templateinvaders

    (@templateinvaders)

    Hi @jeff2mars

    The issue in the server cache because our script returns 403 error code related to authorization:
    “Forbidden: wrong nonce.”

    You need to set cache lifespan and clear all current cache to make it work. The issue affects any code that using WP nonce for security purposes.

    You can read more details here from one of the top cache plugins:
    https://docs.wp-rocket.me/article/975-nonces-and-cache-lifespan

    I’ve deleted all the caches, set the cache lifespan to 8 hours, the bug is still there. I’m using LSCache on a Litespeed server. I have other plugins using Ajax without any issue. Let me remember you that the problem is only on the premium version, what’s different from the free version regarding my issue? It’s only when i click on an add to wishlist button on the shop page, that the heart icons of each already-in-wishlist item turns fully colored… but when loading the page, all the icons of the already-in-wishlist items are outlined like if they were not already in the wishlist ! Have you checked that THIS issue is not on your side before answering me?

    PS: it would be much appreciated that you don’t set the topic as resolved until it is.
    PS2: please read my issue in details, have you considered that it is not present on the free version ?

    • This reply was modified 1 month, 4 weeks ago by jeff2mars.
    • This reply was modified 1 month, 4 weeks ago by jeff2mars.
    • This reply was modified 1 month, 4 weeks ago by jeff2mars.
    • This reply was modified 1 month, 4 weeks ago by jeff2mars.
    • This reply was modified 1 month, 4 weeks ago by jeff2mars.
    • This reply was modified 1 month, 4 weeks ago by jeff2mars.
    • This reply was modified 1 month, 4 weeks ago by jeff2mars.
    • This reply was modified 1 month, 4 weeks ago by jeff2mars.

    PS3: I have activated the free version again, so you won’t see the issue at the moment if you go check the page

    Plugin Author templateinvaders

    (@templateinvaders)

    Hi @jeff2mars

    You can check that the free version produced the same 403 error with our custom AJAX endpoint. All other described issues depend on this bottleneck and could be different for the free and premium versions.

    As we checked you are using LiteSpeed cache and it’s a common issue with WP nonces for this plugin. You can use ESI settings to fix your issue by adding the next nonce:
    wp_rest

    Check the plugin FAQ section https://wordpress.org/plugins/litespeed-cache/#faq for the question “How do I make a WP nonce cacheable in my third-party plugin?”

    Please, reply to this topic with results.

    I’ve enabled ESI. The 403 Ajax error is fixed BUT my issue is still there.

    Again, please verify this issue is not on your side, in the premium version.

    Go to https://www.oblade.fr/categorie-produit/bracelets-homme/bracelets-en-perles/collection-fuji/, click on the heart icon to add a product in wishlist, then refresh the page… and see that the icon is not showing the product is already in wishlist.

    • This reply was modified 1 month, 3 weeks ago by jeff2mars.

    Support? Are you on holiday?

    As you all seem on holiday, I will ask a full refund in a few days

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.