

- If you see the same unexpected behavior on the dashboard and the frontend, this probably means that there’s an index configuration issue.
-
If you see differences between your frontend and the dashboard, check the record’s values for the two visibility attributes (visibility_search and visibility_catalog). If they’re set to 0, they won’t appear on related pages on the frontend.
No images in your results
If all your images suddenly disappear from the frontend, you’ve probably cleared Magento’s image cache (held in the pub/media/catalog/product/cache directory). Algolia’s extension uses Magento’s image cache for product images. To fix this, reindex your products.
Use your favorite browser to help you
Some web browsers have tools to help you investigate frontend issues.Check the source code
Display the source code in your browser to check if you can find:-
The three JavaScript files required by the extension should be listed in the
<head>
section of the HTML:common.js
,instantsearch.js
, andautocomplete.js
. -
The HTML should define the
window.algoliaConfig
variable just after the<head>
section. This variable fetches all the Algolia configurations coming from the Magento back-office. -
Algolia’s search input has replaced the browser’s search input. Search for
name="q"
in the source code: the input should havealgolia-search-input
in its class attribute.
Use the console
In your browser’s console, typealgoliaConfig
, then press Enter
.
The console will display all your Magento configurations.
Use this console output to check if your frontend is up to date with the latest modifications you made in the backend.
Clearing the cache may help, but be aware of image issues.

Check network calls
In your browser’s network tab, filter results with the ” XHR” sub-tab. Then you can monitor each call to Algolia’s servers as you search. By clicking on a call, you’ll get all the information related to the search request and response, which can help determine if the search is working as it should.
Investigate the autocomplete HTML code
To investigate the HTML code of the autocomplete menu with your browser’s developer tools, first activate debug mode in Stores > Algolia Search > Autocomplete Menu > Enable autocomplete menu’s debug mode. If you do this, the autocomplete menu won’t disappear when you click outside the menu, which means you can take a closer look at the HTML generated by the extension.
Check the DOM selector
.columns must be chosen as the DOM selector for search results to be injected into product listing pages. To check this, search for the DOM selector defined in Stores > Algolia Search > InstantSearch Results Page > DOM selector.
Layout customizations
Algolia’s extension updates the native Magento Luma Theme. If you customized your frontend, you might also have to override these Magento layout updates.The Algolia extension uses the standard Magento layout system.
For more information, inspect the file
view/frontend/layout/algolia_search_handle.xml
.Autocomplete menu styles
To customize the styling of the autocomplete menu, see StylingFrontend events
Error: algolia
is not defined
If you’re on Algolia for Magento version 3.10.3 or later and have upgraded from a previous version and you’ve customized the search experience with frontend events, you may encounter the following error:
Uncaught ReferenceError: algolia is not defined

Error: mismatched anonymous define()
module
If you’re loading scripts with both RequireJS and standard <script>
tags, you’ll likely encounter the following error:
Uncaught Error: mismatched anonymous define() module

<script>
tag references in the <head>
section of your layout XML, such as:
XML
requirejs-config.js
as described under Where to place your hook.
For more information about common errors, see the official RequireJS documentation.
Bundle stuffing
With the removal ofalgoliaBundle.js
in version 3.15.0 of the extension,
a mock bundle is supplied in place of the legacy algoliaBundle
parameter that was previously expected in the InstantSearch frontend JavaScript hooks.
To avoid downloading unnecessary libraries to the browser, the mock bundle is lightweight and includes the smallest number of libraries needed for the InstantSearch experience to function.
If you interact with the algoliaBundle
parameter in your customizations, you should verify whether your code expects any libraries that aren’t included in this lighter weight object.
The following libraries have been removed:
Hogan
algoliasearchHelper
autocomplete
createAlgoliaInsightsPlugin
createLocalStorageRecentSearchesPlugin
createQuerySuggestionsPlugin
getAlgoliaResults
algoliaBundle
(now deprecated).
To minimize disruption to any customizations, you can follow these different approaches:
- Inject specific libraries into hooks where needed
- Stuff the mock bundle with additional libraries so they are available to all hooks by writing a mixin on the
mockAlgoliaBundle
function - Inject the original
algoliaBundle
with RequireJS (Please note thatalgoliaBundle.min.js
is deprecated and will be removed in a future release.)
-
requirejs-config.js
JavaScript -
instantsearch-mixin.js
JavaScript
registerHook
function:
JavaScript
CustomAlgolia
sample module.