OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Reset Password Error

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Reset Password Error

Postby davidsorfa » Sat Dec 21, 2013 7:16 am

The "reset password" system has not been working for quite a while, through a number of upgrades. We are currently on 2.3.7.

The reset email goes out fine, but when the user clicks the link in the email, they get this error:

Fatal error: Call to undefined method: userdao->getbyusername() in .../htdocs/lib/pkp/pages/login/PKPLoginHandler.inc.php on line 231


Is there a fix for this? It would be a great help.

Thank you.

David
http://www.film-philosophy.com
davidsorfa
 
Posts: 19
Joined: Thu Nov 05, 2009 3:00 am

Re: Reset Password Error

Postby asmecher » Sun Dec 22, 2013 2:30 pm

Hi David,

Something is unusual with your code -- line 231 of PKPLoginHandler.inc.php on OJS 2.3.7 should be a blank. The closest match is line 227, which should read...
Code: Select all
if ($username == null || ($user =& $userDao->getUserByUsername($username)) == null) {
Note that the function call is getUserByUsername, not getByUsername.

I suspect you've somehow mixed code from different versions.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8311
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 6 guests