octobercms/october · error · Error

The $.oc.table.validator.baseNumber namespace is not…

Error message

The $.oc.table.validator.baseNumber namespace is not defined. Make sure that the table.validator.baseNumber.js script is loaded.

What it means

Namespace guard requiring $.oc.table.validator.baseNumber (from table.validator.basenumber.js) which the float validator extends for its numeric range checks. Fires when basenumber.js is missing or loaded later.

Solutions

  1. Include table.validator.basenumber.js before table.validator.float.js
  2. Verify basenumber.js loaded without error
  3. Fix script order in the bundle
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at modules/backend/widgets/table/assets/js/table.validator.float.js:16 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/91f1b3cc963bbb3b. Report an issue: GitHub.

Appendix: source

Thrown at modules/backend/widgets/table/assets/js/table.validator.float.js:16

/*
 * Float 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.");

    if ($.oc.table.validator.baseNumber === undefined)
        throw new Error("The $.oc.table.validator.baseNumber namespace is not defined. Make sure that the table.validator.baseNumber.js script is loaded.");

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

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

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

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

    /*
     * 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

View on GitHub (pinned to b608633a7e)