OJS 2.4.5: PHP error log at line 142 of Article.inc.php


Hi folks,

Does someone could help us to understand and solve the following PHP log error that is occuring thousand of times in our OJS 2.4.5 installation?:

[Thu Jun 14 16:19:06 2018] [error] [client] ojs2 has produced an error\n Message: WARNING: array_shift() expects parameter 1 to be array, null given\n In file: /srv/www/ojs/classes/article/Article.inc.php\n At line: 142\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.3.3\n Apache Version: Apache\n DB Driver: mysql\n DB server version: 5.6.29-76.2-log, referer: http://bibliotecadigital.fgv.br/

The refered line 142 of Article.inc.php is part of the function getLocalizedCopyrightHolder()


ejsboregas, São Paulo, Brasil


Hi @ejsboregas,

I suspect that’s already been fixed in newer releases of OJS. I’d suggest upgrading to the latest OJS 2.x, or better yet, to 3.x if you’re ready for that.

Alec Smecher
Public Knowledge Project Team


Thanks Alec, we will upgrade our OJS 2.4.5 as soon as possible.

By the way, would you point us the most OJS recent and stable version ?

Edmilson José Boregas
São Paulo, Brasil


Hi @ejsboregas,

You can always download from OJS, and see the latest version number, from https://pkp.sfu.ca/ojs/ojs_download/.

Alec Smecher
Public Knowledge Project Team


Thanks a bunch, Alec!