{"record":{"id":"522efc728f1a7639","repo":"octobercms/october","slug":"tailor-lang-blueprint-invalid-file","errorCode":null,"errorMessage":"tailor::lang.blueprint.invalid_file","messagePattern":"tailor::lang\\.blueprint\\.invalid_file","errorType":"validation","errorClass":"October\\Rain\\Exception\\ValidationException","httpStatus":null,"severity":"error","filePath":"modules/tailor/classes/Blueprint.php","lineNumber":573,"sourceCode":"            throw new ValidationException(['fileName' =>\n                Lang::get('cms::lang.cms_object.file_name_required', [\n                    'allowed' => implode(', ', $this->allowedExtensions),\n                    'invalid' => pathinfo($fileName, PATHINFO_EXTENSION)\n                ])\n            ]);\n        }\n\n        if (!FileHelper::validateExtension($fileName, $this->allowedExtensions, false)) {\n            throw new ValidationException(['fileName' =>\n                Lang::get('cms::lang.cms_object.invalid_file_extension', [\n                    'allowed' => implode(', ', $this->allowedExtensions),\n                    'invalid' => pathinfo($fileName, PATHINFO_EXTENSION)\n                ])\n            ]);\n        }\n\n        if (!FileHelper::validatePath($fileName, null)) {\n            throw new ValidationException(['fileName' =>\n                Lang::get('tailor::lang.blueprint.invalid_file', [\n                    'name' => $fileName\n                ])\n            ]);\n        }\n    }\n\n    /**\n     * validate the blueprint\n     */\n    public function validate()\n    {\n        $this->validateFileName();\n\n        BlueprintVerifier::instance()->verifyBlueprint($this);\n    }\n\n    /**","sourceCodeStart":555,"sourceCodeEnd":591,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/tailor/classes/Blueprint.php#L555-L591","documentation":"Error \"tailor::lang.blueprint.invalid_file\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/tailor/classes/Blueprint.php:573 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"}