phacility/phabricator · error · Exception

Project icons must include one icon marked as the

Error message

Project icons must include one icon marked as the "%s" icon, but no such icon exists.

What it means

Fires while validating projects.icons when the map finished processing and no entry was marked as the default icon. The icon set requires exactly one default, so its absence is a configuration error raised at the end of the validation loop.

Solutions

  1. Add default => true to one icon entry in the project.icons configuration.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/applications/project/icon/PhabricatorProjectIconSet.php:334 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/0af2c18182dffe9b. Report an issue: GitHub.

Appendix: source

Thrown at src/applications/project/icon/PhabricatorProjectIconSet.php:334

                self::SPECIAL_MILESTONE));
          }
          $milestone = $value;
        } else {
          $original_key = $milestone['key'];
          throw new Exception(
            pht(
              'Two different icons ("%s", "%s") are marked with special '.
              'attribute "%s". Only one icon may be marked with this '.
              'attribute.',
              $key,
              $original_key,
              self::SPECIAL_MILESTONE));
        }
      }
    }

    if ($default === null) {
      throw new Exception(
        pht(
          'Project icons must include one icon marked as the "%s" icon, '.
          'but no such icon exists.',
          'default'));
    }

    if ($milestone === null) {
      throw new Exception(
        pht(
          'Project icons must include one icon marked with special attribute '.
          '"%s", but no such icon exists.',
          self::SPECIAL_MILESTONE));
    }

  }

  private static function getColorSpecifications() {
    return PhabricatorEnv::getEnvConfig('projects.colors');

View on GitHub (pinned to 5720a38cfe)