{"record":{"id":"151dfce87b9ea4cc","repo":"phacility/phabricator","slug":"application-search-engines-of-class-s-can-not-b","errorCode":null,"errorMessage":"Application search engines of class \"%s\" can not be used to build dashboard panels.","messagePattern":"Application search engines of class \"(.+?)\" can not be used to build dashboard panels\\.","errorType":"validation","errorClass":"Exception","httpStatus":500,"severity":"error","filePath":"src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php","lineNumber":202,"sourceCode":"      ->setColor(PHUIButtonView::GREY);\n\n    $header->addActionLink($button);\n\n    return $header;\n  }\n\n  private function getSearchEngine(PhabricatorDashboardPanel $panel) {\n    $class = $panel->getProperty('class');\n    $engine = PhabricatorApplicationSearchEngine::getEngineByClassName($class);\n    if (!$engine) {\n      throw new Exception(\n        pht(\n          'The application search engine \"%s\" is unknown.',\n          $class));\n    }\n\n    if (!$engine->canUseInPanelContext()) {\n      throw new Exception(\n        pht(\n          'Application search engines of class \"%s\" can not be used to build '.\n          'dashboard panels.',\n          $class));\n    }\n\n    return $engine;\n  }\n\n  public function newHeaderEditActions(\n    PhabricatorDashboardPanel $panel,\n    PhabricatorUser $viewer,\n    $context_phid) {\n    $actions = array();\n\n    $engine = $this->getSearchEngine($panel);\n\n    $customize_uri = $engine->getCustomizeURI(","sourceCodeStart":184,"sourceCodeEnd":220,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php#L184-L220","documentation":"Error \"Application search engines of class \"%s\" can not be used to build dashboard panels.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php:202 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":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}