{"record":{"id":"94fd3e26a13c17df","repo":"octobercms/october","slug":"cms-lang-cms-object-invalid-file","errorCode":null,"errorMessage":"cms::lang.cms_object.invalid_file","messagePattern":"cms::lang\\.cms_object\\.invalid_file","errorType":"exception","errorClass":"SystemException","httpStatus":null,"severity":"error","filePath":"modules/cms/classes/ComponentPartial.php","lineNumber":199,"sourceCode":"    {\n        $partial = new static($component);\n\n        if (!strlen(File::extension($fileName))) {\n            $fileName .= '.' . $partial->getDefaultExtension();\n        }\n\n        return File::isFile($partial->getFilePath($fileName));\n    }\n\n    /**\n     * validateFileName checks the supplied file name for validity.\n     * @param string  $fileName\n     * @return string\n     */\n    protected function validateFileName($fileName)\n    {\n        if (!FileHelper::validatePath($fileName, $this->maxNesting)) {\n            throw new SystemException(Lang::get('cms::lang.cms_object.invalid_file', [\n                'name' => $fileName\n            ]));\n        }\n\n        if (!strlen(File::extension($fileName))) {\n            $fileName .= '.'.$this->defaultExtension;\n        }\n\n        return $fileName;\n    }\n\n    /**\n     * getContent returns the file content.\n     * @return string\n     */\n    public function getContent()\n    {\n        return $this->content;","sourceCodeStart":181,"sourceCodeEnd":217,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/cms/classes/ComponentPartial.php#L181-L217","documentation":"Error \"cms::lang.cms_object.invalid_file\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/cms/classes/ComponentPartial.php:199 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"}