-
Notifications
You must be signed in to change notification settings - Fork 468
Description
We have upgraded from OJS 3.1.1.2 to OJS 3.1.2 . After the upgrade, in some articles from some journals we cannot access to the Editorial History popup (it hangs on loading forever). It does not happend with all journals, neither with all articles from affected journals.
We have found many entries like these in the logs:
[Thu Apr 11 14:01:35.552359 2019] [:error] [pid 15735] [client ---] FastCGI: server "/usr/lib/cgi-bin/php7-fcgi-revistas-ssl" stderr: PHP message: PHP Fatal error: Uncaught Error: Call to a member function getFullName() on null in /var/www/ojs/lib/pkp/classes/user/UserDAO.inc.php:465, referer: https://revistas.unlp.edu.ar/raab/workflow/index/5154/5
It seems some events, all of them related to emails (an email has been sent, an automatic reminder has been sent...), do not have a valid user_id (zero).
I have patched temporarily that class by changing the line 465 of /lib/pkp/classes/user/UserDAO.inc.php with this:
return ($user) ? $user->getFullName() : " - ";
so now we see a "-" when there is no user for the event (see image below). But off course this is not a real solution, we should see if anyone else has had the same issue after upgrading.
