Use "CApplication::setExtensionPath()" instead of direct "Yii::setPathOfAlias()".