My school has an instance of OJS 3.1.2 and have noticed some titles fail to load the activity log. Chrome shows a console error /$$$call$$$/grid/event-log/submission-event-log-grid/fetch-grid?submissionId=7&_=1552570465045
I tried to find the matching records in the event log table but have failed to find the matching items. The submissions that fail to load usually have two reviews.
Thank you, I’ve updated the code but continue to get the error for certain submissions. Edge just mentions the error above but chrome also shows a
Uncaught TypeError: Cannot read property ‘focus’ of null
at s.resetFocusInfoCenter (build.js:1)
at ModalHandler.js:257
error.
That browser error is probably unrelated, but there might be more details in your server error log, when you attempt to load the activity log. Do you mind taking a look?
I’m sorrry for the format but here is a look at the apache error log.
[Fri Mar 15 13:45:36.660735 2019] [php7:error] [pid 29408] [client 150.216.60.61:50382] PHP Fatal error: Uncaught Error: Call to a member function getFullName() on null in /var/www/ojsproduction/lib/pkp/classes/user/UserDAO.inc.php:465\nStack trace:\n
#0 /var/www/ojsproduction/lib/pkp/classes/log/EmailLogEntry.inc.php(129): UserDAO->getUserFullName('0', true)\n
#1 /var/www/ojsproduction/lib/pkp/controllers/grid/eventLog/EventLogGridCellProvider.inc.php(96): EmailLogEntry->getSenderFullName()\n
#2 /var/www/ojsproduction/lib/pkp/classes/controllers/grid/GridCellProvider.inc.php(49): EventLogGridCellProvider->getTemplateVarsFromRowColumn(Object(EventLogGridRow), Object(GridColumn))\n
#3 /var/www/ojsproduction/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1098): GridCellProvider->render(Object(Request), Object(EventLogGridRow), Object(GridColumn))\n
#4 /var/www/ojsproduction/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1005): GridHandler->_renderCellInternally(Object(Request), Object(EventLogGridRow), Object(GridColumn))\n
#5 /var/www/ojsproduction/lib/pkp/classes/controllers/grid/GridHandler.inc.php(982): GridHan in /var/www/ojsproduction/lib/pkp/classes/user/UserDAO.inc.php on line 465, referer: http://tpre.ecu.edu/index.php/tpre/submissions
[Fri Mar 15 13:53:01.641678 2019] [php7:warn] [pid 29417] [client 75.110.74.238:57968] PHP Warning: Declaration of ReviewerReviewFilesGridDataProvider::loadData() should be compatible with ReviewGridDataProvider::loadData($filter = Array) in /var/www/ojsproduction/lib/pkp/controllers/grid/files/review/ReviewerReviewFilesGridDataProvider.inc.php on line 18, referer: http://tpre.ecu.edu/index.php/tpre/reviewer/submission/7
It looks like there is an email log entry that originally had a user associated with it, and then that user was either deleted or merged into another user, and the email log entry was never cleaned up.
Did you upgrade from an older version to 3.1.2? Did everything go smoothly with the upgrade?
Thank you. The email log had about eight items with a sender_id of zero. I upgraded the server twice and thought both were successful but something must have corrupted the log file.
Oh. I think you jumped into this thread with a different question. This patch isn’t for the usage stats plugin. You can just look at the very end of your log file to get the specific error for this when you generate the plugin. Also, you could talk to your systems admin to configure log rotation so your logs do not get so big.
I am facing the same issue, (activity log was not loading for some articles) I came across this patch you mentioned… Can you guide me how do I use a patch for my ojs, because I have never used any patch. (I always upgraded by using complete source)…
I shall be grateful to you.
Regards,