phacility/phabricator · error · Exception
Two different icons (" ", " ") are marked as the default…
Error message
Two different icons ("%s", "%s") are marked as the default icon. Only one icon may be marked as the default. What it means
Fires while validating the projects.icons configuration map: two entries both set 'default' => true. Config validation enforces exactly one default icon, so the duplicate 'default' marking is a configuration error that aborts loading the icon set; both icon keys are interpolated.
Solutions
- Keep default => true on exactly one icon entry and remove it from all others.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/project/icon/PhabricatorProjectIconSet.php:298 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/7299961be8fb67bc.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/project/icon/PhabricatorProjectIconSet.php:298
'was not found in the folder "resources/builtin/projects/".',
$builtin,
$key));
}
}
if (idx($value, 'default')) {
if ($default === null) {
if ($is_disabled) {
throw new Exception(
pht(
'The project icon marked as the default icon ("%s") must not '.
'be disabled.',
$key));
}
$default = $value;
} else {
$original_key = $default['key'];
throw new Exception(
pht(
'Two different icons ("%s", "%s") are marked as the default '.
'icon. Only one icon may be marked as the default.',
$key,
$original_key));
}
}
$special = idx($value, 'special');
if ($special === self::SPECIAL_MILESTONE) {
if ($milestone === null) {
if ($is_disabled) {
throw new Exception(
pht(
'The project icon ("%s") with special attribute "%s" must '.
'not be disabled',
$key,
self::SPECIAL_MILESTONE));View on GitHub (pinned to 5720a38cfe)