{"record":{"id":"c4d5de7eebd50df0","repo":"octobercms/october","slug":"unable-to-find-file-it-may-no-longer-exist","errorCode":null,"errorMessage":"Unable to find file, it may no longer exist","messagePattern":"Unable to find file, it may no longer exist","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/formwidgets/FileUpload.php","lineNumber":416,"sourceCode":"            ;\n\n            $ids = array_intersect($ids, $relationIds);\n\n            if ($ids) {\n                $this->getRelationModel()->setSortableOrder($ids, $orders);\n            }\n        }\n    }\n\n    /**\n     * onLoadAttachmentConfig loads the configuration form for an attachment,\n     * allowing title and description to be set\n     */\n    public function onLoadAttachmentConfig()\n    {\n        $file = $this->getFileRecord();\n        if (!$file) {\n            throw new ApplicationException('Unable to find file, it may no longer exist');\n        }\n\n        $file = $this->decorateFileAttributes($file);\n\n        $this->vars['file'] = $file;\n        $this->vars['displayMode'] = $this->getDisplayMode();\n        $this->vars['cssDimensions'] = $this->getCssDimensions();\n        $this->vars['configFormWidget'] = $this->getConfigFormWidget();\n\n        return $this->makePartial('config_form');\n    }\n\n    /**\n     * onSaveAttachmentConfig commits the changes of the attachment configuration form\n     */\n    public function onSaveAttachmentConfig()\n    {\n        try {","sourceCodeStart":398,"sourceCodeEnd":434,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/formwidgets/FileUpload.php#L398-L434","documentation":"Error \"Unable to find file, it may no longer exist\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/formwidgets/FileUpload.php:416 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"}