octobercms/october · error · SystemException
The Table widget is not configured to use the server data…
Error message
The Table widget is not configured to use the server data source.
What it means
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.
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
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at modules/backend/widgets/Table.php:224 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/c73f488c2fc8d945.
Report an issue: GitHub.
Appendix: source
Thrown at modules/backend/widgets/Table.php:224
protected function isClientDataSource(): bool
{
return $this->dataSource instanceof \Backend\Widgets\Table\ClientMemoryDataSource;
}
//
// Event handlers
//
/**
* onServerGetRecords
*/
public function onServerGetRecords()
{
// Disable asset broadcasting
$this->controller->flushAssets();
if ($this->isClientDataSource()) {
throw new SystemException('The Table widget is not configured to use the server data source.');
}
$count = post('count');
// Oddly, JS may pass false as a string (@todo)
if ($count === 'false') {
$count = false;
}
return [
'records' => $this->dataSource->getRecords(post('offset'), $count),
'count' => $this->dataSource->getCount()
];
}
/**
* onServerSearchRecords
*/View on GitHub (pinned to b608633a7e)