phacility/phabricator · error · Exception

You can not reopen this revision because it is not closed. O

Error message

You can not reopen this revision because it is not closed. Only closed revisions can be reopened.

What it means

Error "You can not reopen this revision because it is not closed. Only closed revisions can be reopened." thrown in phacility/phabricator.

Source

Thrown at src/applications/differential/xaction/DifferentialRevisionReopenTransaction.php:48

    return 400;
  }

  public function getActionName() {
    return pht('Reopened');
  }

  public function generateOldValue($object) {
    return !$object->isClosed();
  }

  public function applyInternalEffects($object, $value) {
    $status_review = DifferentialRevisionStatus::NEEDS_REVIEW;
    $object->setModernRevisionStatus($status_review);
  }

  protected function validateAction($object, PhabricatorUser $viewer) {
    if (!$object->isPublished()) {
      throw new Exception(
        pht(
          'You can not reopen this revision because it is not closed. '.
          'Only closed revisions can be reopened.'));
    }

    $config_key = 'differential.allow-reopen';
    if (!PhabricatorEnv::getEnvConfig($config_key)) {
      throw new Exception(
        pht(
          'You can not reopen this revision because configuration prevents '.
          'any revision from being reopened. You can change this behavior '.
          'by adjusting the "%s" setting in Config.',
          $config_key));
    }
  }

  public function getTitle() {
    return pht(

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/differential/xaction/DifferentialRevisionReopenTransaction.php:48 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/4f9954cec4a59486. Report an issue: GitHub.