• Resolved Gulshan

    (@gukkie)


    The Lazy Load “Show More” feature only works on Chrome and no other browser..I have jQuery migrate disabled. Is this the cause?

    After pressing on “Show More” only the loader spins and the reviews are not shown..

    • This topic was modified 4 years, 3 months ago by Gulshan.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author cusrev

    (@ivole)

    Thanks for trying our plugin!

    No, it is unlikely to be the cause. Please temporarily deactivate all caching plugins and check if it resolves the problem.

    Thread Starter Gulshan

    (@gukkie)

    It works by deactivating my WPRocket cache plugin. But that is unacceptable for me as i am using WPRocket which almost 99% of plugins work with and i require the plugin.

    Is there a file which i can exclude from caching? Is there a work around to this?

    Thanks!

    Plugin Author cusrev

    (@ivole)

    Thanks for providing additional information.

    To protect your website, our plugin uses “nonces” (a security feature in WordPress). They are used to verify AJAX requests for loading additional reviews from the database after somebody clicks on “Show more” button. The problem happens when WP Rocket caches nonces. Even though the backend of your website expects a fresh nonce, WP Rocket serves the expired old nonce that it cached earlier. The expired nonce doesn’t pass security verification and no new reviews are shown.

    I found an article on WP Rocket’s website about this problem: https://docs.wp-rocket.me/article/975-nonces-and-cache-lifespan. Can you please try to apply this solution and see if it works?

    Thread Starter Gulshan

    (@gukkie)

    Hi,

    I have tried that but the default is already set to 10 hours and i have also set it to 6 hours. I have cleared my browser cache and it still does not work for Edge, Chrome, Firefox, Opera and Safari. Is there a way i can bypass this?

    It only works after clearing WP Rocket cache but stops again after a few hours.

    The loader just keeps spinning without showing more reviews.

    • This reply was modified 4 years, 3 months ago by Gulshan.
    • This reply was modified 4 years, 3 months ago by Gulshan.
    • This reply was modified 4 years, 3 months ago by Gulshan.
    Plugin Author cusrev

    (@ivole)

    Thanks for providing additional information.

    If the loader is spinning but no reviews are shown, it means that the frontend tries to read reviews from the backend using an expired (cached) nonce. Since nonce is expired, the security check at the backend fails and no reviews are returned.

    If the solution from WP Rocket’s website doesn’t work, I think you will need to reach out to their support. Please ask them what needs to be done to make caching work properly with AJAX requests to load additional reviews. If they ask for any reasonable modifications in our plugin, we will be happy to make them.

    Plugin Author cusrev

    (@ivole)

    We haven’t heard from you for more than two weeks. For this reason, I’ll assume that either you are not interested in this question/problem anymore or it has been resolved. If this is not the case, please let us know and we’ll be happy to help.

    Thread Starter Gulshan

    (@gukkie)

    Decided not to use this plugin as it is not compatible with WPRocket and there are many other compatible plugins available.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘“Show More” Not Working’ is closed to new replies.