mEDRA doi plugin fatal error (3.3.0-5, 3.3.0-8) after upgrade

mEDRA DOI registration plugin issue
OJS version 3.3.0.8
Plugin version 2021-06-07 (link github)

The issue is almost the same for two different OJS installations (two different publishers are involved).

3.1 installed. Upgraded to 3.3.0.6 via 3.2.x. and 3.3.0.5. The plugin was still working in 3.2.x version, then no longer working after 3.3.0.5 update nor 3.3.0.8.
Error description:
The journal is set to assign DOIs to journal issues and articles, not to galleys.
In this case, the plugin works correctly when it comes to exporting the XML file for issues, that is I get what I was used to getting once I click on the “Export” button.
The same action carried on in the “Articles” tab, gives a blank page instead and no XML file is produced.

Here it is a description of the error:
[Sun Sep 19 12:46:38.052794 2021] [php7:error] [pid 117696] [client 93.44.186.119:10387]
PHP Fatal error: Uncaught Error: Call to a member function saveXml() on null in /home/whatever/web/classes/plugins/PubObjectsExportPlugin.inc.php:392
\nStack trace:
\n#0 /home/whatever/web/classes/plugins/PubObjectsExportPlugin.inc.php(196): PubObjectsExportPlugin->exportXML()
\n#1 /home/whatever/web/classes/plugins/PubObjectsExportPlugin.inc.php(171): PubObjectsExportPlugin->executeExportAction()
\n#2 /home/whatever/web/classes/plugins/DOIPubIdExportPlugin.inc.php(29): PubObjectsExportPlugin->display()
\n#3 /home/whatever/web/lib/pkp/pages/management/PKPToolsHandler.inc.php(94): DOIPubIdExportPlugin->display()
\n#4 /home/whatever/web/lib/pkp/classes/core/PKPRouter.inc.php(395): PKPToolsHandler->importexport()
\n#5 /home/whatever/web/lib/pkp/classes/core/PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest()
\n#6 /home/whatever/web/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPPageRouter->route()
\n#7 /home/whatever/web/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch()
\n#8 /home/whatever/web/index. in /home/whatever/web/classes/plugins/PubObjectsExportPlugin.inc.php on line 392,

referer: https://whatever.cirque.unipi.it/index.php/journal/management/importexport/plugin/MedraExportPlugin

It somewhat reminds me of Fatal php error while upgrading from OJS 3.1 to the latest version, but the first lines of this error look like Call to a member function saveXml() - #12 by redukr

Shell
root@ojs:/home/whatever/web# php7.4 tools/importExport.php
Command-line tool for import/export tasks
Usage:
tools/importExport.php list: List available plugins
tools/importExport.php [pluginName] usage: Display usage information for a plugin
tools/importExport.php [pluginName] [params…]: Invoke a plugin
root@ojs:/home/whatever/web# php7.4 tools/importExport.php list
Available plugins:
UserImportExportPlugin
DOAJExportPlugin
QuickSubmitPlugin
DataciteExportPlugin
PubMedExportPlugin
CrossRefExportPlugin
NativeImportExportPlugin
MedraExportPlugin
SwordImportExportPlugin
root@ojs:/home/whatever/web# php7.4 tools/importExport.php MedraExportPlugin usage
Uso:
tools/importExport.php MedraExportPlugin export [xmlFileName] [journal_path] {issues|articles|galleys} objectId1 [objectId2] …
tools/importExport.php MedraExportPlugin register [journal_path] {issues|articles|galleys} objectId1 [objectId2] …

WHAT WE DID
First we tried by upgrading OJS from 3.3.0-5 to 3.3.0-8
Then we tried exporting with all plugin setting combinations (also playing with the DOI plugin itself). The mEDRA plugin was not working at all.
Eventually, we removed the mEDRA plugin via the interface, cancelled all settings in plugin_setings database. Reinstalled, upgraded, and reconfigured mEDRA plugin from the plugin gallery. This resulted in the plugin working with exporting (or registering) the issue, but it still fails with articles.

Another journal (same OJS and plugin version; recently updated to 3.3.0-8) has the same issue. It is, though, a completely different installation of OJS.

Any clue on what we should do?

Sorry, does anybody have any clue on this?
thanks

Hello, have you been able to solve it? I also have problems with mEDRA DOI plugin in OJS 3.3.0-7

I am using plugin [ v3_0_0-2 ] (Release Bugfix for OJS 3.3.0-6 · pkp/medra · GitHub) with Bugfix for OJS 3.3.0-6

My OJS version is 3.3.0-7

Thanks.

2021-12-30 22:24:43 Error 88.17.86.73 500 POST /index.php/ase/management/importexport/plugin/MedraExportPlugin/exportSubmissions HTTP/1.0
2021-12-30 22:24:43 Warning 88.17.86.73 mod_fcgid: stderr: PHP Warning: Illegal string offset ‘es_ES’ in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/core/DataObject.inc.php on line 133, referer: Entrar | Avances en Supervisión Educativa

