• Resolved hannahsweb

    (@hannahsweb)


    Hi! The instantsearch.php is throwing the following vague error:

    Uncaught TypeError: Cannot read property ‘content’ of undefined

    You can type in the search box and it says how many results should show but no hits actually populate.

    I have tried deactivating all other plugins and switching to the twenty-fifteen theme but the same console error occurs. I have tried searching for any jquery conflicts such as multiple version of jquery loading. Any guidance would be greatly appreciated.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor rayrutjes

    (@rayrutjes)

    Hi @hannahsweb,

    Sorry about that!

    What version of the plugin are you using?

    Have you manually made changes to the indices?

    Have you implemented some Algolia filter hooks?

    Thread Starter hannahsweb

    (@hannahsweb)

    Sorry for the delay in responding. For some reason I didn’t get this reply to my email.

    Plugin Version 1.3.0

    I didn’t manually do anything to the indices, just did the auto-mated process in the WordPress backend to add them. I do have about 7 Custom Post Types being indexed.

    I have not implemented any Algolia Filter hooks.

    Plugin Contributor rayrutjes

    (@rayrutjes)

    Hi @hannahsweb,

    Would it be possible that we access a running instance of your website where we can observe the issue to investigate a bit more?

    Thread Starter hannahsweb

    (@hannahsweb)

    Here is the search results page, the search form is in the header of all other pages. The development of the website is in-progress but we shouldn’t be touching the Algolia results page unless we get a fix from you all. If you want I can quickly create a new site with a twenty-twelve theme and all other plugins turned off, but the error is the same.

    https://idra.wpengine.com/?s=Test

    Plugin Contributor rayrutjes

    (@rayrutjes)

    Hi @hannahsweb,

    Thanks a lot for sharing the link,

    I just took a look and it appears to me that you have no ‘searchable attributes’ configured for the searchable_posts index.

    Have you maybe tried to customize the ranking in the Algolia dashboard?

    To fix the problem, you could just re-index everything from the “indexing” screen of the plugin’s admin. This will re-create the indices and reset the settings.

    If you used hooks to customize the settings, you probably did remove the required ‘attributesToIndex’ key.

    Please keep me posted on this, I’d gladly help you more,

    Thread Starter hannahsweb

    (@hannahsweb)

    Oh man! I can’t believe that was it! I thought I re-indexed when I selected the Searchable Posts option but apparently not. Thank you so much! It is working now.

    Plugin Contributor rayrutjes

    (@rayrutjes)

    I’m glad you worked it out!

    If you wish to customize the instant results page, take a look here: https://community.algolia.com/wordpress/customize-search-page.html

    Let me know if there is anything else I can help you with!

    Thread Starter hannahsweb

    (@hannahsweb)

    I should be good moving forward. I actually already had the template files in my theme because I am calling my header & footer from a subdirectory and it wasn’t showing them initially so I am good to customize the results.

    Thanks again! I’ll mark it resolved.

    Plugin Contributor rayrutjes

    (@rayrutjes)

    Please feel free to reach out at any time!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘console error on instantsearch.php’ is closed to new replies.