Hi everybody,
I’m encountering an issue with my OJS 3.2.1.4 installation, specifically with the email templates section. When I click on the tab, an unexpected error message appears on the screen. In the logs, the following message is displayed:
Undefined variable: emailTemplates in /var/www/html/lib/pkp/api/v1/emailTemplates/PKPEmailTemplateHandler.inc.php on line 146, referer: https://incubadora.periodicos.ufsc.br/index.php/IJIE/management/settings/workflow"
The code around the mentioned line looks like this:
$emailTemplates = $collector->getMany();
return $response->withJson([
'itemsMax' => $collector->limit(null)->offset(null)->getCount(),
'items' => Repo::emailTemplate()->getSchemaMap()->summarizeMany($emailTemplates),
], 200);
}
Does anyone have any idea what might be happening? I appreciate the help…