octobercms/october · error · October\Rain\Exception\SystemException
cms::lang.layout.not_found_name
Error message
cms::lang.layout.not_found_name
What it means
Error "cms::lang.layout.not_found_name" thrown in octobercms/october.
Source
Thrown at modules/system/traits/ViewMaker.php:160
* makeLayout renders a layout
* @param string $name Specifies the layout name.
* If this parameter is omitted, the $layout property will be used.
* @param array $params Parameter variables to pass to the view.
* @param bool $throwException Throw an exception if the layout is not found
* @return mixed The layout contents, or false.
*/
public function makeLayout($name = null, $params = [], $throwException = true)
{
$layout = $name ?? $this->layout;
if (!$layout) {
return '';
}
$layoutPath = $this->getViewPath($layout, $this->layoutPath);
if (!File::exists($layoutPath)) {
if ($throwException) {
throw new SystemException(Lang::get('cms::lang.layout.not_found_name', ['name' => $layoutPath]));
}
return false;
}
return $this->makeFileContents($layoutPath, $params);
}
/**
* makeLayoutPartial renders a layout partial
* @param string $partial The view to load.
* @param array $params Parameter variables to pass to the view.
* @return string The layout partial contents
*/
public function makeLayoutPartial($partial, $params = [])
{
if (!File::isLocalPath($partial) && !File::isPathSymbol($partial)) {
$folder = strpos($partial, '/') !== false ? dirname($partial) . '/' : '';View on GitHub (pinned to b608633a7e)
When it happens
Trigger: Thrown at modules/system/traits/ViewMaker.php:160 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/351103cd1c40270e.
Report an issue: GitHub.