• Resolved supajug

    (@supajug)


    Hi,

    Autocomplete doesn’t work when I’m logged out the admin.
    It works only when I’m logged.
    Looks like it’s about ajax.

    Any help would be greatly appreciated,

    Regards

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor rayrutjes

    (@rayrutjes)

    Hey there,

    Do you have any errors in the console?
    Could you share a live URL?

    Looking forward to solve your issue.

    Plugin Contributor rayrutjes

    (@rayrutjes)

    Could you also let me know if you are using any kind of caching plugin?

    Thread Starter supajug

    (@supajug)

    Hi, I use WP Rocket for cache.
    You can test the search field there, on the right (the small one with the ok button)
    https://www.couponer.fr/blog/

    Thanx

    Plugin Author Algolia

    (@algolia)

    It looks like the inlined JS code triggers before jQuery is loaded.
    I will try to re-produce it.

    Can you confirm that when you disable WP-Rocket the problem goes away?

    Thread Starter supajug

    (@supajug)

    yes, it works when WP-Rocket is disabled

    Plugin Contributor rayrutjes

    (@rayrutjes)

    I opened an issue for future investigation.
    Please bear with us: https://github.com/algolia/algoliasearch-wordpress/issues/590

    Thread Starter supajug

    (@supajug)

    I figured out that loading jquery in the footer with WP-Rocket makes autocomplete doesn’t work.
    I have temporary made a change that load jquery in the header but not good for Google Page Speed…

    Plugin Contributor rayrutjes

    (@rayrutjes)

    The best I can offer for now is indeed to not add jQuery to the footer.
    We will try to find a solution to this issue. Leaving this open in the meantime.

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

The topic ‘Autocomplete doesn’t work when logged out’ is closed to new replies.