{"record":{"id":"ba9f228716e95fc9","repo":"octobercms/october","slug":"the-table-widget-data-source-is-not-specified-in-t","errorCode":null,"errorMessage":"The Table widget data source is not specified in the configuration.","messagePattern":"The Table widget data source is not specified in the configuration\\.","errorType":"exception","errorClass":"SystemException","httpStatus":null,"severity":"error","filePath":"modules/backend/widgets/Table.php","lineNumber":71,"sourceCode":"    protected $dataSourceAliases = [\n        'client' => \\Backend\\Widgets\\Table\\ClientMemoryDataSource::class,\n        'server' => \\Backend\\Widgets\\Table\\ServerEventDataSource::class\n    ];\n\n    /**\n     * Initialize the widget, called by the constructor and free from its parameters.\n     */\n    public function init()\n    {\n        $this->columns = $this->getConfig('columns', []);\n\n        $this->fieldName = $this->getConfig('fieldName', $this->alias);\n\n        $this->recordsKeyFrom = $this->getConfig('keyFrom', 'id');\n\n        $dataSourceClass = $this->getConfig('dataSource');\n        if (!strlen($dataSourceClass)) {\n            throw new SystemException('The Table widget data source is not specified in the configuration.');\n        }\n\n        if (array_key_exists($dataSourceClass, $this->dataSourceAliases)) {\n            $dataSourceClass = $this->dataSourceAliases[$dataSourceClass];\n        }\n\n        if (!class_exists($dataSourceClass)) {\n            throw new SystemException(sprintf('The Table widget data source class \"%s\" is could not be found.', $dataSourceClass));\n        }\n\n        $this->dataSource = new $dataSourceClass($this->recordsKeyFrom);\n\n        // Load data into the client memory data source on POST\n        if (Request::method() == 'POST' && $this->isClientDataSource()) {\n            if (strpos($this->fieldName, '[') === false) {\n                $requestData = post($this->fieldName . 'TableData');\n            }\n            else {","sourceCodeStart":53,"sourceCodeEnd":89,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/widgets/Table.php#L53-L89","documentation":"Error \"The Table widget data source is not specified in the configuration.\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/widgets/Table.php:71 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}