thyseus / yii-user-management

a user management module collection for the yii framework
186 stars 122 forks source link

Alias "zii.widgets.CActiveForm" is invalid. Make sure it points to an existing PHP file and the file is readable. #180

Open itdap opened 10 years ago

itdap commented 10 years ago

Hello, I need a little help. When i tried to modify my profile I got this error: Alias "zii.widgets.CActiveForm" is invalid. Make sure it points to an existing PHP file and the file is readable. (index.php?r=profile/profile/update)

I tried to move the CactiveForm file from web.widgets to zii.widgets but then i got the following one:

CActiveForm and its behaviors do not have a method or closure named "activeTextField".

if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure) 265 return call_user_func_array($this->$name, $parameters); 266 throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".',

Do you have a different version of the CActiveForm.php than Framework 1.1.14 ?

pavlyuts commented 10 years ago

I have met the same problem.

'zii.widgets.CActiveForm' is only mentioned at file \profile\views\profile\update.php line 10.

If I change in to correct location, 'system.web.widgets.CActiveForm', this leads to "activeTextField" exeption.

Fix 'activeTextField' to 'TextField' in line 21 of update.php make it works for the first look, however a lot of other exeptions in different parts of module.

I have reinstalled modules WITHOUT 'profile' part and then it looks as it works for almost all operations exept of "Grant Permission" which falls with exeption.

Guess, all of problems comes from Yii version and some changes in the framework which is not reflected in yii-user-management. My one taken directly from master branch on github, so it is ahead of 1.1.14.

Finally, I am finished my experiments with these modules and go to find other solution for user management.