octobercms/october · error · Error

The table cell validator

Error message

The table cell validator "{validatorName}" for the column "{columnName}" is not found in the $.oc.table.validator namespace.

What it means

Runtime configuration guard in initValidators: while building validators for a column, a name found under columnConfiguration.validation has no matching class in $.oc.table.validator. The column YAML/definition references a validator that is not registered or misspelled.

Solutions

  1. Correct the validator name in the column's validation configuration to a registered one (base, required, length, regex, integer, float)
  2. Register a custom validator class under $.oc.table.validator with the same key
  3. Check for typos/case mismatch between config key and validator class name
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at modules/backend/widgets/table/assets/js/table.processor.base.js:188 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/7a109e0447a9d992. Report an issue: GitHub.

Appendix: source

Thrown at modules/backend/widgets/table/assets/js/table.processor.base.js:188

    Base.prototype.setViewContainerValue = function(cellElement, value) {
        return this.getViewContainer(cellElement).textContent = value
    }

    /*
     * Determines whether the specified element is some element created by the
     * processor.
     */
    Base.prototype.elementBelongsToProcessor = function(element) {
        return false
    }

    Base.prototype.initValidators = function() {
        if (this.columnConfiguration.validation === undefined)
            return

        for (var validatorName in this.columnConfiguration.validation) {
            if ($.oc.table.validator === undefined || $.oc.table.validator[validatorName] == undefined)
                throw new Error('The table cell validator "'+validatorName+'" for the column "'+this.columnName+'" is not ' +
                    'found in the $.oc.table.validator namespace.')

            var validator = new $.oc.table.validator[validatorName](
                    this.columnConfiguration.validation[validatorName]
                )

            this.validators.push(validator)
        }
    }

    Base.prototype.validate = function(value, rowData) {
        for (var i=0, len=this.validators.length; i<len; i++) {
            var message = this.validators[i].validate(value, rowData)

            if (message !== undefined)
                return message
        }
    }

View on GitHub (pinned to b608633a7e)