Hi PKP team I have a issue with the OJS 3.3.0.8 version, I have executed the command line script mergerUsers.php to clean my OJS from spam users. I have my list of usernames which I suspect them as spam accounts. However some of these can’t be merged, the script gave the following error message:
[desarrollo@oa revistas_unam_ojs3308]$ php tools/mergeUsers.php publicaciones aprofesorps
PHP Fatal error: Uncaught Error: Call to a member function getUsername() on null in /var/www/html/revistas_unam_ojs3308/lib/pkp/classes/services/PKPSubmissionFileService.inc.php:478
Stack trace:
#0 /var/www/html/revistas_unam_ojs3308/lib/pkp/classes/user/PKPUserAction.inc.php(36): PKP\Services\PKPSubmissionFileService->edit()
#1 /var/www/html/revistas_unam_ojs3308/classes/user/UserAction.inc.php(24): PKPUserAction->mergeUsers()
#2 /var/www/html/revistas_unam_ojs3308/lib/pkp/classes/cliTool/MergeUsersTool.inc.php(95): UserAction->mergeUsers()
#3 /var/www/html/revistas_unam_ojs3308/tools/mergeUsers.php(21): MergeUsersTool->execute()
#4 {main}
thrown in /var/www/html/revistas_unam_ojs3308/lib/pkp/classes/services/PKPSubmissionFileService.inc.php on line 478
The environment is:
PHP 7.4.32
MySQL Ver 8.0.31
OJS 3.3.0.8
How can I resolve this error and accomplish correctly the merge of these spam users? Thanks for your help.