2021-12-30 22:24:43 Warning 88.17.86.73 mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to a member function setDeployment() on null in /var/www/vhosts/avances.adide.org/avances/classes/plugins/PubObjectsExportPlugin.inc.php:389, referer: Entrar | Avances en Supervisión Educativa

2021-12-30 22:24:43 Warning 88.17.86.73 mod_fcgid: stderr: Stack trace:, referer: Entrar | Avances en Supervisión Educativa

2021-12-30 22:24:43 Warning 88.17.86.73 mod_fcgid: stderr: #0 /var/www/vhosts/avances.adide.org/avances/classes/plugins/PubObjectsExportPlugin.inc.php(197): PubObjectsExportPlugin->exportXML(Array, ‘article=>medra-…’, Object(Journal), true), referer: Entrar | Avances en Supervisión Educativa

2021-12-30 22:24:43 Warning 88.17.86.73 mod_fcgid: stderr: #1 /var/www/vhosts/avances.adide.org/avances/classes/plugins/PubObjectsExportPlugin.inc.php(172): PubObjectsExportPlugin->executeExportAction(Object(Request), Array, ‘article=>medra-…’, ‘exportSubmissio…’, ‘articles’, true), referer: Entrar | Avances en Supervisión Educativa

2021-12-30 22:24:43 Warning 88.17.86.73 mod_fcgid: stderr: #2 /var/www/vhosts/avances.adide.org/avances/classes/plugins/DOIPubIdExportPlugin.inc.php(29): PubObjectsExportPlugin->display(Array, Object(Request)), referer: Entrar | Avances en Supervisión Educativa

2021-12-30 22:24:43 Warning 88.17.86.73 mod_fcgid: stderr: #3 /var/www/vhosts/avances.adide.org/avances/lib/pkp/pages/management/PKPToolsHandler.inc.php(94): DOIPubIdExportPlugin->display(Array, Object(Request)), referer: Entrar | Avances en Supervisión Educativa

2021-12-30 22:24:43 Warning 88.17.86.73 mod_fcgid: stderr: #4 /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/core/PKPRouter.inc.php(395): PKPToolsHandler->importexport(Array, Object in /var/www/vhosts/avances.adide.org/avances/classes/plugins/PubObjectsExportPlugin.inc.php on line 389, referer: Entrar | Avances en Supervisión Educativa

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call to Smarty2 function get_template_vars in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 2296

Notice: Deprecated call to Smarty2 function get_template_vars in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 2296

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Notice: Deprecated call without request object. in /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 1235

Fatal error: Uncaught Error: Call to a member function setDeployment() on null in /var/www/vhosts/avances.adide.org/avances/classes/plugins/PubObjectsExportPlugin.inc.php:389 Stack trace: #0 /var/www/vhosts/avances.adide.org/avances/classes/plugins/PubObjectsExportPlugin.inc.php(197): PubObjectsExportPlugin->exportXML(Array, ‘article=>medra-…’, Object(Journal), true) #1 /var/www/vhosts/avances.adide.org/avances/classes/plugins/PubObjectsExportPlugin.inc.php(172): PubObjectsExportPlugin->executeExportAction(Object(Request), Array, ‘article=>medra-…’, ‘exportSubmissio…’, ‘articles’, true) #2 /var/www/vhosts/avances.adide.org/avances/classes/plugins/DOIPubIdExportPlugin.inc.php(29): PubObjectsExportPlugin->display(Array, Object(Request)) #3 /var/www/vhosts/avances.adide.org/avances/lib/pkp/pages/management/PKPToolsHandler.inc.php(94): DOIPubIdExportPlugin->display(Array, Object(Request)) #4 /var/www/vhosts/avances.adide.org/avances/lib/pkp/classes/core/PKPRouter.inc.php(395): PKPToolsHandler->importexport(Array, Object in /var/www/vhosts/avances.adide.org/avances/classes/plugins/PubObjectsExportPlugin.inc.php on line 389

Hi @jcabdel,

How did you install the mEDRA plugin? For example, through the Plugin Gallery, or by uplading the .tar.gz file into OJS, or by unpacking it manually somewhere in the OJS installation directory?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher

I unpacking it in local and after I upload it to /plugins/importexport/medra by ftp.

I’m not using Plugin Gallery, or by uploading the .tar.gz file into OJS.

Thanks.

Hi @jcabdel,

That explains it. Unpacking the plugin manually does not run some of the necessary installation steps that get the plugin registered with the system. I’d recommend installing it via one of the recommended methods (either the plugin gallery, or uploading into the plugin install tool in OJS).

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Effectively, when installing the plugin via the plugin gallery it worked correctly.

We did not have the tar command configured and we tried to install it that way. Wrong way!

Thanks a lot.

Hi @jcabdel,

Thanks for following up to confirm!

Regards,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 12 days. New replies are no longer allowed.