Saturday, 15 September 2012

yii modules - Yii user migration issues -



yii modules - Yii user migration issues -

i new yii , need install yii user module stuck @ migration command :

run command: yiic migrate --migrationpath=user.migrations

i searched help , found command :

yiic migrate --migrationpath=application.modules.user.migrations

i using yiic.php : .../protected/yiic.php

error :

exception 'cexception' message 'property "cconsoleapplication.log" not defined.' in /srv/data/var/php/www/yii-1.1.15.022a51/framework/base/ccomponent.php:173

stack trace:

#0 /srv/data/var/php/www/yii-1.1.15.022a51/framework/base/cmodule.php(513): ccomponent->__set('log', array) #1 /srv/data/var/php/www/yii-1.1.15.022a51/framework/base/capplication.php(161): cmodule->configure(array) #2 /srv/data/var/php/www/yii-1.1.15.022a51/framework/yiibase.php(125): capplication->__construct('/srv/data/web/v...') #3 /srv/data/var/php/www/yii-1.1.15.022a51/framework/yiibase.php(113): yiibase::createapplication('cconsoleapplica...', '/srv/data/web/v...') #4 /srv/data/var/php/www/yii-1.1.15.022a51/framework/yiic.php(23): yiibase::createconsoleapplication('/srv/data/web/v...') #5 /srv/data/web/vhosts/www.mywebsite.com/htdocs/protected/yiic.php(7): require_once('/srv/data/var/p...') #6 /srv/data/web/vhosts/www.mywebsite.com/htdocs/protected/yiic(4): require_once('/srv/data/web/v...') #7 {main}hosting-user@me:~/web/vhosts/www.mywebsite.com/htdocs/protected$

your console application has not log component.

try add together code in console.php config in components array:

'components'=>array( ... 'log'=>array( 'class'=>'clogrouter', 'routes'=>array( array( 'class'=>'cfilelogroute', 'levels'=>'error, warning', ), ), ), ... ),

yii yii-modules

No comments:

Post a Comment