• Resolved yourshandyman

    (@yourshandyman)


    site_reviews shortcode not working correctly;
    site_reviews shortcode once works 6 hours once it works 12, unfortunately every time you need to refresh the Cache, then it starts working again. I have checked all possible sections and unfortunately I can not find the problem

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

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    @yourshandyman

    It looks like your problem is being caused by the WP Fastest Cache plugin that you are using on your website.

    Cache plugins serve a static version of your page which makes the page load faster as it does not have to query the database. The problem here is that when the database is changed then the cache needs to be cleared, otherwise it will continue to serve the static page which will no longer contain the updated page content.

    When a review is submitted, this adds a new review to the database. If the cache is not cleared when this happens, then your reviews page will not display the new reviews (until the cache is cleared again).

    I am unsure how you have your reviews page set up. However, if you are displaying your reviews on the same page that you provide the review submission form, then the code in the link below should help solve this problem:

    https://pastebin.com/C97n2RW4

    If it does not, you will need to contact the authors of the caching plugin that you are using (which I assume is the “WP Fastest Cache” plugin) and ask them for assistance to configure the caching plugin settings correctly.

    Thread Starter yourshandyman

    (@yourshandyman)

    unfortunately this is not happening when adding any reviews, it happens without a reason, it works and stops working, which is interesting as I’m logged in to WordPress, everything is ok but when log out after a few minutes and it stops working

    Plugin Author Gemini Labs

    (@geminilabs)

    And what happens when the caching plugin is disabled. Do you experience the same problems?

    Thread Starter yourshandyman

    (@yourshandyman)

    I will do the test and answer the question

    Plugin Author Gemini Labs

    (@geminilabs)

    Most caching plugins are configured by default not to cache the pages when logged in, only when logged out. So if this is only happening when your caching plugin is enabled and you are logged out, then it is due to the way the caching plugin is configured.

    Thread Starter yourshandyman

    (@yourshandyman)

    The Fast cache application is disabled, I will wait a few hours and i will refresh the site

    The problem is caused by wp nonce security system. You should set a cache timeout rule as below.

    https://www.wpfastestcache.com/tutorial/wordpress-nonce-cache/

    Thread Starter yourshandyman

    (@yourshandyman)

    I did the test by switching off the fast cache and everything works correctly, now I will perform the recommended operation

    Thread Starter yourshandyman

    (@yourshandyman)

    ok, I’ve done the operations now, I’m waiting for the result

    Thread Starter yourshandyman

    (@yourshandyman)

    unfortunately, it stopped working immediately

    Thread Starter yourshandyman

    (@yourshandyman)

    it is interesting that only the main page does not work, and on the other pages it works
    https://yourshandyman.co.uk/ not ok
    https://yourshandyman.co.uk/painting-decorating/ ok

    Thread Starter yourshandyman

    (@yourshandyman)

    I did the recommended actions, unfortunately it stopped working after 10 hours, I am in the course of further tests

    Plugin Author Gemini Labs

    (@geminilabs)

    @yourshandyman since Site Reviews works when the WP Fastest Cache is disabled, the problem is due to that plugin.

    Caching plugins are never a one-click solution. They usually must be configured to fit each specific website that they are used on.

    I suggest you submit a support request on the WP Fastest Cache support page so that they can help you.

    @emrevona Site Reviews only uses a nonce on the review submission form for logged-in users. It does not use a nonce for guest users as this is not necessary.

    • This reply was modified 5 years, 10 months ago by Gemini Labs.
    Thread Starter yourshandyman

    (@yourshandyman)

    Thank you for the suggestions, unfortunately this problem applies to both developers, because both sides did not find the answer to my problem, I believe that this information will be valuable for users who will have a similar problem, I will continue this post until the problem is solved. I do tests additional options of both applications.

    Thread Starter yourshandyman

    (@yourshandyman)

    I wanted to add that the problem only occurs on the main page, all the other pages work correctly

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘site_reviews shortcode not working correctly’ is closed to new replies.