octobercms/october · error · Error

The min.value parameter is not defined in the Inspector vali

Error message

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

What it means

Error "The min.value parameter is not defined in the Inspector validator configuration" thrown in octobercms/october.

Source

Thrown at modules/backend/assets/foundation/controls/inspector/inspector.validator.basenumber.js:20

 * Base class for Inspector numeric validators.
 */
+function ($) { "use strict";

    var Base = $.oc.inspector.validators.base,
        BaseProto = Base.prototype

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

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

    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 Inspector 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 Inspector validator configuration')
                }

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

View on GitHub (pinned to b608633a7e)

When it happens

Trigger: Thrown at modules/backend/assets/foundation/controls/inspector/inspector.validator.basenumber.js:20 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/565af591da5572e5. Report an issue: GitHub.