Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
itdap opened this issue Jan 23, 2014 · 1 comment

Comments

@itdap
Copy link

itdap commented Jan 23, 2014

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
Copy link

pavlyuts commented Feb 2, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants