{"record":{"id":"3244e8bca1a71c50","repo":"yiisoft/yii2","slug":"please-specify-basepath-for-the-assetmanager-o","errorCode":null,"errorMessage":"Please specify 'basePath' for the 'assetManager' option.","messagePattern":"Please specify 'basePath' for the 'assetManager' option\\.","errorType":"console","errorClass":"yii\\console\\Exception","httpStatus":null,"severity":"error","filePath":"framework/console/controllers/AssetController.php","lineNumber":158,"sourceCode":"     * for assets processing.\n     */\n    private $_assetManager = [];\n\n\n    /**\n     * Returns the asset manager instance.\n     * @throws \\yii\\console\\Exception on invalid configuration.\n     * @return \\yii\\web\\AssetManager asset manager instance.\n     */\n    public function getAssetManager()\n    {\n        if (!is_object($this->_assetManager)) {\n            $options = $this->_assetManager;\n            if (!isset($options['class'])) {\n                $options['class'] = 'yii\\\\web\\\\AssetManager';\n            }\n            if (!isset($options['basePath'])) {\n                throw new Exception(\"Please specify 'basePath' for the 'assetManager' option.\");\n            }\n            if (!isset($options['baseUrl'])) {\n                throw new Exception(\"Please specify 'baseUrl' for the 'assetManager' option.\");\n            }\n\n            if (!isset($options['forceCopy'])) {\n                $options['forceCopy'] = true;\n            }\n\n            $this->_assetManager = Yii::createObject($options);\n        }\n\n        return $this->_assetManager;\n    }\n\n    /**\n     * Sets asset manager instance or configuration.\n     * @param \\yii\\web\\AssetManager|array $assetManager asset manager instance or its array configuration.","sourceCodeStart":140,"sourceCodeEnd":176,"githubUrl":"https://github.com/yiisoft/yii2/blob/66f00d18a29b520f85e8e8f1e32d1e7e7b556cac/framework/console/controllers/AssetController.php#L140-L176","documentation":"Error \"Please specify 'basePath' for the 'assetManager' option.\" thrown in yiisoft/yii2.","triggerScenarios":"Thrown at framework/console/controllers/AssetController.php:158 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"}