{"record":{"id":"322cd14861e0af7b","repo":"octobercms/october","slug":"invalid-file-name-name-file-names-can-contain-o","errorCode":null,"errorMessage":"Invalid file name: :name. File names can contain only alphanumeric symbols, underscores, dashes and dots. Some examples of correct file names: page.htm, page, subdirectory/page","messagePattern":"Invalid file name: :name\\. File names can contain only alphanumeric symbols, underscores, dashes and dots\\. Some examples of correct file names: page\\.htm, page, subdirectory/page","errorType":"validation","errorClass":"ValidationException","httpStatus":null,"severity":"error","filePath":"modules/cms/classes/Asset.php","lineNumber":259,"sourceCode":"        $foundTheme = $this->theme;\n\n        if (!File::isFile($filePath)) {\n            // Look at parent\n            if ($parentTheme = $this->theme->getParentTheme()) {\n                $foundTheme = $parentTheme;\n                $filePath = $parentTheme->getPath().'/'.$this->dirName.'/'.$fileName;\n\n                if (!File::isFile($filePath)) {\n                    return null;\n                }\n            }\n            else {\n                return null;\n            }\n        }\n\n        if (!FileHelper::validateInTheme($foundTheme, $filePath)) {\n            throw new ValidationException(['fileName' =>\n                Lang::get('cms::lang.cms_object.invalid_file', [\n                    'name' => $fileName\n                ])\n            ]);\n        }\n\n        if (($content = @File::get($filePath)) === false) {\n            return null;\n        }\n\n        $this->fileName = $fileName;\n        $this->originalFileName = $fileName;\n        $this->mtime = File::lastModified($filePath);\n        $this->content = $content;\n        $this->exists = true;\n\n        return $this;\n    }","sourceCodeStart":241,"sourceCodeEnd":277,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/cms/classes/Asset.php#L241-L277","documentation":"Error \"Invalid file name: :name. File names can contain only alphanumeric symbols, underscores, dashes and dots. Some examples of correct file names: page.htm, page, subdirectory/page\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/cms/classes/Asset.php:259 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}