{"record":{"id":"d237535db82ba3e0","repo":"octobercms/october","slug":"backend-lang-form-missing-id","errorCode":null,"errorMessage":"backend::lang.form.missing_id","messagePattern":"backend::lang\\.form\\.missing_id","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/behaviors/FormController.php","lineNumber":851,"sourceCode":"        $foundKey = $this->getConfig(\"permissions[{$name}]\");\n\n        return $foundKey ? BackendAuth::userHasAccess($foundKey) : true;\n    }\n\n    //\n    // Overrides\n    //\n\n    /**\n     * formFindModelObject finds a Model record by its primary identifier, used by update\n     * actions. This logic can be changed by overriding it in the controller.\n     * @param string $recordId\n     * @return Model\n     */\n    public function formFindModelObject($recordId)\n    {\n        if (!strlen($recordId)) {\n            throw new ApplicationException($this->getCustomLang('notFound', 'backend::lang.form.missing_id'));\n        }\n\n        $model = $this->controller->formCreateModelObject();\n\n        // Prepare query and find model record\n        $query = $model->newQuery();\n\n        // Remove multisite restriction\n        if ($this->controller->formHasMultisite($model)) {\n            $query->withSites();\n        }\n        elseif ($this->controller->formHasMultisiteGroup($model)) {\n            $query->withSiteGroups();\n        }\n\n        $this->controller->formExtendQuery($query);\n        $result = $query->find($recordId);\n","sourceCodeStart":833,"sourceCodeEnd":869,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/behaviors/FormController.php#L833-L869","documentation":"Error \"backend::lang.form.missing_id\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/behaviors/FormController.php:851 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"}