Error "Warning: in_array() expects parameter 2 to be array, null given"

Any ideas what could be causing the following error in OJS 3.2.x when creating a new submission: Warning: in_array() expects parameter 2 to be array, null given in [server folder]/lib/pkp/pages/workflow/PKPWorkflowHandler.inc.php on line 373

Everything seems to work, which makes it non critical (maybe). But I still don’t like errors appearing.

That is resulting from an undefined setting in the journal. When the code checks the setting, it should cast a null value to an empty array. I’ve fixed that with Fix PHP notice when setting undefined · pkp/pkp-lib@fd3e858 · GitHub and the fix will go out with 3.3.

In the meantime, it will not cause any errors. The conditional will fail as it should.