Mysterious Error: ctl.className.indexOf is not a function

> Browser extensions
Cover Image for Mysterious Error: ctl.className.indexOf is not a function

The Error

I saw this error in the logs of a XM 10.2.1 Sitecore instance:

Uncaught TypeError: ctl.className.indexOf is not a function | SessionId-RequestId: xxxxxxx-xxxxxxx | PageUrl: https://cm.acme.com/sitecore/shell/Applications/Content Editor.aspx?sc_bw=1 | UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36

The Source

The source of the error turned out to be the Sitecore Extensions Chrome extension:

Sitecore Extensions

This is a great tool (thanks Allan NULL)!

The Fix and a Reminder

An older version of the extension was installed, somehow leading to this error. The issue went away after updating the extension.

When you come across issues in Sitecore, it's often a good idea to check the browser extensions.

Extension can be a weakness,

-MG


More Posts

Cover Image for Handy PowerShell Script When Working With Text Fields

Handy PowerShell Script When Working With Text Fields

> Quickly analyze freeform text field inputs

Cover Image for XM Vulnerability Exploit Attempts

XM Vulnerability Exploit Attempts

> Learnings from hacker activity in 2023 and 2024

Cover Image for NextJS: Short URL for Viewing Layout Service Response

NextJS: Short URL for Viewing Layout Service Response

> Because the default URL is 2long4me

Cover Image for Symposium 2022 Reflections

Symposium 2022 Reflections

> Sitecore is making big changes

Cover Image for How to Run Old Versions of Solr in a Docker Container

How to Run Old Versions of Solr in a Docker Container

> Please don't make me install another version of Solr on my local...