phacility/phabricator · error · PhutilArgumentUsageException
Configuration key '%s' is not set in %s configuration!
Error message
Configuration key '%s' is not set in %s configuration!
What it means
Error "Configuration key '%s' is not set in %s configuration!" thrown in phacility/phabricator.
Source
Thrown at src/applications/config/management/PhabricatorConfigManagementDeleteWorkflow.php:53
$key = $argv[0];
if (count($argv) > 1) {
throw new PhutilArgumentUsageException(
pht('Too many arguments: expected one key.'));
}
$use_database = $args->getArg('database');
if ($use_database) {
$config = new PhabricatorConfigDatabaseSource('default');
$config_type = 'database';
} else {
$config = new PhabricatorConfigLocalSource();
$config_type = 'local';
}
$values = $config->getKeys(array($key));
if (!$values) {
throw new PhutilArgumentUsageException(
pht(
"Configuration key '%s' is not set in %s configuration!",
$key,
$config_type));
}
if ($use_database) {
$config_entry = PhabricatorConfigEntry::loadConfigEntry($key);
$config_entry->setIsDeleted(1);
$config_entry->save();
} else {
$config->deleteKeys(array($key));
}
$console->writeOut(
"%s\n",
pht("Deleted '%s' from %s configuration.", $key, $config_type));
}View on GitHub (pinned to 5720a38cfe)
When it happens
Trigger: Thrown at src/applications/config/management/PhabricatorConfigManagementDeleteWorkflow.php:53 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/523bad8bc73e0751.
Report an issue: GitHub.