PHP Fatal Error on Error Log OJS 3.2.0.3

Hi,
I get a PHP Fatal Error when I try to assign articles to a future issue but the process completes at the frontend.
Anyone else having the same problem?
Do you have any solution for this?
Best Regards,
Dr Ugur Kocak

[30-May-2020 12:24:20 Europe/Istanbul] PHP Fatal error:  Uncaught Error: Call to a member function getUserId() on null in /home/journals/public_html/lib/pkp/controllers/grid/queries/QueriesAccessHelper.inc.php:119
Stack trace:
#0 /home/journals/public_html/lib/pkp/controllers/grid/queries/QueriesGridRow.inc.php(79): QueriesAccessHelper->getCanDelete(335)
#1 /home/journals/public_html/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1068): QueriesGridRow->initialize(Object(Request))
#2 /home/journals/public_html/lib/pkp/classes/controllers/grid/GridHandler.inc.php(985): GridHandler->_getInitializedRowInstance(Object(Request), 335, Object(Query))
#3 /home/journals/public_html/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1033): GridHandler->renderRowsInternally(Object(Request), Array)
#4 /home/journals/public_html/lib/pkp/classes/controllers/grid/GridHandler.inc.php(923): GridHandler->renderGridBodyPartsInternally(Object(Request))
#5 /home/journals/public_html/lib/pkp/classes/controllers/grid/GridHandler.inc.php(645): GridHandler->doSpecificFetchGridAction in /home/journals/public_html/lib/pkp/controllers/grid/queries/QueriesAccessHelper.inc.php on line 119

Hi @drugurkocak,

You probably have an entry in the notes database table that does not correspond to an existing entry in users. You can identify it with the following database query:

SELECT n.* FROM notes n LEFT JOIN users u ON (u.user_id = n.user_id) WHERE u.user_id IS NULL; 

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like