octobercms/october · error · Error

The $.oc.table namespace is not defined. Make sure that the

Error message

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

What it means

Error "The $.oc.table namespace is not defined. Make sure that the table.js script is loaded." thrown in octobercms/october.

Source

Thrown at modules/backend/widgets/table/assets/js/table.helper.navigation.js:12

/*
 * Navigation helper for the table widget.
 * Implements the keyboard navigation within the current page
 * and pagination.
 */
+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.helper === undefined)
        $.oc.table.helper = {}

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

    var Navigation = function(tableObj) {
        // Reference to the table object
        this.tableObj = tableObj

        // The current page index
        this.pageIndex = 0

        // Event handlers

        // Number of pages in the pagination
        this.pageCount = 0

View on GitHub (pinned to b608633a7e)

When it happens

Trigger: Thrown at modules/backend/widgets/table/assets/js/table.helper.navigation.js:12 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/55053fa0f9868546. Report an issue: GitHub.