Hi,
we managed to identify a few errors and possible causes that might help others experiencing similar issues with the PKP PN plugin and the Native XML export in OJS.
Here’s a summary of what we found:
Premise
To troubleshoot errors reported by the PKP PN plugin, it’s necessary to check the Native plugin in OJS, which handles the XML export, and identify the type of error that occurs when exporting an issue.
Once the error is identified, we recommend downloading each article from the affected issue individually to find which specific article is causing the problem.
Problem: Memory limit exceeded
Description:
The PKP PN plugin reports an error, but the “insufficient memory” issue during the export phase actually comes from the Native plugin.
Error (php-error.log):
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 117030584 bytes)
in /lib/pkp/plugins/importexport/native/filter/SubmissionFileNativeXmlFilter.inc.php on line 189
Solution:
Problem: Errors in “References”
Description:
The Native plugin fails to generate the XML file due to invalid elements in the “References” field.
Error found in XML:
xmlEscapeEntities : char out of range
Cause:
Text copied from PDFs containing special or unsupported characters.
Solution:
Manually clean the “References” field (and possibly other fields) in the affected articles.
Problem: Articles assigned to issues but already published
Description:
The Native plugin detects inconsistencies between issues and published articles.
Error found in XML:
Validation errors:
Element '{http://pkp.sfu.ca}authors': Missing child element(s). Expected is ( {http://pkp.sfu.ca}author ).
Element '{http://pkp.sfu.ca}article_galley': This element is not expected.
...
Causes:
Solutions:
-
Identify the article in the reported issue and manually remove it from the incorrect issue.
-
If authors are missing, add them to the article and retry the export.
Problem: Incompatible data from the old Quick Submit plugin
Description:
Some metadata are not recognized by the newer versions of the Native plugin.
Error found in XML:
Validation errors:
Element '{http://pkp.sfu.ca}submission_file', attribute 'stage': [facet 'enumeration'] The value '' is not valid...
Cause:
The old Quick Submit plugin inserted outdated or unsupported values — for example, the STAGE field had value 1, which is no longer valid in OJS 3.3.
Solution:
Useful references: