phacility/phabricator · error · Exception
Storage engine ' ' could not be located!
Error message
Storage engine '%s' could not be located!
What it means
Engine lookup failure in buildEngine: the engine identifier stored on the file (from getEngineIdentifier at write time) matches no registered engine — typically because the engine was renamed, removed, or is no longer enabled.
Solutions
- Restore or re-enable the storage engine class matching the stored identifier
- Migrate the affected files to a current engine before removing the old one
- Check for typos or renamed identifiers in custom engine implementations
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at src/applications/files/storage/PhabricatorFile.php:1036 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21).
Data as JSON: /api/errors/5cb0916c429da876.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/files/storage/PhabricatorFile.php:1036
'id' => $this->getID(),
'phid' => $this->getPHID(),
'uri' => $this->getBestURI(),
);
}
public function instantiateStorageEngine() {
return self::buildEngine($this->getStorageEngine());
}
public static function buildEngine($engine_identifier) {
$engines = self::buildAllEngines();
foreach ($engines as $engine) {
if ($engine->getEngineIdentifier() == $engine_identifier) {
return $engine;
}
}
throw new Exception(
pht(
"Storage engine '%s' could not be located!",
$engine_identifier));
}
public static function buildAllEngines() {
return id(new PhutilClassMapQuery())
->setAncestorClass('PhabricatorFileStorageEngine')
->execute();
}
public function getViewableMimeType() {
$mime_map = PhabricatorEnv::getEnvConfig('files.viewable-mime-types');
$mime_type = $this->getMimeType();
$mime_parts = explode(';', $mime_type);
$mime_type = trim(reset($mime_parts));
View on GitHub (pinned to 5720a38cfe)