I’m trying to import archive issues for a journal that moved from one OJS installation to another (both are on OJS 3.3). When I try to import using the cli, I get the following error:
PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/html/ojs/lib/pkp/plugins/importexport/native/filter/NativeXmlSubmissionFileFilter.inc.php:113
Stack trace:
#0 /var/www/html/ojs/lib/pkp/plugins/importexport/native/filter/NativeImportFilter.inc.php(60): NativeXmlSubmissionFileFilter->handleElement(Object(DOMElement))
#1 /var/www/html/ojs/lib/pkp/classes/filter/Filter.inc.php(449): NativeImportFilter->process(Object(DOMDocument))
#2 /var/www/html/ojs/lib/pkp/plugins/importexport/native/filter/NativeXmlSubmissionFilter.inc.php(170): Filter->execute(Object(DOMDocument))
#3 /var/www/html/ojs/lib/pkp/plugins/importexport/native/filter/NativeXmlSubmissionFilter.inc.php(128): NativeXmlSubmissionFilter->parseSubmissionFile(Object(DOMElement), NULL)
#4 /var/www/html/ojs/lib/pkp/plugins/importexport/native/filter/NativeXmlSubmissionFilter.inc.php(91): NativeXmlSubmissionFilter->handleChildElement(Object(DOMElement), NULL)
#5 /var/www/html/ojs/lib/pkp/plugins/importexport/native/filter/NativeImportFil in /var/www/html/ojs/lib/pkp/plugins/importexport/native/filter/NativeXmlSubmissionFileFilter.inc.php on line 113
Of potential interest: I also tried importing an issue via the Native XML plugin through the web interface, and it worked fine. But when I tried importing that same issue via the cli, I encountered the same error as above.
Can anyone help me understand what might be going wrong and how to resolve it?
What application are you using?
OJS 3.3.0-16
PHP version 7.4.33