[Module] Yii User Management Module

Sorry, another problem I am encountering.

When I click on the link, ‘Edit Profile’ in the ../user/user/profile page, I get the error


Fields with * are required.


		

Fatal error:  Call to a member function isAttributeRequired() on a non-object in D:\xampp\htdocs\myWebFolder\blog\framework\web\helpers\CHtml.php on line [b]1154




Other links work fine. Similarly if I click the link ‘Back to Profile’ from the messages page, ../user/message/index, I get the error:


Error 404

The system is unable to find the requested action "profile".	

As the url is getting redirected to …user/messages/profile. And there is nothing in user/messages folder!

Did I miss something in documentation…

Regard

[b]

[/b]

Another problem I encountered was, when I tried to activate the account by using the email link generated on registeration of new account:

Error 500

YumUserController does not have a method named "generateActivationKey".

The full error is here:

exception ‘CException’ with message ‘YumUserController does not have amethod named “generateActivationKey”.’ inD:\xampp\htdocs\myWebFolder\blog\framework\base\CComponent.php:266Stack trace:#0 [internal function]: CComponent->__call(‘generateActivat…’, Array)#1D:\xampp\htdocs\myWebFolder\blog\protected\modules\user\models\YumUser.php(152):YumUserController->generateActivationKey(true)#2D:\xampp\htdocs\myWebFolder\blog\protected\modules\user\controllers\YumUserController.php(234):YumUser->activate(‘bumeshrai@local…’, ‘73ed494f9c8ad6b…’)#3D:\xampp\htdocs\myWebFolder\blog\framework\web\actions\CInlineAction.php(32):YumUserController->actionActivation()#4 D:\xampp\htdocs\myWebFolder\blog\framework\web\CController.php(300):CInlineAction->run()#5D:\xampp\htdocs\myWebFolder\blog\framework\web\filters\CFilterChain.php(129):CController->runAction(Object(CInlineAction))#6 D:\xampp\htdocs\myWebFolder\blog\framework\web\filters\CFilter.php(41):CFilterChain->run()#7 D:\xampp\htdocs\myWebFolder\blog\framework\web\CController.php(1049):CFilter->filter(Object(CFilterChain))#8D:\xampp\htdocs\myWebFolder\blog\framework\web\filters\CInlineFilter.php(59):CController->filterAccessControl(Object(CFilterChain))#9D:\xampp\htdocs\myWebFolder\blog\framework\web\filters\CFilterChain.php(126):CInlineFilter->filter(Object(CFilterChain))#10 D:\xampp\htdocs\myWebFolder\blog\framework\web\CController.php(283):CFilterChain->run()#11 D:\xampp\htdocs\myWebFolder\blog\framework\web\CController.php(257):CController->runActionWithFilters(Object(CInlineAction), Array)#12D:\xampp\htdocs\myWebFolder\blog\framework\web\CWebApplication.php(324):CController->run(‘activation’)#13D:\xampp\htdocs\myWebFolder\blog\framework\web\CWebApplication.php(121):CWebApplication->runController(‘user/user/activ…’)#14 D:\xampp\htdocs\myWebFolder\blog\framework\base\CApplication.php(135):CWebApplication->processRequest()#15 D:\xampp\htdocs\myWebFolder\blog\index.php(11): CApplication->run()#16 {main}REQUEST_URI=/myWebFolder/blog/index.php/user/user/activation/activationKey/73ed494f9c8ad6b8c37a5a4c9be7503a/email/bumeshrai%40localhost

Sorry, I dont know hor to format the error message properly.

Regards

just set ‘salt’ to some string to enable password salting. should work fine.

When I try to activate a user from the administration panel, by using the manage user link, I get the following error on clicking the username link:

Error 500

Property "YumUser.street" is not defined.

exception ‘CException’ with message 'Property “YumUser.street” is not

defined.’ in

E:\xampp\htdocs\myWebFolder\blog\framework\base\CComponent.php:131

Stack trace:

