Yii Framework Forum: Property "CDummyCache.enabled" is not defined. - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Property "CDummyCache.enabled" is not defined.

#1 User is offline   uzairshah 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 07-August 12

Posted 07 August 2012 - 06:30 AM

When I try to enable CDummyCache by this method

'cache' => array('class' => 'system.caching.CDummyCache'),

it shows me error
Property "CDummyCache.enabled" is not defined.

can anyone help me as I am stucked on it from last many hours and done alot of googling but no result.

also I have installed user module but when I try to login it shows me an error

Fatal error: Call to a member function get() on a non-object in D:\xampp\htdocs\testyii\testapp\protected\modules\user\models\YumUser.php on line 365

and the object at specified line is app()->cache

thanks in advance.

#2 User is offline   alrazi 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,546
  • Joined: 08-August 12
  • Location:Durban, South Africa

Posted 10 August 2012 - 01:23 AM

hi uzair

please can you provide a dump of your config/main.php file

#3 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,556
  • Joined: 12-October 09
  • Location:Croatia

Posted 10 August 2012 - 03:08 AM

Note that CDummyCache does not have the property "enabled" at all... check all your code for the reference "enabled" to see where it's used.
Find more about me.... btw. Do you know your WAN IP?

Share this topic:

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users