phacility/phabricator · error · Exception
You can not reopen this revision because it is not closed…
Error message
You can not reopen this revision because it is not closed. Only closed revisions can be reopened.
What it means
State guard in DifferentialRevisionReopenTransaction::validateAction: reopen is refused because the revision is not in a published/closed state (isPublished returned false). Only closed revisions can be reopened — open, draft, or abandoned revisions have no closed state to undo, so the reopen transition does not apply to them.
Solutions
- Check the revision status: abandoned revisions should be reclaimed (not reopened) and open ones need no action
- If the revision is published and you want to continue work, first enable reopening via config (see the related allow-reopen error) and then retry
- Ensure you are acting on the intended revision and that its state has not changed since the page loaded
Defensive patterns
Strategy: validation
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.
Appendix: 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)