phacility/phabricator · error · Exception
You can not reopen this revision because configuration…
Error message
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.
What it means
Error "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." thrown in phacility/phabricator.
Solutions
- Enable the config key differential.allow-reopen in Config if your workflow requires reopening published revisions
- Prefer creating a new revision for follow-up changes, which is the intended Phabricator workflow
- If reopen was expected to work, ask an administrator to confirm the differential.allow-reopen setting was not disabled instance-wide
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/differential/xaction/DifferentialRevisionReopenTransaction.php:56 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/60097b9480885b5b.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/differential/xaction/DifferentialRevisionReopenTransaction.php:56
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(
'%s reopened this revision.',
$this->renderAuthor());
}
public function getTitleForFeed() {
return pht(
'%s reopened %s.',
$this->renderAuthor(),View on GitHub (pinned to 5720a38cfe)