Error article report plugin

Hello, my article report plugin is error in my journal. I’m using OJS 3.1.2 and it has been error when it is upgraded from 2.4.

The website showed

This site can’t be reached

The webpage at ./management/tools/report?pluginName=ArticleReportPlugin might be temporarily down or it may have moved permanently to a new web address.

ERR_INVALID_RESPONSE

This is the error report

DB Error: Commands out of sync; you can’t run this command now

Stack Trace:

File: */public/journal/lib/pkp/classes/session/SessionDAO.inc.php line 109
Function: DAO->update(“UPDATE sessions SET user_id = ?, ip_address = ?, …”, Array(9))

File: */public/journal/lib/pkp/classes/session/SessionManager.inc.php line 185
Function: SessionDAO->updateObject(Object(Session))

File: (unknown) line (unknown)
Function: SessionManager->write(“", "csrf|a:2:{s:9:“timestamp”;i:1569773441;s:5:“token”;s:32:"…”)

File: (unknown) line (unknown)
Function: session_write_close()

Please help me again.

Regards,
Felix

Hi @felixfw,

Are there any relevant messages above that one in the log, e.g. warnings?

Regards,
Alec Smecher
Public Knowledge Project Team

Dear @asmecher,

Yes, there is also warning in all of the pages about:

Warning : Cannot use a scalar value as an array in /public/journal/lib/pkp/classes/core/DataObject.inc.php on line 133

Warning : Cannot modify header information - headers already sent by (output started at /public/journal/lib/pkp/classes/core/DataObject.inc.php:133) in /public/journal/plugins/reports/articles/ArticleReportPlugin.inc.php on line 63

Warning : Cannot modify header information - headers already sent by (output started at /public/journal/lib/pkp/classes/core/DataObject.inc.php:133) in /public/journal/plugins/reports/articles/ArticleReportPlugin.inc.php on line 64

Thank you.

Regards,
Felix

Hi @felixfw,

Make sure display_errors is off – so errors are directed to the log rather than the browser – then check the logs for details.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher

Thank you for your help. I have seen the logs details and it is because the allocation memory and I have solved this regarding this situation. Thanks a lot.

Regards,
Felix

1 Like

Hello how can activate display_errors in ojs?