Zendesk Javascript Syntax Error in X

Good day,

I have a Zendesk chat widget that I’m attempting to install in the “X” theme and the editor is telling me there’s a syntax error that I can’t identify. I’ve installed the script successfully in other sites I manage running different themes, but “X”/Cornerstone seems to be having an issue. The site in question is uAttend.com. There is a Zendesk powered chat widget installed there but it is the old version and it needs to be updated. The current chat widget that IS functioning correctly can be seen on upunch.com. Any insights you can offer would be greatly appreciated.

Thank you!

Hi Jay,

Thank you for writing in, please do the following first.

  • Ensure that you are fully up to date. WordPress, Theme, and Cornerstone (Version Compatibility)

  • Clear all the site caches (plugin, server-side, CDN, and browser’s cache) so that the code from the latest release is always in use. This will help you to avoid any potential errors.

  • Test for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

Cheers!

Hi Friech,

I updated all assets in our staging environment but still see the following when I attempt to install the script.

Any thoughts?

Thanks!

Hi @Jayzer6,

The Global JS editor is already output inside a script tag, so it can’t include <script> tags or any kind of HTML. You could use a plugin like this one to add additional HTML to your site.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.