octobercms/october · error · October\Rain\Exception\ApplicationException
cms::lang.cms_object.file_already_exists
Error message
cms::lang.cms_object.file_already_exists
What it means
Error "cms::lang.cms_object.file_already_exists" thrown in octobercms/october.
Source
Thrown at modules/tailor/classes/Blueprint.php:456
/**
* save the object to the disk
*/
public function save(?array $options = null)
{
$fileName = $this->fileName;
$fullPath = $this->getFilePath();
// Validate
$forceSave = Arr::get($options, 'force', false);
if ($forceSave) {
$this->validateFileName($fileName);
}
else {
$this->validate();
}
if (File::isFile($fullPath) && $this->originalFileName !== $fileName) {
throw new ApplicationException(Lang::get(
'cms::lang.cms_object.file_already_exists',
['name'=>$fileName]
));
}
$dirPath = $this->getBasePath();
if (!file_exists($dirPath) || !is_dir($dirPath)) {
if (!File::makeDirectory($dirPath, 0755, true, true)) {
throw new ApplicationException(Lang::get(
'cms::lang.cms_object.error_creating_directory',
['name'=>$dirPath]
));
}
}
if (strpos($fileName, '/') !== false) {
$dirPath = dirname($fullPath);
View on GitHub (pinned to b608633a7e)
When it happens
Trigger: Thrown at modules/tailor/classes/Blueprint.php:456 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/1b9b29c95bcc797b.
Report an issue: GitHub.