Gravatar for ravigupta020287@gmail.com

Question by Ravi, Jun 1, 2017 5:59 PM

Search view does not show anything

I have added a Coveo MVC SearchView in my site that uses Coveo for Sitecore 4. It was working at first but sometime nothing is coming on the page. I see the Coveo loading image when the page is loading, in browser console the call is made successfully to the rest services, but nothing actually gets rendered on the preview mode or normal mode. I checked the browser console there is no error related to coveo.

All correct parameters are also checked in the component and also added the coveo resources before search view component.

Anybody has any idea about this issue?

Thanks!

Ravi

Gravatar for sbelzile@coveo.com

Comment by Sébastien Belzile, Jun 1, 2017 6:23 PM

en.js => that is one of the JS UI files. Can you confirm it is the same?

Could you try to locate on which object the error is occuring?

Gravatar for flguillemette@coveo.com

Comment by François Lachance-Guillemette, Jun 1, 2017 7:05 PM

Are you loading some files asynchronously?

Since it _sometimes_ work, there might be a simple race condition between the loading of the files.

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Jun 1, 2017 7:43 PM

Could it be some HTML tags that are opened but never closed? Thus the DOM could be in an invalid state and updating it with the results happens to update an hidden section. Check your result templates and also the DOM around the search interface.

Gravatar for ravigupta020287@gmail.com

Comment by Ravi, Jun 2, 2017 2:54 AM

The en.js file is loading correctly and also i didn't find any error in javascript or in sitecore logs.

There is no asynchronously loaded files in the page.

checked the markup it appears to be correct.

One more point to add here is we have one more global coveo search box in the header of the page, does it change anything?

0 Reply
Ask a question