Bug in user management

Hi all,

I cant create new roles in my yii user management version 1.92

it gives this error, any clue where i got to look to fix this.





CException


Property "YumRole.roles" is niet gedefinieerd.


/yiiframework/db/ar/CActiveRecord.php(126)


114      * PHP setter magic method.

115      * This method is overridden so that AR attributes can be accessed like properties.

116      * @param string $name property name

117      * @param mixed $value property value

118      */

119     public function __set($name,$value)

120     {

121         if($this->setAttribute($name,$value)===false)

122         {

123             if(isset($this->getMetaData()->relations[$name]))

124                 $this->_related[$name]=$value;

125             else

126                 parent::__set($name,$value);

127         }

128     }

129 

130     /**

131      * Checks if a property value is null.

132      * This method overrides the parent implementation by checking

133      * if the named attribute is null or not.

134      * @param string $name the property name or the event name

135      * @return boolean whether the property value is null

136      * @since 1.0.1

137      */

138     public function __isset($name)




Stack Trace

#0	

+  /yiiframework/db/ar/CActiveRecord.php(126): CComponent->__set("roles", array())

#1	

–  /home/pd33fct54/domains/pdffactuur.nl/public_html/protected/modules/user/controllers/YumRoleController.php(30): CActiveRecord->__set("roles", array())

25                 $model->users = array();

26 

27             if(isset($_POST['YumRole']['YumRole']))

28                 $model->roles = $_POST['YumRole']['YumRole'];

29             else

30                 $model->roles = array();

31 

32 

33             if($model->save())

34             {

35             if(Yum::module()->enableLogging == true)

#2	

+  /yiiframework/web/actions/CInlineAction.php(57): YumRoleController->actionCreate()

#3	

+  /yiiframework/web/CController.php(300): CInlineAction->run()

#4	

+  /yiiframework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction)

#5	

+  /yiiframework/web/filters/CFilter.php(41): CFilterChain->run()

#6	

+  /yiiframework/web/CController.php(1088): CFilter->filter(CFilterChain)

#7	

+  /yiiframework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(CFilterChain)

#8	

+  /yiiframework/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain)

#9	

+  /yiiframework/web/CController.php(283): CFilterChain->run()

#10	

+  /yiiframework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array("accessControl"))

#11	

+  /yiiframework/web/CWebApplication.php(328): CController->run("create")

#12	

+  /yiiframework/web/CWebApplication.php(121): CWebApplication->runController("user/role/create")

#13	

+  /yiiframework/base/CApplication.php(155): CWebApplication->processRequest()

#14	

–  /home/pd33fct54/domains/pdffactuur.nl/public_html/index.php(13): CApplication->run()

08 defined('YII_DEBUG') or define('YII_DEBUG',true);

09 // specify how many levels of call stack should be shown in each log message

10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

11 

12 require_once($yii);

13 Yii::createWebApplication($config)->run();






Does this mean that the model isn’t correct?

this module, while the author obviously put a lot of effort, has lots, lots of bugs

not only the above - which I got as well

but try to change your (admin’s) own password - fails to convert it first to MD5 and stores it in clear text (!!!), despite that the default isntall has the two accounts (admin and demo) with MD5 passwords in the DB