phacility/phabricator · error · Exception
Footer item with index
Error message
Footer item with index "%s" is invalid: %s
What it means
Validation wrapper in the footer config validator: PhutilTypeSpec::checkMap() rejected the item at the given index — typically a missing required 'name' key or a non-string value for 'name'/'href'. The underlying spec error message is appended via %s.
Solutions
- Give each item a string "name" key
- Ensure "href" is either omitted or a string
- Fix the item at the reported index per the appended spec error
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/applications/config/custom/PhabricatorCustomUIFooterConfigType.php:31 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/3f1001cb1eabc2c1.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/config/custom/PhabricatorCustomUIFooterConfigType.php:31
foreach ($value as $idx => $item) {
if (!is_array($item)) {
throw new Exception(
pht(
'Footer item with index "%s" is invalid: each item must be a '.
'dictionary describing a footer item.',
$idx));
}
try {
PhutilTypeSpec::checkMap(
$item,
array(
'name' => 'string',
'href' => 'optional string',
));
} catch (Exception $ex) {
throw new Exception(
pht(
'Footer item with index "%s" is invalid: %s',
$idx,
$ex->getMessage()));
}
}
}
}
View on GitHub (pinned to 5720a38cfe)