{"record":{"id":"3f1001cb1eabc2c1","repo":"phacility/phabricator","slug":"footer-item-with-index-s-is-invalid-s","errorCode":null,"errorMessage":"Footer item with index \"%s\" is invalid: %s","messagePattern":"Footer item with index \"(.+?)\" is invalid: (.+?)","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/config/custom/PhabricatorCustomUIFooterConfigType.php","lineNumber":31,"sourceCode":"\n    foreach ($value as $idx => $item) {\n      if (!is_array($item)) {\n        throw new Exception(\n          pht(\n            'Footer item with index \"%s\" is invalid: each item must be a '.\n            'dictionary describing a footer item.',\n            $idx));\n      }\n\n      try {\n        PhutilTypeSpec::checkMap(\n          $item,\n          array(\n            'name' => 'string',\n            'href' => 'optional string',\n          ));\n      } catch (Exception $ex) {\n        throw new Exception(\n          pht(\n            'Footer item with index \"%s\" is invalid: %s',\n            $idx,\n            $ex->getMessage()));\n      }\n    }\n  }\n\n\n}\n","sourceCodeStart":13,"sourceCodeEnd":42,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/config/custom/PhabricatorCustomUIFooterConfigType.php#L13-L42","documentation":"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.","triggerScenarios":"Thrown at src/applications/config/custom/PhabricatorCustomUIFooterConfigType.php:31 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"try-catch","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"}