octobercms/october · error · ApplicationException
Please specify the modelClass property for :type
Error message
Please specify the modelClass property for :type
What it means
Error "Please specify the modelClass property for :type" thrown in octobercms/october.
Source
Thrown at modules/backend/behaviors/ImportExportController.php:313
}
return null;
}
/**
* getModelForType
*/
protected function getModelForType($type)
{
$cacheProperty = $type.'Model';
if ($this->{$cacheProperty} !== null) {
return $this->{$cacheProperty};
}
$modelClass = $this->getConfig($type.'[modelClass]');
if (!$modelClass) {
throw new ApplicationException(__("Please specify the modelClass property for :type", [
'type' => $type
]));
}
$model = App::make($modelClass);
$this->controller->importExportExtendModel($model);
return $this->{$cacheProperty} = $model;
}
/**
* makeListColumns
*/
protected function makeListColumns($config, $model)
{
$config = $this->makeConfig($config);
$config->model = $model;
View on GitHub (pinned to b608633a7e)
When it happens
Trigger: Thrown at modules/backend/behaviors/ImportExportController.php:313 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/1681e4e6707553a0.
Report an issue: GitHub.