OJS 3.4 DOI registration stuck on submitted

Describe the issue or problem
After updating to OJS3.4 (and php 8.1) the DOIs (Medra agency) remain on submitted and never get registered. I also tried to manually export a DOI to import them into medra and in the logs I get the message at the bottom of this page.
if I try to export very old articles (the first ones) the export is carried out successfully. I add that during the update I had to use the resolveAgencyDuplicates.php tool because around 120 articles (out of several thousand) had problems with the DOIsSteps I took leading up to the issue

To reproduce the problem

  1. Go to the DOIs menu in dashboard
  2. Select an article
  3. Click on the button “Bulk actions” and then select “Export DOIs”
  4. A window pop up with the message “Error One or more invalid publication objects were included with the request.”

*What application are you using?
OJS 3.3.0-6/PHP8.1

Additional information
error.log
AH01071: Got error ‘PHP message: Slim Application Error:\nType: Error\nMessage: Call to a member function getData() on null\nFile: /var/www/ojs-3.4.0-6/plugins/generic/medra/filter/ArticleMedraXmlFilter.php\nLine: 187\nTrace: #0 /var/www/ojs-3.4.0-6/plugins/generic/medra/filter/ArticleMedraXmlFilter.php(90): APP\plugins\generic\medra\filter\ArticleMedraXmlFilter->createArticleNode()\n#1 /var/www/ojs-3.4.0-6/lib/pkp/classes/filter/Filter.php(498): APP\plugins\generic\medra\filter\ArticleMedraXmlFilter->process()\n#2 /var/www/ojs-3.4.0-6/classes/plugins/PubObjectsExportPlugin.php(486): PKP\filter\Filter->execute()\n#3 /var/www/ojs-3.4.0-6/plugins/generic/medra/MedraExportPlugin.php(145): APP\plugins\PubObjectsExportPlugin->exportXML()\n#4 /var/www/ojs-3.4.0-6/plugins/generic/medra/MedraPlugin.php(112): APP\plugins\generic\medra\MedraExportPlugin->exportAsDownload()\n#5 /var/www/ojs-3.4.0-6/lib/pkp/api/v1/dois/PKPDoiHandler.php(415): APP\plugins\generic\medra\MedraPlugin->exportSubmissions()\n#6 [internal function]: PKP\API\v1\doi…’

Hi @Nick_Straw,

You mention both OJS 3.3.0-6 and 3.4.0-x in your post; what version of OJS do you use? Also, what version of the MEDRA plugin are you using?

Regards,
Alec Smecher
Public Knowledge Project Team

Sorry a typo error.
My ojs version is 3.4.0-6 and this is the version.xml file of medra plugin

medra
plugins.generic
4.0.0.4
2024-04-16
MedraPlugin

Finally, since I had several issues with DOIs, I rolled back to 3.3.0-17 (then updated to 19). Now I’ve updated to 3.4.0-7 on a test server and I have a different problem. If I try to install the “DOI to mEDRA XML export and registration plugin” from plugin gallery, the install fails and I have this error on the dashboard:
SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect INTEGER value: ‘’ (SQL: update dois set status = 3 where doi_id = )
I run PHP 8.1 on Ubuntu 22.04

Hi @Nick_Straw,

Sorry for the late response :frowning:

Could you please apply these changes: pkp/medra#30 use type casting in MedraDoiDataMigration by bozana · Pull Request #31 · pkp/medra · GitHub ?
And then start the clean upgrade on the test server anew?
Does this solve the error “Invalid datetime format: 1292 Truncated incorrect INTEGER value…” ?

Thanks,
Bozana