Do you have a URL we could visit to see things “breaking” to check on if the issues are resolvable some other way? The plugin makes use of AJAX and javascript a lot for the results display, so there’s not really URL to exclude, outside of just having the javascript files not cached in some way.
Just turned on the caching plugin on mylondonpharmacy.co.uk . Algolia stops working instantly.
https://cloudup.com/cXu4LnJZiWv
While I’m seeing a jQuery error, it is also giving me Algolia based results, as per my screenshot above
Yes but not the suggestions under the search field. I will turn off the caching plugin so you maybe take a look, if you have time, at how the search bar works without caching, please?
Can you confirm that you have Autocomplete enabled and at least one of the content types checked and indexed, all via the /wp-admin/admin.php?page=algolia
admin page?
https://prnt.sc/lMGKWB329Ekf
this and the products are checked
I’m assuming the caching is turned off at the moment? Since I got autocomplete recommendations to show up.
https://cloudup.com/c3JOmjl_fsj
However if caching is turned on still, then it seems to still be working and maybe resolved?
Yes, the caching is turned off. Immediately it’s turned on, the autocomplete turns off too.
Thank you but it didn’t work: https://prnt.sc/Uxatdj4CtQkm
I had to turn off caching again, to have Algolia sugestions
Can you please leave caching on for a little bit so that we can troubleshoot what may be going on a bit more?
Activated the cache, thank you.
I’m seeing the Algolia autocomplete JS found in https://mylondonpharmacy.co.uk/wp-content/uploads/siteground-optimizer-assets/siteground-optimizer-combined-js-530f3ed465bd3859dae5176009a11c3f.js which is going to be getting generated by the SiteGround plugin and whatnot. The biggest thing that I think is contributing is that jQuery is not defined error. The plugin’s default templates do make use of jQuery for getting things handled.
So I’m wondering if excluding jQuery from the optimizations would help clear everything up.
Thank you very much, I didn’t find any option related to JQuery but I unchecked JS, CSS and HTML minifications and the autocomplete works now. I’ll play a bit with these options but I think we can mark this thread solved. Thank you very much for the help!
-
This reply was modified 2 years, 4 months ago by scratchy.
Chances are you’d want to track down the URL for the WordPress core bundled copy which is usually coming from the wp-includes folder.
That said, sounds like things are in at least a bit better of a place and you’ll keep fiddling.