{"record":{"id":"8cc4750cd3bda850","repo":"yiisoft/yii2","slug":"unknown-configuration-option-name","errorCode":null,"errorMessage":"Unknown configuration option: $name","messagePattern":"Unknown configuration option: \\$name","errorType":"console","errorClass":"yii\\console\\Exception","httpStatus":null,"severity":"error","filePath":"framework/console/controllers/AssetController.php","lineNumber":231,"sourceCode":"        if ($this->deleteSource) {\n            $this->deletePublishedAssets($bundles);\n        }\n    }\n\n    /**\n     * Applies configuration from the given file to self instance.\n     * @param string $configFile configuration file name.\n     * @throws \\yii\\console\\Exception on failure.\n     */\n    protected function loadConfiguration($configFile)\n    {\n        $this->stdout(\"Loading configuration from '{$configFile}'...\\n\");\n        $config = require $configFile;\n        foreach ($config as $name => $value) {\n            if (property_exists($this, $name) || $this->canSetProperty($name)) {\n                $this->$name = $value;\n            } else {\n                throw new Exception(\"Unknown configuration option: $name\");\n            }\n        }\n\n        $this->getAssetManager(); // check if asset manager configuration is correct\n    }\n\n    /**\n     * Creates full list of source asset bundles.\n     * @param string[] $bundles list of asset bundle names\n     * @return \\yii\\web\\AssetBundle[] list of source asset bundles.\n     */\n    protected function loadBundles($bundles)\n    {\n        $this->stdout(\"Collecting source bundles information...\\n\");\n\n        $am = $this->getAssetManager();\n        $result = [];\n        foreach ($bundles as $name) {","sourceCodeStart":213,"sourceCodeEnd":249,"githubUrl":"https://github.com/yiisoft/yii2/blob/66f00d18a29b520f85e8e8f1e32d1e7e7b556cac/framework/console/controllers/AssetController.php#L213-L249","documentation":"Error \"Unknown configuration option: $name\" thrown in yiisoft/yii2.","triggerScenarios":"Thrown at framework/console/controllers/AssetController.php:231 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"66f00d18a29b520f85e8e8f1e32d1e7e7b556cac","analyzedAt":"2026-08-17T05:17:23.470Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}