octobercms/october · error · Error

The $.oc.table.processor namespace is not defined. Make…

Error message

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

What it means

Namespace guard verifying that table.processor.base.js has run and created $.oc.table.processor; the autocomplete processor extends its string processor and would otherwise fail on an undefined base. Fires when the base processor script is missing or ordered after this file.

Solutions

  1. Include table.processor.base.js (and table.processor.string.js) before this script
  2. Verify script registration order in the table widget asset bundle
  3. Check the console for a preceding failed load of table.processor.base.js
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at modules/backend/widgets/table/assets/js/table.processor.autocomplete.js:14 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/36c9f866531b5093. Report an issue: GitHub.

Appendix: source

Thrown at modules/backend/widgets/table/assets/js/table.processor.autocomplete.js:14

/*
 * Autocomplete cell processor for the table control.
 */

+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.processor === undefined)
        throw new Error("The $.oc.table.processor namespace is not defined. Make sure that the table.processor.base.js script is loaded.");

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

    var Base = $.oc.table.processor.string,
        BaseProto = Base.prototype

    var AutocompleteProcessor = function(tableObj, columnName, columnConfiguration) {
        //
        // State properties
        //

        this.cachedOptionPromises = {}

        //
        // Parent constructor
        //

View on GitHub (pinned to b608633a7e)