This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » User management plugins » [resolved] sfForkedDoctrineApply reset password
[resolved] sfForkedDoctrineApply reset password [message #97826] Thu, 22 April 2010 03:04 Go to next message
iceblock
Messages: 30
Registered: February 2009
Location: australia
Member
I'm using Symfony 1.4.

When trying to reset password:

Fatal error: Call to a member function getUsername() on a non-object in /path/to/sfDoctrineGuardPlugin/lib/user/sfGuardSecurityUser. class.php on line 240

The reset form is accessed via 'Forgot password' link from login page.

I have followed setup instruction from readme page, except that for all settings to yml files in apps/application/config, they're all done in global config directory (could this be an issue?) Are there anything I have overlooked?

Update: I also got the same error when trying to setup a new account.

[Updated on: Mon, 24 May 2010 08:05]

Re: sfForkedDoctrineApply reset password [message #98243 is a reply to message #97826 ] Thu, 29 April 2010 08:07 Go to previous messageGo to next message
iceblock
Messages: 30
Registered: February 2009
Location: australia
Member
No one knows?
Re: sfForkedDoctrineApply reset password [message #98246 is a reply to message #98243 ] Thu, 29 April 2010 08:54 Go to previous messageGo to next message
fizyk  is currently offline fizyk
Messages: 64
Registered: December 2009
Location: Western Slavic Republic
Member
It seems that no User object is being created,
getUsername is method from sfGuardUser object.

Do you have sfDoctrineGuardPlugin installed?

There isn't much settings that could affect that... And relation should be created... which are those? I hope not routing?

The method is called on line 402 in sfApplyActionsLibrary class, but if we get this far, then the object is certainly created, and can't be non-object. especially when the profile is retrieved out of it before, and there's a check if it's active http://github.com/fizyk/sfForkedDoctrineApplyPlugin/blob/mas ter/lib/action/sfApplyActionsLibrary.class.php#L402 (that's the line)

Can you confirm this is happening for the ForkedApply reset page and not because it's trying to access through the sfDoctrineGuard link?

And most important: You have extended myUser class from you app with sfGuardSecurityUser?
Re: sfForkedDoctrineApply reset password [message #98250 is a reply to message #97826 ] Thu, 29 April 2010 09:19 Go to previous messageGo to next message
iceblock
Messages: 30
Registered: February 2009
Location: australia
Member
Yes, sfDoctrineGuardPlugin installed and myUser class extended with sfGuardSecurityUser. I can login successfully but can't create account nor reset password (I haven't tried other functionalities yet.) Saving user setting works.

I have tested with creating dummy functions in /path/to/my/app/modules/sfApply/actions/actions.class.php by copying codes line by line from the action library to see where it fails. And it fails when save() is called. (lines 44 and line 393 in sfApplyActionsLibrary.class.php) Not too sure what happens when save is called.

Quote:


Can you confirm this is happening for the ForkedApply reset page and not because it's trying to access through the sfDoctrineGuard link?



This happens when I click on the 'Reset My Password' button from the Reset form.

[Updated on: Fri, 30 April 2010 02:42]

Re: sfForkedDoctrineApply reset password [message #99501 is a reply to message #97826 ] Fri, 21 May 2010 07:47 Go to previous messageGo to next message
iceblock
Messages: 30
Registered: February 2009
Location: australia
Member
no solution?
Re: sfForkedDoctrineApply reset password [message #99512 is a reply to message #99501 ] Fri, 21 May 2010 10:47 Go to previous messageGo to next message
fizyk  is currently offline fizyk
Messages: 64
Registered: December 2009
Location: Western Slavic Republic
Member
Hmmm...
Does you user, you're trying to reset password for, has user profile created?

It's like the getProfile() method returns null object.
Re: sfForkedDoctrineApply reset password [message #99634 is a reply to message #97826 ] Mon, 24 May 2010 02:39 Go to previous messageGo to next message
iceblock
Messages: 30
Registered: February 2009
Location: australia
Member
Yes, the user record is there. If logged in I'm able go to 'settings' form showing the right info. If user not found, shouldn't it display such error message?

It just doesn't allow password reset request (if not logged in) nor creating a new account.

[Updated on: Mon, 24 May 2010 02:40]

Re: sfForkedDoctrineApply reset password [message #99654 is a reply to message #97826 ] Mon, 24 May 2010 08:04 Go to previous message
iceblock
Messages: 30
Registered: February 2009
Location: australia
Member
Ok it's working now, and why it works is beyond me.

I created a completely new project, and gradually added plugins, modules and any modified files over from the old project.

The only difference is probably V1.2.1 is now used in the new project that was created - just noticed there's a new version when I tried to go through readme from the plugin page to see what could be wrong (was using V1.1.1). What's documented in the change log seems also irrelevant to my problem.
Previous Topic:BasesFGuardUserFormFilter
Next Topic:After SignIn, Redirect to requested page (route), and not referrer
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software