{"record":{"id":"5cb0916c429da876","repo":"phacility/phabricator","slug":"storage-engine-s-could-not-be-located","errorCode":null,"errorMessage":"Storage engine '%s' could not be located!","messagePattern":"Storage engine '(.+?)' could not be located!","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/files/storage/PhabricatorFile.php","lineNumber":1036,"sourceCode":"      'id'   => $this->getID(),\n      'phid' => $this->getPHID(),\n      'uri'  => $this->getBestURI(),\n    );\n  }\n\n  public function instantiateStorageEngine() {\n    return self::buildEngine($this->getStorageEngine());\n  }\n\n  public static function buildEngine($engine_identifier) {\n    $engines = self::buildAllEngines();\n    foreach ($engines as $engine) {\n      if ($engine->getEngineIdentifier() == $engine_identifier) {\n        return $engine;\n      }\n    }\n\n    throw new Exception(\n      pht(\n        \"Storage engine '%s' could not be located!\",\n        $engine_identifier));\n  }\n\n  public static function buildAllEngines() {\n    return id(new PhutilClassMapQuery())\n      ->setAncestorClass('PhabricatorFileStorageEngine')\n      ->execute();\n  }\n\n  public function getViewableMimeType() {\n    $mime_map = PhabricatorEnv::getEnvConfig('files.viewable-mime-types');\n\n    $mime_type = $this->getMimeType();\n    $mime_parts = explode(';', $mime_type);\n    $mime_type = trim(reset($mime_parts));\n","sourceCodeStart":1018,"sourceCodeEnd":1054,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/storage/PhabricatorFile.php#L1018-L1054","documentation":"Error \"Storage engine '%s' could not be located!\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/files/storage/PhabricatorFile.php:1036 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"}