I am running OJS 220.127.116.11 (code cloned from the github repository) and trying to import articles using the native ImportExport plugin (the QuickSubmit plugin does not have 18.104.22.168 in its compatibility list).
When I try to import XML, the ImportExport plugin crashes with a PHP fatal error (the stack trace is below). It crashed while importing the authors when it tried to get a production_id for the submission. Looking in the database the production_id is NULL for the submission, and the ‘publications’ table is empty. That’s because nothing has been published yet. There is one unpublished issue.
It seems odd to me that the code is trying to get a publication_id when importing fresh data which presumably would not yet have been published.
Same fatal occurs whether I use my own XML or the sample.xml (which is out of date for the xsd, but I updated the familyname/givenname tags).
Does anyone have working XML and if so which OJS version are you using and could you please send your XML?
Here is the sample.xml I used and the stack trace is below that:<?xml version="1.0" encoding="UTF-8"?> 1 articlePublicId urn:nbn:de:0000-tj1.v1i1.14 10.9876/tj1.v1i1.1 Article Title The Subtitle the abstract http://licenseUrl copyright holder 2014 kw1 kw2 kw3 discipline1 discipline2 subject1 subject2 subject3 John Smith firstname.lastname@example.org book reviews .. base64 encoded data is here ... name of the HTML file image name supp file .. base64 encoded data is here ... HTML 0 Remote galley or supp file 1 Supp File 2 14 1 2020 1 - 30 cover_article_3_en_US.png article cover EN .. base64 encoded data is here ...
[Fri Feb 07 12:56:46.433580 2020] [php7:notice] [pid 1085] [client 192.168.32.1:56422] PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/html/lib/pkp/plugins/importexport/native/filter/NativeXmlPKPAuthorFilter.inc.php:72\nStack trace:\n#0 /var/www/html/lib/pkp/plugins/importexport/native/filter/NativeImportFilter.inc.php(60): NativeXmlPKPAuthorFilter->handleElement(Object(DOMElement))\n#1 /var/www/html/lib/pkp/classes/filter/Filter.inc.php(449): NativeImportFilter->process(Object(DOMDocument))\n#2 /var/www/html/lib/pkp/plugins/importexport/native/filter/NativeXmlSubmissionFilter.inc.php(225): Filter->execute(Object(DOMDocument))\n#3 /var/www/html/lib/pkp/plugins/importexport/native/filter/NativeXmlSubmissionFilter.inc.php(207): NativeXmlSubmissionFilter->parseAuthor(Object(DOMElement), Object(Submission))\n#4 /var/www/html/lib/pkp/plugins/importexport/native/filter/NativeXmlSubmissionFilter.inc.php(152): NativeXmlSubmissionFilter->parseAuthors(Object(DOMElement), Object(Submission))\n#5 /var/www/html/plugins/importexport/native/filter/NativeXmlArticleFilter.inc.php(142): NativeXmlS in /var/www/html/lib/pkp/plugins/importexport/native/filter/NativeXmlPKPAuthorFilter.inc.php on line 72, referer: https://ojs/index.php/ecms/management/importexport/plugin/NativeImportExportPlugin