octobercms/october · error · Error

The min.value parameter is not defined in the table…

Error message

The min.value parameter is not defined in the table validator configuration

What it means

Configuration guard in doCommonChecks: the validator options include a min block, but it lacks the required value key, so there is no number to compare against. The column's validation YAML defined min without min.value.

Solutions

  1. Add the value key to the min entry (e.g. min: { value: 0, message: '...' })
  2. Optionally provide min.message for a custom error
  3. Validate the column configuration YAML structure
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at modules/backend/widgets/table/assets/js/table.validator.basenumber.js:32 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/7ef0cc32646a48b4. Report an issue: GitHub.

Appendix: source

Thrown at modules/backend/widgets/table/assets/js/table.validator.basenumber.js:32

    // CLASS DEFINITION
    // ============================

    var Base = $.oc.table.validator.base,
        BaseProto = Base.prototype

    var BaseNumber = function(options) {
        Base.call(this, options)
    };

    BaseNumber.prototype = Object.create(BaseProto)
    BaseNumber.prototype.constructor = BaseNumber

    BaseNumber.prototype.doCommonChecks = function(value) {
        if (this.options.min !== undefined || this.options.max !== undefined) {
            if (this.options.min !== undefined) {
                if (this.options.min.value === undefined)
                    throw new Error('The min.value parameter is not defined in the table validator configuration')

                if (value < this.options.min.value) {
                    return this.options.min.message !== undefined ?
                        this.options.min.message :
                        "The value should not be less than " + this.options.min.value
                }
            }

            if (this.options.max !== undefined) {
                if (this.options.max.value === undefined)
                    throw new Error('The max.value parameter is not defined in the table validator configuration')

                if (value > this.options.max.value) {
                    return this.options.max.message !== undefined ?
                        this.options.max.message :
                        "The value should not be more than " + this.options.max.value
                }
            }

View on GitHub (pinned to b608633a7e)