phacility/phabricator · error · PhabricatorConfigValidationException

$ex->getMessage()

Error message

$ex->getMessage()

What it means

Normalization wrapper in the base config option validator: a custom validator threw a non-validation exception while checking the stored value. It is converted into a PhabricatorConfigValidationException so the configuration repair pipeline can surface and recover from the bad value; the original message is preserved via $ex->getMessage().

Solutions

  1. Read the wrapped message to see which custom validation failed
  2. Fix the stored configuration value for the offending option
  3. If config is broken at startup, use bin/config to repair or delete the bad key
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at src/applications/config/option/PhabricatorApplicationConfigOptions.php:34 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/0ece01d470398128. Report an issue: GitHub.

Appendix: source

Thrown at src/applications/config/option/PhabricatorApplicationConfigOptions.php:34

      return;
    }

    if ($value === null) {
      return;
    }

    $type = $option->newOptionType();
    if ($type) {
      try {
        $type->validateStoredValue($option, $value);
        $this->didValidateOption($option, $value);
      } catch (PhabricatorConfigValidationException $ex) {
        throw $ex;
      } catch (Exception $ex) {
        // If custom validators threw exceptions other than validation
        // exceptions, convert them to validation exceptions so we repair the
        // configuration and raise an error.
        throw new PhabricatorConfigValidationException($ex->getMessage());
      }

      return;
    }

    if ($option->isCustomType()) {
      try {
        return $option->getCustomObject()->validateOption($option, $value);
      } catch (Exception $ex) {
        throw new PhabricatorConfigValidationException($ex->getMessage());
      }
    } else {
      throw new Exception(
        pht(
          'Unknown configuration option type "%s".',
          $option->getType()));
    }

View on GitHub (pinned to 5720a38cfe)