{"record":{"id":"c73f488c2fc8d945","repo":"octobercms/october","slug":"the-table-widget-is-not-configured-to-use-the-serv","errorCode":null,"errorMessage":"The Table widget is not configured to use the server data source.","messagePattern":"The Table widget is not configured to use the server data source\\.","errorType":"exception","errorClass":"SystemException","httpStatus":null,"severity":"error","filePath":"modules/backend/widgets/Table.php","lineNumber":224,"sourceCode":"    protected function isClientDataSource(): bool\n    {\n        return $this->dataSource instanceof \\Backend\\Widgets\\Table\\ClientMemoryDataSource;\n    }\n\n    //\n    // Event handlers\n    //\n\n    /**\n     * onServerGetRecords\n     */\n    public function onServerGetRecords()\n    {\n        // Disable asset broadcasting\n        $this->controller->flushAssets();\n\n        if ($this->isClientDataSource()) {\n            throw new SystemException('The Table widget is not configured to use the server data source.');\n        }\n\n        $count = post('count');\n\n        // Oddly, JS may pass false as a string (@todo)\n        if ($count === 'false') {\n            $count = false;\n        }\n\n        return [\n            'records' => $this->dataSource->getRecords(post('offset'), $count),\n            'count' => $this->dataSource->getCount()\n        ];\n    }\n\n    /**\n     * onServerSearchRecords\n     */","sourceCodeStart":206,"sourceCodeEnd":242,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/widgets/Table.php#L206-L242","documentation":"A server-side AJAX handler (onServerGetRecords and friends) was invoked while the widget is backed by a ClientMemoryDataSource. Server handlers only make sense when dataSource is configured as 'server', because with client memory the records live in the browser and the server has none to return.","triggerScenarios":"Thrown at modules/backend/widgets/Table.php:224 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Change the widget's dataSource config to 'server' so records are supplied by the controller's AJAX handlers","Implement the required onServerGetRecords/onServerCreateRecord/onServerDeleteRecord handlers in the controller when using the server data source","If you meant to keep client-side data, do not issue server data requests from the table's configuration"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","contentChangedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}