Error if there is an empty submission checklist in OMP 3.1


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 the problem is solved.

Would it be possible to add this to the code (or some other solution)?


Hi @carola,

Does this entry from the FAQ answer your question?

Amanda Stevens
Public Knowledge Project Team

Hi @astevens,

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/ on line 36