[OJS] | Native XML - Import Errors

c.ho
Mon, 17 Mar 2025 14:57:52 +0000
Software Support

Describe the issue or problem

We have tried to upload with both the OJS interface, and with commands in the command line. After both methods, on the surface, issue galleys were not shown. Errors were not reported in the interface, but were reported in the log when using command line (see picture attached below). We have also tried to import with exported XML files from older issues already imported previously, and on a new OJS installation. The same errors were seen.

Here is a list of things we have tried, which consistently produced the same results:
In our production installation

1. Import new XML file

2. Import new XML file without galleys

3. Export an older issue with Native XML, re-import the file

In a brand new OJS installation

1. Import new XML file

2. Import new XML file without galleys

Steps I took leading up to the issue
With OJS interface

1. Login with User/Role ‘Journal Manager’

2. Navigate to ‘Tools’ then ‘Native XML Plugin’ for import

3. Upload your XML file

4. Import

With command line

1. In ‘tools’ folder of the journal

2. use command: php importExport.php NativeImportExportPlugin import <xml_file_path> <journal_path> <user_name>

What application are you using?
OJS 3.3.0.20

Additional information
When importing using the interface, no error was reported and the import was shown as successful. However galleys for the issue are not showing.

When importing using command line, an exception was reported multiple times: (also see attached image)
Exception: Filter output validation failed, expected “classes.publication.Publication”, but found “array” in /var/www/html/lib/pkp/classes/filter/Filter.inc.php:459\nStack trace:\n#0 /var/www/html/lib/pkp/plugins/importexport/native/filter/NativeXmlSubmissionFilter.inc.php(185): …

Results were consistent when attempting to import an XML file of previous issues exported from Native XML itself. We have attempted on a fresh OJS installation and the same issues remained.

20 posts - 5 participants