WebDevStudios / wp-search-with-algolia

Improve search on your site. Autocomplete is included, along with full control over look, feel and relevance.
https://wordpress.org/plugins/wp-search-with-algolia/
146 stars 55 forks source link

Invalid Application-ID or API key #399

Closed rblackfox closed 9 months ago

rblackfox commented 9 months ago

Describe the bug Testing out the plugin and we cannot connect to Algolia. Admin API field is greyed out and cannot be inputed:

To Reproduce Steps to reproduce the behavior:

  1. Install & Activate Plugin
  2. Enter Application ID, Search Only API-key
  3. Try to Enter Admin API Key but cannot because field is greyed out. Click save.
  4. Receive Error: "Invalid Application-ID or API key"
  5. What next? Why can't we enter an Amin API key??

Expected behavior Be able to enter Admin API keys and connect to Algolia so we can test the plugin.

Screenshots

Screen Shot 2024-02-19 at 2 47 17 PM
tw2113 commented 9 months ago

If you have grayed out inputs, then there's a good chance you have some of our constants defined somewhere, probably your wp-config.php file.

You can see all our constants at https://github.com/WebDevStudios/wp-search-with-algolia/wiki/Constants#constants-reference

rblackfox commented 9 months ago

Well, I don't think that is the case, we do not have any of these constants listed currently in our config file. Other suggestions? We have some Elastic Search components in the config file... not sure if those would interfere?

Thanks!

rblackfox commented 9 months ago

It was the Algolia WooCommerce Indexer Plugin interfering. Fixed. Thanks for the assistance \m/

tw2113 commented 9 months ago

Glad we got it figured out and tracked down.

I know WP Search with Algolia is very much a fork of Algolia's own plugin from years ago that they abandoned, so I could definitely see similar codebases and possibly similar configs running into each other like this.