If your server is using New Relic, you will likely experience issues with FacetWP. The facets will keep spinning infinitely, and this error will appear in your browser console:
Uncaught SyntaxError: Unexpected token t
New Relic is a performance monitoring application. It tracks user activity and application performance, including page load timing.
The problem is that New Relic inadvertently injects itself into FacetWP’s ajax response. Since the scripts aren’t properly escaped, it breaks the JSON object.
There are several options to resolve the issue:
- Disable New Relic (or ask your web host)
- Add newrelic_disable_autorum() to template files of FacetWP-enabled pages
- Disable browser management features within New Relic’s UI