phacility/phabricator · error · PhabricatorProjectTriggerCorruptionException

Trigger ruleset is corrupt: rule (at index "%s") should be a

Error message

Trigger ruleset is corrupt: rule (at index "%s") should be a rule specification, but is actually "%s".

What it means

Error "Trigger ruleset is corrupt: rule (at index "%s") should be a rule specification, but is actually "%s"." thrown in phacility/phabricator.

Source

Thrown at src/applications/project/storage/PhabricatorProjectTrigger.php:141

    // any collateral damage.

    $rule_map = PhabricatorProjectTriggerRule::getAllTriggerRules();

    // If the stored rule data isn't a list of rules (or we encounter other
    // fundamental structural problems, below), there isn't much we can do
    // to try to represent the state.
    if (!is_array($list)) {
      throw new PhabricatorProjectTriggerCorruptionException(
        pht(
          'Trigger ruleset is corrupt: expected a list of rule '.
          'specifications, found "%s".',
          phutil_describe_type($list)));
    }

    $trigger_rules = array();
    foreach ($list as $key => $rule) {
      if (!is_array($rule)) {
        throw new PhabricatorProjectTriggerCorruptionException(
          pht(
            'Trigger ruleset is corrupt: rule (at index "%s") should be a '.
            'rule specification, but is actually "%s".',
            $key,
            phutil_describe_type($rule)));
      }

      try {
        PhutilTypeSpec::checkMap(
          $rule,
          array(
            'type' => 'string',
            'value' => 'wild',
          ));
      } catch (PhutilTypeCheckException $ex) {
        throw new PhabricatorProjectTriggerCorruptionException(
          pht(
            'Trigger ruleset is corrupt: rule (at index "%s") is not a '.

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/project/storage/PhabricatorProjectTrigger.php:141 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/e3428e42851a32a0. Report an issue: GitHub.