octobercms/october · error · Error
The min.value parameter is not defined in the Length table…
Error message
The min.value parameter is not defined in the Length table validator configuration
What it means
Configuration guard inside Length.validateValue: the options contain a min block without a value key, so the minimum string length is unknown. The column's validation config declared min but omitted min.value.
Solutions
- Add value to the min entry (e.g. min: { value: 5, message: '...' })
- Provide min.message for a custom message
- Review the column validation YAML
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at modules/backend/widgets/table/assets/js/table.validator.length.js:43 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/220331a8de89db3b.
Report an issue: GitHub.
Appendix: source
Thrown at modules/backend/widgets/table/assets/js/table.validator.length.js:43
Length.prototype = Object.create(BaseProto)
Length.prototype.constructor = Length
/*
* Validates a value and returns the error message. If there
* are no errors, returns undefined.
* The rowData parameter is an object containing all values in the
* target row.
*/
Length.prototype.validateValue = function(value, rowData) {
value = this.trim(value)
if (value.length == 0)
return
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 Length table validator configuration')
if (value.length < this.options.min.value) {
return this.options.min.message !== undefined ?
this.options.min.message :
"The string should not be shorter 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 Length table validator configuration')
if (value.length > this.options.max.value) {
return this.options.max.message !== undefined ?
this.options.max.message :
"The string should not be longer than " + this.options.max.value
}
}View on GitHub (pinned to b608633a7e)