Discussions not working

Hi,

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 (https://github.com/pkp/pkp-lib/blob/ojs-stable-3_1_1/controllers/grid/queries/form/QueryForm.inc.php#L273), the discussions work fine.

reviewAssignments is defined in this (fetch) function, but only in an if-statement.

best,
Carola

Hi @carola,

Thanks – I added the missing initialization:

Regards,
Alec Smecher
Public Knowledge Project Team