phacility/phabricator · error · Exception
Required parameter `parentPanelPHIDs` is not present in…
Error message
Required parameter `parentPanelPHIDs` is not present in request.
What it means
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.
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
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/dashboard/controller/panel/PhabricatorDashboardPanelRenderController.php:25 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/3cfc39a243a1ca4e.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/dashboard/controller/panel/PhabricatorDashboardPanelRenderController.php:25
return true;
}
public function handleRequest(AphrontRequest $request) {
$viewer = $request->getViewer();
$id = $request->getURIData('id');
$panel = id(new PhabricatorDashboardPanelQuery())
->setViewer($viewer)
->withIDs(array($id))
->executeOne();
if (!$panel) {
return new Aphront404Response();
}
if ($request->isAjax()) {
$parent_phids = $request->getStrList('parentPanelPHIDs', null);
if ($parent_phids === null) {
throw new Exception(
pht(
'Required parameter `parentPanelPHIDs` is not present in '.
'request.'));
}
} else {
$parent_phids = array();
}
$engine = id(new PhabricatorDashboardPanelRenderingEngine())
->setViewer($viewer)
->setPanel($panel)
->setPanelPHID($panel->getPHID())
->setParentPanelPHIDs($parent_phids)
->setMovable($request->getBool('movable'))
->setHeaderMode($request->getStr('headerMode'))
->setPanelKey($request->getStr('panelKey'));
$context_phid = $request->getStr('contextPHID');View on GitHub (pinned to 5720a38cfe)