phacility/phabricator · error · Exception
Footer item with index
Error message
Footer item with index "%s" is invalid: each item must be a dictionary describing a footer item.
What it means
Type guard inside the footer items loop: an individual entry at the given index is not an array (dictionary). The overall value is a list, but one element is a scalar or string instead of an item description; the index of the bad element is included.
Solutions
- Make every list entry a JSON object with at least a "name" key
- Remove or fix the malformed item at the reported index
Defensive patterns
Strategy: type-guard
When it happens
Trigger: Thrown at src/applications/config/custom/PhabricatorCustomUIFooterConfigType.php:16 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/6602f16d99a1b802.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/config/custom/PhabricatorCustomUIFooterConfigType.php:16
<?php
final class PhabricatorCustomUIFooterConfigType
extends PhabricatorConfigJSONOptionType {
public function validateOption(PhabricatorConfigOption $option, $value) {
if (!is_array($value)) {
throw new Exception(
pht(
'Footer configuration is not valid: value must be a list of '.
'items.'));
}
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,View on GitHub (pinned to 5720a38cfe)