{"record":{"id":"3c069cb810ad2795","repo":"octobercms/october","slug":"the-provided-model-class-modelclass-for-the-rec","errorCode":null,"errorMessage":"The provided model class \":modelClass\" for the recordfinder is invalid","messagePattern":"The provided model class \":modelClass\" for the recordfinder is invalid","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/formwidgets/RecordFinder.php","lineNumber":189,"sourceCode":"            'defaultSort',\n            'showSetup',\n            'structure',\n            'conditions',\n            'inlineOptions',\n            'searchMode',\n            'searchScope',\n            'recordsPerPage',\n            'useRelation',\n            'modelClass',\n            'popupSize',\n        ]);\n\n        if (isset($this->config->scope)) {\n            $this->modelScope = $this->config->scope;\n        }\n\n        if (!$this->useRelation && !class_exists($this->modelClass)) {\n            throw new ApplicationException(Lang::get('backend::lang.recordfinder.invalid_model_class', ['modelClass' => $this->modelClass]));\n        }\n\n        if (!post('recordfinder_flag')) {\n            return;\n        }\n\n        $this->listWidget = $this->makeListWidget();\n        $this->listWidget->bindToController();\n\n        // Search widget\n        if ($this->searchWidget = $this->makeSearchWidget()) {\n            $this->listWidget->setSearchTerm($this->searchWidget->getActiveTerm());\n\n            // Link the Search Widget to the List Widget\n            $this->searchWidget->bindEvent('search.submit', function () {\n                $this->listWidget->setSearchTerm($this->searchWidget->getActiveTerm());\n                return $this->listWidget->onRefresh();\n            });","sourceCodeStart":171,"sourceCodeEnd":207,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/formwidgets/RecordFinder.php#L171-L207","documentation":"Error \"The provided model class \":modelClass\" for the recordfinder is invalid\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/formwidgets/RecordFinder.php:189 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"}