-
Most Common Issues
- Inactivity Timeout During Rebuild
- Coveo Sort Components Are Stacked in an MVC Search Page
- Security Provider Error Something Went Wrong on the Server
- Problem Accessing the Coveo Admin Service
- Problem Loading the Ninject Assembly
- Empty Strings are not Allowed Exception Occurring When Specifying Creator-Owner Permissions
- Internal Server Error When Querying the REST Service
- Editing the Properties of a Coveo Search MVC Component Freezes the Page Editor in IE11
- Error with ID NO\_DOCUMENT\_INDEXED
- Error or Document Not Found Page After Rebuilding the Indexes
- Problem Registering Search Page Events in Sitecore Analytics Database
- Sitecore Items Do Not Get Automatically Indexed
- Sitecore 8.0 Session is not Initialized Exception
- The Indexing Manager Is Reporting an Error
- Configuration Wizard error - Unable to add the certificate to the Root store. Access is denied.
- Slow Queries in a Coveo-Powered Search Page
- Issue in IE During Admin Service Configuration with the Configuration Wizard
- High Memory Usage While Rebuilding Indexes
- Root Element of a Crawler for a Coveo Index is Invalid
- 404 Errors on Coveo Usage Analytics Search Events
- HTML Version of Indexed Items Are Showing an Error Page
- Coveo-Powered Search Page Fails to Load After Upgrade
- Diagnostic Page Error - Invalid cast from System.String to Coveo.Framework.Configuration.SecurityConfiguration
- Including a Search Box with OmniboxResultList Results in Cannot read property addEventListener of null Error
- Timeout While Expanding Sitecore Security Provider
- NullReferenceException on Tracking.Current When Executing a Request for a Quick View
- Coveo for Sitecore Security Cache Refresh Issues
- How to Modify the Coveo for Sitecore Security Provider Refreshing Parameters
- 403 Forbidden Error When Calling YourSitecoreSite/coveo/rest
- Getting log4net Errors When Attempting to Browse Sitecore Pages
- The Sitecore Security Provider ABC has encountered a fatal exception class CSP FatalException Unable to connect to Sitecore
- No User has been Provided for the Search Request
- Opening Sitecore Indexing Manager Returns a 405 (Method Not Allowed) Error
- Secured Admin Service - Could Not Establish Trust Relationship for the SSL/TLS Secure Channel with Authority Localhost
- Hive Components - Inserting an Example Search Page Results in No Renderings
Including a Search Box with OmniboxResultList Results in Cannot read property addEventListener of null Error
Coveo for Sitecore (October 2016) Coveo for Sitecore (December 2016)
Symptoms
When including a searchbox with a Coveo for Sitecore OmniboxResultList and a second Coveo Search component, which can either be another searchbox or a Coveo Search Interface, the page turns to white. In the browser console, you get the following error:
"TypeError: Cannot read property 'addEventListener' of null
Cause
The OmniboxResultList is trying to find an input
tag under an element with the CoveoSearchbox
class. When including two components, the CoveoSearchbox
class is picked up, but since the second component isn’t yet initialized, the input
doesn’t yet exist.
Resolution
To fix the issue, add an invisible input
under the element that’s causing the problem.
-
Access the Coveo Searchbox file associated with your search page.
-
When using Web Forms, it should be located under or near
<SITECORE_INSTANCE_ROOT>\Website\layouts
, and should be a.ascx
or.aspx
file. -
When using MVC, it should be located under or near
<SITECORE_INSTANCE_ROOT>\Website\Views
, and should be a.cshtml
file.
-
-
Locate the element with a class
CoveoSearchbox
in the file. -
Inside the div, add the following line:
<!-- Fix for Coveo for Sitecore 4.0.450 when including two Coveo components and using the OmniboxResultList component. --> <input style="display:none"></input>
The integration should look like this:
<div class="CoveoSearchbox CoveoSearchPageSearchbox" ... > <!-- Fix for Coveo for Sitecore 4.0.450 when including two Coveo components and using the OmniboxResultList component. --> <input style="display:none"></input> </div>
-
Save and close the file.
-
Repeat the same steps with the Coveo Search file associated to your search page.
-
When using Web Forms, it should be located under or near
<SITECORE_INSTANCE_ROOT>\Website\layouts
, and should be a.ascx
or.aspx
file. -
When using MVC, it should be located under or near
<SITECORE_INSTANCE_ROOT>\Website\Views
, and should be a.cshtml
file.
-