phacility/phabricator · error · PhabricatorProjectTriggerCorruptionException
Trigger ruleset is corrupt: rule type
Error message
Trigger ruleset is corrupt: rule type "%s" is unknown.
What it means
Corruption/compatibility detection: the rule's recorded type is not present in the trigger-rule map (no installed PhabricatorProjectTriggerRule implementation handles it), and strict mode disallows unknown rules.
Solutions
- Enable or reinstall the extension providing that rule type, or re-save the trigger without it.
- Read the trigger with allow_invalid so unknown rules render as placeholders, then remove them.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/applications/project/storage/PhabricatorProjectTrigger.php:171 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/0adf300b94f2693c.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/project/storage/PhabricatorProjectTrigger.php:171
'type' => 'string',
'value' => 'wild',
));
} catch (PhutilTypeCheckException $ex) {
throw new PhabricatorProjectTriggerCorruptionException(
pht(
'Trigger ruleset is corrupt: rule (at index "%s") is not a '.
'valid rule specification: %s',
$key,
$ex->getMessage()));
}
$record = id(new PhabricatorProjectTriggerRuleRecord())
->setType(idx($rule, 'type'))
->setValue(idx($rule, 'value'));
if (!isset($rule_map[$record->getType()])) {
if (!$allow_invalid) {
throw new PhabricatorProjectTriggerCorruptionException(
pht(
'Trigger ruleset is corrupt: rule type "%s" is unknown.',
$record->getType()));
}
$rule = new PhabricatorProjectTriggerUnknownRule();
} else {
$rule = clone $rule_map[$record->getType()];
}
try {
$rule->setRecord($record);
} catch (Exception $ex) {
if (!$allow_invalid) {
throw new PhabricatorProjectTriggerCorruptionException(
pht(
'Trigger ruleset is corrupt, rule (of type "%s") does not '.
'validate: %s',View on GitHub (pinned to 5720a38cfe)