octobercms/october · error · Error
Cannot find TH element for the Inspector row
Error message
Cannot find TH element for the Inspector row
What it means
Error "Cannot find TH element for the Inspector row" thrown in octobercms/october.
Source
Thrown at modules/backend/assets/foundation/controls/inspector/inspector.surface.js:405
row.setAttribute('data-group-index', this.getGroupManager().getGroupIndex(group))
row.setAttribute('data-parent-group-index', this.getGroupManager().getGroupIndex(group.parentGroup))
}
else {
if (group.parentGroup) {
row.setAttribute('data-parent-group-index', this.getGroupManager().getGroupIndex(group))
}
}
}
Surface.prototype.applyGroupLevelToRow = function(row, group) {
if (row.hasAttribute('data-group-level')) {
return;
}
var th = this.getRowHeadElement(row);
if (th === null) {
throw new Error('Cannot find TH element for the Inspector row');
}
var groupLevel = group.getLevel();
row.setAttribute('data-group-level', groupLevel)
th.children[0].style.marginLeft = groupLevel*10 + 'px'
}
Surface.prototype.toggleGroup = function(row, forceExpand) {
var link = row.querySelector('a'),
groupIndex = row.getAttribute('data-group-index'),
table = this.getRootTable(),
groupManager = this.getGroupManager(),
collapse = true
if ($.oc.foundation.element.hasClass(link, 'expanded') && !forceExpand) {
$.oc.foundation.element.removeClass(link, 'expanded')
}View on GitHub (pinned to b608633a7e)
When it happens
Trigger: Thrown at modules/backend/assets/foundation/controls/inspector/inspector.surface.js:405 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21).
Data as JSON: /api/errors/24f9108771410e95.
Report an issue: GitHub.