Several PHP Warnings after fresh installation of OJS 3.1.1.4

ojs3

#1

Hello everybody and thanks in advance,

we installed OJS 3.1.1.4 on a new debian server, we restored the database from the previous server which run OJS 3.0xx. Everything seems to be fine and is working. The odd thing is, that we have a huge apache2 error.log.

Everytime we only access the server on the web, we get these error-messages:

PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var/www/rmo/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0

PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var/www/rmo/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0

PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /var/www/rmo/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0

PHP Warning: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /var/www/rmo/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0

PHP Notice: Only variables should be passed by reference in /var/www/rmo/plugins/generic/customBlockManager/CustomBlockManagerPlugin.inc.php on line 65

PHP Notice: Only variables should be assigned by reference in /var/www/rmo/pages/index/IndexHandler.inc.php on line 68

PHP Warning: Declaration of SubmissionFileDAO::fromRow($row) should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /var/www/rmo/classes/article/SubmissionFileDAO.inc.php on line 23

Every next action on our website results in more error-messages of the same kind.

What went wrong?

Specification of the server:

Debian 9 (Stretch)
PHP 7.0.30
Apache2
OJS 3.1.1.4
MariaDB Server version: 10.1.37

Mod 777 for:

/var/www/rmo/cache
/var/www/rmo/public
/opt/files

Kind regards

Frank


#2

These are developer-focused messages and can be ignored for production purposes.

If you have these messages displaying to the screen for your users, be sure to turn off display_errors in config.inc.php:

If you are just concerned with them littering your error logs, that is legitimate. We have been doing this cleanup slowly (e.g. https://github.com/pkp/pkp-lib/issues/3578), but this is still more to come. You can prevent them from being recorded by changing your PHP error_reporting directive, if desired.