phacility/phabricator · error · Exception

Failed to load comment "%d".

Error message

Failed to load comment "%d".

What it means

Error "Failed to load comment "%d"." thrown in phacility/phabricator.

Source

Thrown at src/applications/diffusion/controller/DiffusionInlineCommentController.php:57

      id(new PhabricatorRepository())->establishConnection('r'),
      'SELECT path FROM %T WHERE id = %d',
      PhabricatorRepository::TABLE_PATH,
      $path_id);
    if (!$path) {
      throw new Exception(pht('Invalid path ID!'));
    }

    return id(new PhabricatorAuditInlineComment())
      ->setCommitPHID($commit->getPHID())
      ->setPathID($path_id);
  }

  protected function loadCommentForDone($id) {
    $viewer = $this->getViewer();

    $inline = $this->loadCommentByID($id);
    if (!$inline) {
      throw new Exception(pht('Failed to load comment "%d".', $id));
    }

    $commit = id(new DiffusionCommitQuery())
      ->setViewer($viewer)
      ->withPHIDs(array($inline->getCommitPHID()))
      ->executeOne();
    if (!$commit) {
      throw new Exception(pht('Failed to load commit.'));
    }

    $owner_phid = $commit->getAuthorPHID();
    $viewer_phid = $viewer->getPHID();
    $viewer_is_owner = ($owner_phid && ($owner_phid == $viewer_phid));
    $viewer_is_author = ($viewer_phid == $inline->getAuthorPHID());
    $is_draft = $inline->isDraft();

    if ($viewer_is_owner) {
      // You can mark inlines on your own commits as "Done".

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/diffusion/controller/DiffusionInlineCommentController.php:57 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/e7be04321f0dc360. Report an issue: GitHub.