Ojs3.1.1.0 error datacite plugin

Hi,
it seems that after upgrading to ojs3.1.1.0 our datacite plugin doesn’t work any more. When I “schedule an article for publication” I get this error message:

datacite_plugin_error

Then the preview of the future issue shows our DOIs, but when I publish the issue (on our test system with our test prefix) the DOIs are not registered.

These are the apache error logs:
[Mon Jun 18 12:33:08.879236 2018] [:error] [pid 25254] [client 10.153.124.94:52365] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /opt/ojs-jums/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0, referer: https://jums-ojs3test.ub.uni-muenchen.de/index.php/JMS/management/importexport/plugin/DataciteExportPlugin
[Mon Jun 18 12:33:08.930214 2018] [:error] [pid 25254] [client 10.153.124.94:52365] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /opt/ojs-jums/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0, referer: https://jums-ojs3test.ub.uni-muenchen.de/index.php/JMS/management/importexport/plugin/DataciteExportPlugin
[Mon Jun 18 12:33:08.930240 2018] [:error] [pid 25254] [client 10.153.124.94:52365] PHP Warning: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /opt/ojs-jums/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0, referer: https://jums-ojs3test.ub.uni-muenchen.de/index.php/JMS/management/importexport/plugin/DataciteExportPlugin
[Mon Jun 18 12:33:08.963582 2018] [:error] [pid 25254] [client 10.153.124.94:52365] PHP Warning: Division by zero in /opt/ojs-jums/lib/pkp/classes/core/ArrayItemIterator.inc.php on line 134, referer: https://jums-ojs3test.ub.uni-muenchen.de/index.php/JMS/management/importexport/plugin/DataciteExportPlugin
[Mon Jun 18 12:33:08.963697 2018] [:error] [pid 25254] [client 10.153.124.94:52365] PHP Warning: Division by zero in /opt/ojs-jums/lib/pkp/classes/core/ArrayItemIterator.inc.php on line 134, referer: https://jums-ojs3test.ub.uni-muenchen.de/index.php/JMS/management/importexport/plugin/DataciteExportPlugin

Everythin worked fine with ojs3.1.0.1…

Thanks for help,
Anna

Hi @akku

The DOI assignment in OJS 3 is slightly different than in OJS 2: the DOIs have to be explicitly/manually assigned, but they can be assigned only when all the variables form the DOI suffix are resolvable. I.e. in your example above: you seem to use the variable “%p” in your DOI suffix (which means that the page number should be inserted at that place), but it seems that you have not entered the page numbers when scheduling the article, could that be?

The PHP warnings are not important for this issue, however thanks a lot for thinking about the log files i.e. providing as much information as possible!

Best,
Bozana

Hi @Bozana,

thanks a lot for your support and sorry for the late reply. We solved the problem and can register our DOIs now :grinning:.

best regards,
Anna

Hi @Bozana,

sorry, but I need to come back to this problem: we only solved it by accident, but the bug still exists.
When I publish a new article “Zur Veröffentlichung vorsehen” I ALWAYS get this error message, although the datacite schema is correct:

error

If I publish the arcticle for the 2nd time “Zur Veröffentlichung vorsehen”, I get a correct message:

correct

So, altogether the doi registration works, but to me it seems that there is a bug in the system?

Thanks,
Anna

Hi @akku

Ah, I believe I know why: when the page numbers are entered first, they are not saved before the message appears i.e. the message window still does not know about it.
I’ll take a look if there is a better way to solve it…

Thanks!
Bozana

Hi @akku

I opened a new GitHub Issue for that: reload submission after saving the Schedule For Publication form · Issue #3935 · pkp/pkp-lib · GitHub. There you will find the fix. I.e. you would need to apply these changes: pkp/pkp-lib#3935 get the submisison after saving the schedule for pub… by bozana · Pull Request #2068 · pkp/ojs · GitHub

Best,
Bozana

Hi @Bozana,
thank you very much for your quick response and fix. I will apply and test it tomorrow.
Thanks a lot :bouquet:,
Anna

Good morning @Bozana,

it works :+1:
Thanks a lot,
Anna