octobercms/october · error · SystemException

The Table widget data source is not specified in the configu

Error message

The Table widget data source is not specified in the configuration.

What it means

Error "The Table widget data source is not specified in the configuration." thrown in octobercms/october.

Source

Thrown at modules/backend/widgets/Table.php:71

    protected $dataSourceAliases = [
        'client' => \Backend\Widgets\Table\ClientMemoryDataSource::class,
        'server' => \Backend\Widgets\Table\ServerEventDataSource::class
    ];

    /**
     * Initialize the widget, called by the constructor and free from its parameters.
     */
    public function init()
    {
        $this->columns = $this->getConfig('columns', []);

        $this->fieldName = $this->getConfig('fieldName', $this->alias);

        $this->recordsKeyFrom = $this->getConfig('keyFrom', 'id');

        $dataSourceClass = $this->getConfig('dataSource');
        if (!strlen($dataSourceClass)) {
            throw new SystemException('The Table widget data source is not specified in the configuration.');
        }

        if (array_key_exists($dataSourceClass, $this->dataSourceAliases)) {
            $dataSourceClass = $this->dataSourceAliases[$dataSourceClass];
        }

        if (!class_exists($dataSourceClass)) {
            throw new SystemException(sprintf('The Table widget data source class "%s" is could not be found.', $dataSourceClass));
        }

        $this->dataSource = new $dataSourceClass($this->recordsKeyFrom);

        // Load data into the client memory data source on POST
        if (Request::method() == 'POST' && $this->isClientDataSource()) {
            if (strpos($this->fieldName, '[') === false) {
                $requestData = post($this->fieldName . 'TableData');
            }
            else {

View on GitHub (pinned to b608633a7e)

When it happens

Trigger: Thrown at modules/backend/widgets/Table.php:71 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/ba9f228716e95fc9. Report an issue: GitHub.