Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addon-algolia doesn't work #5

Open
dag7dev opened this issue May 14, 2021 · 2 comments
Open

addon-algolia doesn't work #5

dag7dev opened this issue May 14, 2021 · 2 comments

Comments

@dag7dev
Copy link

dag7dev commented May 14, 2021

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).

@dag7dev dag7dev changed the title addon-algolia doens't work addon-algolia doesn't work May 14, 2021
@leonstafford
Copy link
Contributor

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
Copy link

faruqsandi commented Sep 2, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants