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
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

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.

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.

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

Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 1 guest