in some of my OJS 3.1.1.-2 Installations, the discusssions no not work (Alert: “Failed Ajax request or invalid JSON returned.”).
In all my installations (also in those where the discussions work), I get a notice about an undefined variable:
PHP Notice: Undefined variable: reviewAssignments in /data/ojs/xxx/lib/pkp/controllers/grid/queries/form/QueryForm.inc.php on line 273, referer: http://xxx/index.php/testjournal1/workflow/index/4/5
When I add
$reviewerAssignments = array();
to line 258 in the QueryForm (pkp-lib/QueryForm.inc.php at ojs-stable-3_1_1 · pkp/pkp-lib · GitHub), the discussions work fine.
reviewAssignments is defined in this (fetch) function, but only in an if-statement.