Warning and fatal error in the log file

Hi,

Two days ago I have seen some strange errors in the Apache log file:

[Sun Nov 26 14:47:39.450076 2017] [:error] [pid 12696] [client XXX.XXX.XXX.XX:20217] PHP Warning:  assert(): Assertion failed in /var/www/html/my.hostname.ca/lib/pkp/controllers/grid/submissions/SubmissionsListGridCellProvider.inc.php on line 143, referer: https://my.hostname.ca/journalname/submissions
[Sun Nov 26 14:47:39.450098 2017] [:error] [pid 12696] [client XXX.XXX.XXX.XX:20217] PHP Fatal error:  Call to a member function getId() on a non-object in /var/www/html/my.hostname.ca/lib/pkp/controllers/grid/submissions/SubmissionsListGridCellProvider.inc.php on line 147, referer: https://my.hostname.ca/journalname/submissions
[Mon Nov 27 04:32:10.194101 2017] [:error] [pid 12615] [client XXX.XXX.XXX.XX:3356] PHP Warning:  filemtime(): stat failed for lib/pkp/locale/fr_CA/languages.xml in /var/www/html/my.hostname.ca/lib/pkp/classes/language/LanguageDAO.inc.php on line 45, referer: https://my.hostname.ca/journalname/submission/wizard/2?submissionId=16
[Mon Nov 27 04:32:10.195026 2017] [:error] [pid 12615] [client XXX.XXX.XXX.XX:3356] PHP Warning:  fopen(lib/pkp/locale/fr_CA/languages.xml): failed to open stream: Aucun fichier ou dossier de ce type in /var/www/html/my.hostname.ca/lib/pkp/classes/file/FileWrapper.inc.php on line 70, referer: https://my.hostname.ca/journalname/submission/wizard/2?submissionId=16
[Mon Nov 27 04:32:10.195443 2017] [:error] [pid 12615] [client XXX.XXX.XXX.XX:3356] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/my.hostname.ca/lib/pkp/classes/language/LanguageDAO.inc.php on line 117, referer: https://my.hostname.ca/journalname/submission/wizard/2?submissionId=16
[Mon Nov 27 04:32:10.195488 2017] [:error] [pid 12615] [client XXX.XXX.XXX.XX:3356] PHP Warning:  assert(): Assertion failed in /var/www/html/my.hostname.ca/pages/submission/SubmissionHandler.inc.php on line 52, referer: https://my.hostname.ca/journalname/submission/wizard/2?submissionId=16
[Mon Nov 27 04:32:11.293297 2017] [:error] [pid 12615] [client XXX.XXX.XXX.XX:3356] PHP Warning:  filemtime(): stat failed for lib/pkp/locale/fr_CA/languages.xml in /var/www/html/my.hostname.ca/lib/pkp/classes/language/LanguageDAO.inc.php on line 45, referer: https://my.hostname.ca/journalname/submission/wizard/2?submissionId=16
[Mon Nov 27 04:32:11.293914 2017] [:error] [pid 12615] [client XXX.XXX.XXX.XX:3356] PHP Warning:  fopen(lib/pkp/locale/fr_CA/languages.xml): failed to open stream: Aucun fichier ou dossier de ce type in /var/www/html/my.hostname.ca/lib/pkp/classes/file/FileWrapper.inc.php on line 70, referer: https://my.hostname.ca/journalname/submission/wizard/2?submissionId=16
[Mon Nov 27 04:32:11.294284 2017] [:error] [pid 12615] [client XXX.XXX.XXX.XX:3356] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/my.hostname.ca/lib/pkp/classes/language/LanguageDAO.inc.php on line 117, referer: https://my.hostname.ca/journalname/submission/wizard/2?submissionId=16
[Mon Nov 27 04:32:11.294344 2017] [:error] [pid 12615] [client XXX.XXX.XXX.XX:3356] PHP Warning:  assert(): Assertion failed in /var/www/html/my.hostname.ca/pages/submission/SubmissionHandler.inc.php on line 52, referer: https://my.hostname.ca/journalname/submission/wizard/2?submissionId=16

The 2 first line is when an author create a new submission (I think). Note the time 14H47.
For the filemtime error it’s about checking the last modifications on a file, lib/pkp/locale/fr_CA/languages.xml. A file that don’t exist in any language on the platform. It seem that after that, all the other error lines (fopen, Invalid , assert) inherit from filemtime error.

This is a single instance of OJS with multiple journal, on OJS 3.0.1 with PHP 5.4.16.

Any advice on these errors or how to correct them would be much appreciated.

thanks,

First of all upgrade to OJS 3.0.2 and PHP at least 5.6.30 since PHP 5.5 and versions below 5.5 are not supported any more and they may have security issues that are not supported.
Please check again after those upgrades and see is problem still present.

Thanks

We have a staging server where we have upgraded our OJS 3.0.1 to OJS 3.1. We are planning to do the same with the production environment. But I’m wandering if it would be better to solve these problems before upgrading the platform. Since we have to translate some new keys for the fr_CA we could have the time to solve these matters.

thanks,

Sometimes problems occur due to obsolete infrastructure and version of software that does have bugs. So, my experience is that as closer you are to the production environment it is better since you do have more real situation. Thus, upgrade of PHP and OJS is always good thing to do. However, if the problem will persist it will be easier to spot issue.

Thanks