#0 E:\xampp\htdocs\myWebFolder\blog\framework\db\ar\CActiveRecord.php(110):

CComponent->__get(‘street’)

#1 E:\xampp\htdocs\myWebFolder\blog\framework\web\helpers\CHtml.php(1657):

CActiveRecord->__get(‘street’)

#2

E:\xampp\htdocs\myWebFolder\blog\framework\zii\widgets\CDetailView.php(219):

CHtml::value(Object(YumUser), ‘street’)

#3 E:\xampp\htdocs\myWebFolder\blog\framework\web\CBaseController.php(166):

CDetailView->run()

#4

E:\xampp\htdocs\myWebFolder\blog\protected\modules\user\views\user\view.php(63):

CBaseController->widget(‘zii.widgets.CDe…’, Array)

#5 E:\xampp\htdocs\myWebFolder\blog\framework\web\CBaseController.php(119):

require(‘E:\xampp\htdocs…’)

#6 E:\xampp\htdocs\myWebFolder\blog\framework\web\CBaseController.php(88):

CBaseController->renderInternal(‘E:\xampp\htdocs…’, Array, true)

#7 E:\xampp\htdocs\myWebFolder\blog\framework\web\CController.php(798):

CBaseController->renderFile(‘E:\xampp\htdocs…’, Array, true)

#8 E:\xampp\htdocs\myWebFolder\blog\framework\web\CController.php(739):

CController->renderPartial(‘view’, Array, true)

#9

E:\xampp\htdocs\myWebFolder\blog\protected\modules\user\controllers\YumUserController.php(454):

CController->render(‘view’, Array)

#10

E:\xampp\htdocs\myWebFolder\blog\framework\web\actions\CInlineAction.php(32):

YumUserController->actionView()

#11 E:\xampp\htdocs\myWebFolder\blog\framework\web\CController.php(300):

CInlineAction->run()

#12

E:\xampp\htdocs\myWebFolder\blog\framework\web\filters\CFilterChain.php(129):

CController->runAction(Object(CInlineAction))

#13 E:\xampp\htdocs\myWebFolder\blog\framework\web\filters\CFilter.php(41):

CFilterChain->run()

#14 E:\xampp\htdocs\myWebFolder\blog\framework\web\CController.php(1049):

CFilter->filter(Object(CFilterChain))

#15

E:\xampp\htdocs\myWebFolder\blog\framework\web\filters\CInlineFilter.php(59):

CController->filterAccessControl(Object(CFilterChain))

#16

E:\xampp\htdocs\myWebFolder\blog\framework\web\filters\CFilterChain.php(126):

CInlineFilter->filter(Object(CFilterChain))

#17 E:\xampp\htdocs\myWebFolder\blog\framework\web\CController.php(283):

CFilterChain->run()

#18 E:\xampp\htdocs\myWebFolder\blog\framework\web\CController.php(257):

CController->runActionWithFilters(Object(CInlineAction), Array)

#19

E:\xampp\htdocs\myWebFolder\blog\framework\web\CWebApplication.php(324):

CController->run(‘view’)

#20

E:\xampp\htdocs\myWebFolder\blog\framework\web\CWebApplication.php(121):

CWebApplication->runController(‘user/user/view/…’)

#21 E:\xampp\htdocs\myWebFolder\blog\framework\base\CApplication.php(135):

CWebApplication->processRequest()

#22 E:\xampp\htdocs\myWebFolder\blog\index.php(11): CApplication->run()

#23 {main} REQUEST_URI=/mywebfolder/blog/index.php/user/user/view/id/3

On investigating further the error, I found out that, if I go to update link on the manage user panel and save. A new record in tbl_profile is created for an already existing record with the same userid but a different profile id. And blank (not NULL) entries in street and about field.

After the duplicate record creation the link on the username on manage user panel works.

Regards

this is already fixed in svn, thank you.

I downloaded the rev-126 and tried. I got the following error on the blog login link:

15:11:19.723887 error system.db.CDbCommand Error in querying SQL: SHOW COLUMNS FROM yumsettings

