octobercms/october · error · Error
The $.oc.table.validator namespace is not defined. Make…
Error message
The $.oc.table.validator namespace is not defined. Make sure that the table.validator.base.js script is loaded.
What it means
Namespace guard requiring $.oc.table.validator to exist (created by table.validator.base.js) before the required validator extends the base class. Fires when the base validator script is absent or loaded after this file.
Solutions
- Include table.validator.base.js before table.validator.required.js
- Check for 404/errors on table.validator.base.js
- Adjust script order in the build
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at modules/backend/widgets/table/assets/js/table.validator.required.js:13 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/6b084e3eadb8b0fc.
Report an issue: GitHub.
Appendix: source
Thrown at modules/backend/widgets/table/assets/js/table.validator.required.js:13
/*
* Required table validator.
*/
+function ($) { "use strict";
// NAMESPACE CHECK
// ============================
if ($.oc.table === undefined)
throw new Error("The $.oc.table namespace is not defined. Make sure that the table.js script is loaded.");
if ($.oc.table.validator === undefined)
throw new Error("The $.oc.table.validator namespace is not defined. Make sure that the table.validator.base.js script is loaded.");
// CLASS DEFINITION
// ============================
var Base = $.oc.table.validator.base,
BaseProto = Base.prototype
var Required = function(options) {
Base.call(this, options)
};
Required.prototype = Object.create(BaseProto)
Required.prototype.constructor = Required
/*
* 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 theView on GitHub (pinned to b608633a7e)