OJS 3.1.2: OpenAIREPlugin problem in submission process

Thank you for the link to the patch! Helped solve our problem after code insertion.

We also had trouble with the OpenAIREPlugin which was stalling the process of submission to a journal. The Plugin is not even activated. The PHP error was PHP Fatal error: Uncaught Error: Call to a member function setData() on null in /var/www/html/plugins/generic/openAIRE/OpenAIREPlugin.inc.php:125

Coming from “…submission/wizard/3…” the Stack trace is the following:

#0 /var/www/html/lib/pkp/classes/plugins/HookRegistry.inc.php(107): OpenAIREPlugin->metadataExecute('submissionsubmi...', Array)
#1 /var/www/html/lib/pkp/classes/form/Form.inc.php(314): HookRegistry::call('submissionsubmi...', Array)
#2 /var/www/html/lib/pkp/classes/submission/form/PKPSubmissionSubmitStep3Form.inc.php(99): Form->execute()
#3 /var/www/html/lib/pkp/pages/submission/PKPSubmissionHandler.inc.php(171): PKPSubmissionSubmitStep3Form->execute()
#4 /var/www/html/lib/pkp/classes/core/PKPRouter.inc.php(390): PKPSubmissionHandler->saveStep(Array, Object(Request))
#5 /var/www/html/lib/pkp/classes/core/PKPPageRouter.inc.php(231): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)
#6 /var/www/html/lib/pkp/classes/core/Dispatcher.inc.php(134): PKPPageRouter->route(Object(Request))
#7 /var/www/html/lib/pkp/classes/core/PKPApplication.inc in /var/www/html/plugins/generic/openAIRE/OpenAIREPlugin.inc.php on line 125

What I find puzzeling is that it is the second plugin which is causing a stall in the publication process (other example was OrcidPlugin and final step in publication see here: OrcidProfilePlugin.inc.php) in different publications and both plugins were not activated.