I then ran the user management installer to build up the databases and tried again, same problem.

Sorry, removing the rev-126 from my system.

Tried out rev-133. Introduces new tables.

Looks much better. I will check out the email activation later.

My request is that in the earlier rev. I could go to the admin panel on logging in as admin. Now I cannot do it. I have to fill in the url: /user/user/login to go there. I thought the earlier option of going straight to the admin panel on admin login was better.

Thanks

The mail link is still not working. I get the following message when I click on the activation link:

http://localhost/myWebFolder/blog/index.php/user/user/activation/activationKey/bd470cb222c31e1e4786e2eb2f176882/email/bumeshrai%40localhost

User activation

Incorrect activation URL.

Another problem is browser specific. In firefox, the left frame for /user/user/login page doesn’t appear.

Regards

am I talking to a wall or is there somebody on the other side!?

Is the email Activation Link send within the email identical to the one generated into the database user table?

What’s the ‘left frame’ of the login Form?

the returnUrl can be specified in the Module Configuration. It defaults to ‘user/user/admin’. I have repaired the ‘returnUrl’ feature that points you back to where you came when the permission denied screen appears. Maybe this one causes problems, but obviously it’s working fine for me…

edit: i have reworked the registation process an dintegraded SWIFTMAILER (also available as yii-extension). This will go into my next commit (maybe tomorrow).

it’s possible that the activation url isn’t generated correct in the actual svn. i will definitely fix this, too before 0.8 stable release. thanks for reporting!

edit2: there is returnUrl and adminReturnUrl. Maybe you want to try to set adminReturnUrl?

Sorry, for the disrespectful tone of my earlier post. Extremely sorry…

I am using mercury server of xampp. I will now check for the activation code and come back.

Attachment 806 not found.

I have attached the screenshot. On admin login, the url points to the …/blog/index.php and not to …/blog/index.php/user/user/admin inspite of my making changes in …/protected/config/main.php thus:

'components'=>array(


	'user'=>array(


	  'class' => 'application.modules.user.components.YumWebUser',


	  'allowAutoLogin'=>true,


	  'loginUrl' => array('/user/user/login'),


	  'returnUrl' => array('/user/user/admin'),


	), .....

Have I made the change in the right place?

Regards

hi. you made the changes in the right place. i now have changed the way the Login Button redirects.

You can now either set returnUrl to the place where you want to go after login. Or you can set returnUrl to false (‘returnUrl’ => false), to let the application always return where you came from. The same for returnAdminUrl.

Please try this with my latest svn commit of yum.

Sorry, I am still struck, I used rev-134

I made the following changes:

'components'=>array(


	'user'=>array(


	  'class' => 'application.modules.user.components.YumWebUser',


	  'allowAutoLogin'=>true,


	  'loginUrl' => array('/user/user/login'),


	  'returnUrl' => false,


	  'returnAdminUrl' => false,


	),

I get the following error:

Error 500

Property "YumWebUser.returnAdminUrl" is not defined.

If I remove the returnAdminUrl variable, it behaves like earlier i.e going back to …/index.php page. Is there a typo… Just a guess, the function in UserModule.php is private ( private $_urls )

Attachment 807 not found.

Now its working!! Take a look at the screenshot. I removed the variable, returnUrl and returnAdminUrl from the config. Maybe I didn’t download rev-134 properly earlier.

Thanks

you are right, the activation key differ.

In the table tbl_users:

3e705bdf52890b915c0189d6981ebb22

In the email:

bd470cb222c31e1e4786e2eb2f176882

Regards

I tried 134. Most of the earlier problem are taken care of except for 1. The url activation code and tbl_user activation codes are similar now but the activation still doesn’t take place.

tbl_users entery;

ae140fe11318906faea0a13b757de557

and

url component:

ae140fe11318906faea0a13b757de557.

please try r135

I get the following error when I try to login:

Error 500

Property "YumSettings.registrationType" is not defined.