phacility/phabricator · error · Exception

The project icon marked as the default icon

Error message

The project icon marked as the default icon ("%s") must not be disabled.

What it means

Raised in PhabricatorProjectIconSet::validateConfiguration: an icon entry sets 'default' and is also disabled. A disabled icon cannot serve as the default, so the config is rejected. The faulting input is the icon config entry marked both default and disabled.

Solutions

  1. Remove the disabled flag from the default icon entry in project.icons.
  2. Mark a different, enabled icon as the default.
Defensive patterns

Strategy: validation

When it happens

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

Appendix: source

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

        $builtin_map = array_flip($builtin_map);

        $root = dirname(phutil_get_library_root('phabricator'));
        $image = $root.'/resources/builtin/projects/'.$builtin;

        if (!array_key_exists($image, $builtin_map)) {
            throw new Exception(
              pht(
                'The project image ("%s") specified for ("%s") '.
                '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');

View on GitHub (pinned to 5720a38cfe)