phacility/phabricator · error · Exception

Project colors must include one color marked as the "%s" col

Error message

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

What it means

Error "Project colors must include one color marked as the "%s" color, but no such color exists." thrown in phacility/phabricator.

Source

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

      }

      if (idx($value, 'default')) {
        if ($default === null) {
          $default = $value;
        } else {
          $original_key = $default['key'];
          throw new Exception(
            pht(
              'Two different colors ("%s", "%s") are marked as the default '.
              'color. Only one color may be marked as the default.',
              $key,
              $original_key));
        }
      }
    }

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

  }

}

View on GitHub (pinned to 5720a38cfe)

When it happens

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