I get an empty page when I want to start a new submission and have no items in the submission checklist in OMP 3.1.
On a different server, I do not have this problem.
When I add “(array)” before $context->getLocalizedSetting(‘submissionChecklist’) in PKPSubmissionSubmitStep1Form.inc.php the problem is solved.
Would it be possible to add this to the code (or some other solution)?
Does this entry from the FAQ answer your question?
Public Knowledge Project Team
thank you for the link. I found out why the page is blank, and I think a good solution would be to convert a null result to an empty array. So php (5.6.14) won’t stop processing but simply skip the loop.
On another server (php 5.6.29), the error does not occur.
Error log: PHP Warning: Invalid argument supplied for foreach() in /…/lib/pkp/classes/submission/form/PKPSubmissionSubmitStep1Form.inc.php on line 36