elementor / wp2static-addon-algolia

Algolia search add-on for WP2Static
https://wp2static.com/addons/algolia/
The Unlicense
10 stars 6 forks source link

addon-algolia doesn't work #5

Open dag7dev opened 3 years ago

dag7dev commented 3 years ago

Hi Leon. I tried this plugin by this plugin by generating its zip package. I have installed in my local WP environment, nothing's wrong during compilation.

However, it doesn't show up in wp2static plugin section, even if WP tells which it is installed.

I also tried your lokl both with PHP 7 and PHP 8, because I thought it would have been simpler, but it doesn't show up as well.

What am I missing?

EDIT: also I did not understand a thing. Should I install wp2static-addon-algolia or "WP Search with Algolia" the community version, or both of them? If I try to activate both versions at the same time it drops me a wonderful: Fatal error: Cannot redeclare Algolia\AlgoliaSearch\api_path() (previously declared in /usr/html/wp-content/plugins/wp2static-addon-algolia/vendor/algolia/algoliasearch-client-php/src/functions.php:2) in /usr/html/wp-content/plugins/wp-search-with-algolia/includes/libraries/algoliasearch-client-php/src/functions.php on line 5

If I try to install just addon-algolia, it doesn't work as I told before. If just community plugin, it works locally but not offline (obviously the path are not re-written and many other stuff).

leonstafford commented 3 years ago

Hi @dag7dev,

Thanks for trying it out. Unfortunately, I don't think this add-on ever got to a first release stage. Regardless, it hasn't been tested in a long time and would not be compatible with some changes to the core's add-ons registration function.

If you can find my old docs about hacking the official Algolia WP plugin to send the destination URLs, you may be able to get a working solution.

Once I have a stable release, I'll include it into Lokl. Same deal with WooCommerce -> Snipcart add-on, not ready for release yet.

Let me know if you're able to fiddle and get something working by modifying Algolia's WP plugin.

I'd love to update this to get it working, but won't be able to focus on it this week.

faruqsandi commented 2 years ago

Hello there! I ran into the same problem, and I found this: https://www.getshifter.io/tips-using-algolia-with-jamstack-wordpress/ I think the author also create this plugin: https://wordpress.org/plugins/search-with-algolia-headless-extention/ I tested it in my localhost, and the search result go to the live site.