PHP Fatal error: Uncaught TypeError: PKP\user\Repository::getByEmail()

Hi,
Although, I havn’t noticed any issue on frontend yet, I am noticing the following Fatal error appearing everyday in my php error log:

[09-May-2024 16:36:08 Asia/Riyadh] PHP Fatal error: Uncaught TypeError: PKP\user\Repository::getByEmail(): Argument #1 ($email) must be of type string, null given, called in /home/seisense/journal.seisense.com/lib/pkp/pages/login/LoginHandler.php on line 227 and defined in /home/seisense/journal.seisense.com/lib/pkp/classes/user/Repository.php:85
Stack trace:
#0 /home/seisense/journal.seisense.com/lib/pkp/pages/login/LoginHandler.php(227): PKP\user\Repository->getByEmail()
#1 [internal function]: PKP\pages\login\LoginHandler->requestResetPassword()
#2 /home/seisense/journal.seisense.com/lib/pkp/classes/core/PKPRouter.php(334): call_user_func()
#3 /home/seisense/journal.seisense.com/lib/pkp/classes/core/PKPPageRouter.php(277): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest()
#4 /home/seisense/journal.seisense.com/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPPageRouter->route()
#5 /home/seisense/journal.seisense.com/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch()
#6 /home/seisense/journal.seisense.com/index.php(21): PKP\core\PKPApplication->execute()
#7 {main}
thrown in /home/seisense/journal.seisense.com/lib/pkp/classes/user/Repository.php on line 85

Does anybody know what is this error about and how to fix this issue.

My OJS: 3.4.0.5 and PHP: 8.1

Thanks
seisense

In my site is same situation… Everyday…

Hi all,

This message is harmless – it means someone tried to reach the “reset password” page without specifying an email address – but you can prevent it from appearing in the log by applying this change:

Regards,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 9 days. New replies are no longer allowed.