{"record":{"id":"766c475531a0b556","repo":"phacility/phabricator","slug":"failed-to-load-content-file","errorCode":null,"errorMessage":"Failed to load content file!","messagePattern":"Failed to load content file!","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/controller/DiffusionBrowseController.php","lineNumber":157,"sourceCode":"    if ($hit_byte_limit) {\n      $corpus = $this->buildErrorCorpus(\n        pht(\n          'This file is larger than %s byte(s), and too large to display '.\n          'in the web UI.',\n          phutil_format_bytes($byte_limit)));\n    } else if ($hit_time_limit) {\n      $corpus = $this->buildErrorCorpus(\n        pht(\n          'This file took too long to load from the repository (more than '.\n          '%s second(s)).',\n          new PhutilNumber($time_limit)));\n    } else {\n      $file = id(new PhabricatorFileQuery())\n        ->setViewer($viewer)\n        ->withPHIDs(array($file_phid))\n        ->executeOne();\n      if (!$file) {\n        throw new Exception(pht('Failed to load content file!'));\n      }\n\n      if ($view === 'raw') {\n        return $file->getRedirectResponse();\n      }\n\n      $data = $file->loadFileData();\n\n      $lfs_ref = $this->getGitLFSRef($repository, $data);\n      if ($lfs_ref) {\n        if ($view == 'git-lfs') {\n          $file = $this->loadGitLFSFile($lfs_ref);\n\n          // Rename the file locally so we generate a better vanity URI for\n          // it. In storage, it just has a name like \"lfs-13f9a94c0923...\",\n          // since we don't get any hints about possible human-readable names\n          // at upload time.\n          $basename = basename($drequest->getPath());","sourceCodeStart":139,"sourceCodeEnd":175,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/controller/DiffusionBrowseController.php#L139-L175","documentation":"Error \"Failed to load content file!\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/diffusion/controller/DiffusionBrowseController.php:157 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"}