{"record":{"id":"3cfc39a243a1ca4e","repo":"phacility/phabricator","slug":"required-parameter-parentpanelphids-is-not-prese","errorCode":null,"errorMessage":"Required parameter `parentPanelPHIDs` is not present in request.","messagePattern":"Required parameter `parentPanelPHIDs` is not present in request\\.","errorType":"validation","errorClass":"Exception","httpStatus":500,"severity":"error","filePath":"src/applications/dashboard/controller/panel/PhabricatorDashboardPanelRenderController.php","lineNumber":25,"sourceCode":"    return true;\n  }\n\n  public function handleRequest(AphrontRequest $request) {\n    $viewer = $request->getViewer();\n    $id = $request->getURIData('id');\n\n    $panel = id(new PhabricatorDashboardPanelQuery())\n      ->setViewer($viewer)\n      ->withIDs(array($id))\n      ->executeOne();\n    if (!$panel) {\n      return new Aphront404Response();\n    }\n\n    if ($request->isAjax()) {\n      $parent_phids = $request->getStrList('parentPanelPHIDs', null);\n      if ($parent_phids === null) {\n        throw new Exception(\n          pht(\n            'Required parameter `parentPanelPHIDs` is not present in '.\n            'request.'));\n      }\n    } else {\n      $parent_phids = array();\n    }\n\n    $engine = id(new PhabricatorDashboardPanelRenderingEngine())\n      ->setViewer($viewer)\n      ->setPanel($panel)\n      ->setPanelPHID($panel->getPHID())\n      ->setParentPanelPHIDs($parent_phids)\n      ->setMovable($request->getBool('movable'))\n      ->setHeaderMode($request->getStr('headerMode'))\n      ->setPanelKey($request->getStr('panelKey'));\n\n    $context_phid = $request->getStr('contextPHID');","sourceCodeStart":7,"sourceCodeEnd":43,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/dashboard/controller/panel/PhabricatorDashboardPanelRenderController.php#L7-L43","documentation":"Fires in the AJAX branch of the dashboard panel render controller when the request is Ajax but carries no 'parentPanelPHIDs' parameter. The endpoint requires the list of enclosing panel PHIDs to guard against rendering loops and to compute position-dependent data; getStrList returned null, so the request is malformed rather than the panel being missing.","triggerScenarios":"Thrown at src/applications/dashboard/controller/panel/PhabricatorDashboardPanelRenderController.php:25 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Send the request with a 'parentPanelPHIDs' parameter (a comma-separated list of PHIDs, possibly empty) so the Ajax branch can resolve panel ancestry","If writing a client, include parentPanelPHIDs=[] for top-level panels rather than omitting the parameter","If hitting the endpoint manually, verify the request still sends the X-Requested-With/header or body field that makes isAjax() true and pair it with the parameter"],"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"}