{"record":{"id":"fbcdac0359a4fc6d","repo":"octobercms/october","slug":"the-property-name-cannot-be-set","errorCode":null,"errorMessage":"The property ':name' cannot be set","messagePattern":"The property ':name' cannot be set","errorType":"exception","errorClass":"ApplicationException","httpStatus":500,"severity":"error","filePath":"modules/cms/classes/Asset.php","lineNumber":287,"sourceCode":"\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    }\n\n    /**\n     * Sets the object attributes.\n     * @param array $attributes A list of attributes to set.\n     */\n    public function fill(array $attributes)\n    {\n        foreach ($attributes as $key => $value) {\n            if (!in_array($key, $this->fillable)) {\n                throw new ApplicationException(Lang::get(\n                    'cms::lang.cms_object.invalid_property',\n                    ['name' => $key]\n                ));\n            }\n\n            $this->$key = $value;\n        }\n    }\n\n    /**\n     * save the object to the disk\n     */\n    public function save()\n    {\n        $this->validateFileName();\n\n        $fullPath = $this->getFilePath();\n","sourceCodeStart":269,"sourceCodeEnd":305,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/cms/classes/Asset.php#L269-L305","documentation":"Error \"The property ':name' cannot be set\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/cms/classes/Asset.php:287 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"}