octobercms/october · error · ApplicationException
cms::lang.theme.edit.not_match
Error message
cms::lang.theme.edit.not_match
What it means
Error "cms::lang.theme.edit.not_match" thrown in octobercms/october.
Source
Thrown at modules/cms/classes/editorextension/HasExtensionCrud.php:562
*
* Event::listen('cms.template.processSettingsBeforeSave', function ((\Cms\Classes\EditorExtension) $editorExtension, (object) $dataHolder) {
* // Make some modifications to the $dataHolder object
* });
*/
$dataHolder = (object) ['settings' => $settings, 'documentType' => $documentType];
$this->fireSystemEvent('cms.template.processSettingsBeforeSave', [$dataHolder]);
return $dataHolder->settings;
}
/**
* validateRequestTheme validates that the current request is within the active theme
* @return void
*/
private function validateRequestTheme($metadata)
{
if ($this->getTheme()->getDirName() != $metadata['theme']) {
throw new ApplicationException(trans('cms::lang.theme.edit.not_match'));
}
}
/**
* handleLineEndings
*/
protected function handleLineEndings($templateData)
{
$convertLineEndings = Config::get('system.convert_line_endings', false) === true;
if (!$convertLineEndings) {
return $templateData;
}
if (!empty($templateData['markup'])) {
$templateData['markup'] = $this->convertLineEndings($templateData['markup']);
}
if (!empty($templateData['code'])) {View on GitHub (pinned to b608633a7e)
When it happens
Trigger: Thrown at modules/cms/classes/editorextension/HasExtensionCrud.php:562 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/4004c542c116cf65.
Report an issue: GitHub.