{"record":{"id":"7dc6dd05bf30c830","repo":"phacility/phabricator","slug":"you-can-not-plan-changes-to-this-this-revision-bec","errorCode":null,"errorMessage":"You can not plan changes to this this revision because it has already been closed.","messagePattern":"You can not plan changes to this this revision because it has already been closed\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/differential/xaction/DifferentialRevisionPlanChangesTransaction.php","lineNumber":87,"sourceCode":"\n      $editor = $this->getEditor();\n      $type_web = PhabricatorWebContentSource::SOURCECONST;\n      if ($editor->getContentSource()->getSource() == $type_web) {\n        throw new Exception(\n          pht('You can not plan changes to a draft revision.'));\n      }\n    }\n\n    if ($object->isChangePlanned()) {\n      throw new Exception(\n        pht(\n          'You can not request review of this revision because this '.\n          'revision is already under review and the action would have '.\n          'no effect.'));\n    }\n\n    if ($object->isClosed()) {\n      throw new Exception(\n        pht(\n          'You can not plan changes to this this revision because it has '.\n          'already been closed.'));\n    }\n\n    if (!$this->isViewerRevisionAuthor($object, $viewer)) {\n      throw new Exception(\n        pht(\n          'You can not plan changes to this revision because you do not '.\n          'own it. Only the author of a revision can plan changes to it.'));\n    }\n  }\n\n  public function getTitle() {\n    if ($this->isDraftDemotion()) {\n      return pht(\n        '%s returned this revision to the author for changes because remote '.\n        'builds failed.',","sourceCodeStart":69,"sourceCodeEnd":105,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/xaction/DifferentialRevisionPlanChangesTransaction.php#L69-L105","documentation":"State guard in DifferentialRevisionPlanChangesTransaction::validateAction: the revision is already closed (published/abandoned), so the 'Plan Changes' transition is refused. Planning changes only applies to open revisions; once a revision has been closed by landing or abandonment, further status edits through this action are disallowed.","triggerScenarios":"Thrown at src/applications/differential/xaction/DifferentialRevisionPlanChangesTransaction.php:87 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["If the change needs more work after landing, create a new revision rather than reopening the closed one","If the revision was abandoned and you want to continue the work, reclaim it first (as the author), then plan changes","Verify you are acting on the intended revision, since stale pages can offer actions no longer valid for its status"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","contentChangedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}