I'm attempting to install YUM (http://www.yiiframew...ser-management/) but after running through the install steps, and attempting to login, I get the message:
Fatal error: Call to a member function get() on a non-object in E:\websites\yii\public\protected\modules\user\models\YumUser.php on line 365
Any one any ideas...?!
Page 1 of 1
Yii User Manager
#2
Posted 17 June 2012 - 11:22 AM
the line 365 on my yiiuser.php is about: "$relations = Yii::app()->cache->get('yum_user_relations');"
Your errors said that cant obtain a "get" member in a non-object, in this case the "non-object" would be the Yii::app()->cache who is maybe null because you're not configuring the CACHE in your YUM instalation, so yii::app()->cache is null and throws an exception when trying to get something from it.
please ensure the following setup piece code is in your main config setup file:
'components'=>array(
'cache' => array('class' => 'system.caching.CDummyCache'),
Your errors said that cant obtain a "get" member in a non-object, in this case the "non-object" would be the Yii::app()->cache who is maybe null because you're not configuring the CACHE in your YUM instalation, so yii::app()->cache is null and throws an exception when trying to get something from it.
please ensure the following setup piece code is in your main config setup file:
'components'=>array(
'cache' => array('class' => 'system.caching.CDummyCache'),
Christian Salazar.
@salazarchris74
http://www.yiiframeworkenespanol.org
Facebook
trucosdeprogramacionmovil.blogspot.com
Extension:
http://christiansala...b.com/jamboree/
@salazarchris74
http://www.yiiframeworkenespanol.org
trucosdeprogramacionmovil.blogspot.com
Extension:
http://christiansala...b.com/jamboree/
#3
Posted 16 November 2012 - 09:23 AM
bluyell, on 17 June 2012 - 11:22 AM, said:
the line 365 on my yiiuser.php is about: "$relations = Yii::app()->cache->get('yum_user_relations');"
Your errors said that cant obtain a "get" member in a non-object, in this case the "non-object" would be the Yii::app()->cache who is maybe null because you're not configuring the CACHE in your YUM instalation, so yii::app()->cache is null and throws an exception when trying to get something from it.
please ensure the following setup piece code is in your main config setup file:
'components'=>array(
'cache' => array('class' => 'system.caching.CDummyCache'),
Your errors said that cant obtain a "get" member in a non-object, in this case the "non-object" would be the Yii::app()->cache who is maybe null because you're not configuring the CACHE in your YUM instalation, so yii::app()->cache is null and throws an exception when trying to get something from it.
please ensure the following setup piece code is in your main config setup file:
'components'=>array(
'cache' => array('class' => 'system.caching.CDummyCache'),
Thank you very much, this has helped me.
...
I changed a moment ago
I changed a moment ago
Share this topic:
Page 1 of 1

Help












