Ojs 3.1.2.1 Native Import Export Plugin fail on some issue, produce blank page

  • Application Version - ojs 3.1.2.1

when i click export. it produce blank page… only 3 issue fail… most is ok and can be export

mod_fcgid: stderr: PHP Fatal error: Uncaught TypeError: Argument 1 passed to DOMDocument::importNode() must be an instance of DOMNode, null given in /home/publisher/public_html/ojs/lib/pkp/plugins/importexport/native/filter/SubmissionNativeXmlFilter.inc.php:259, referer: https://xxx/ojs/index.php/xxx//management/importexport/plugin/NativeImportExportPlugin
mod_fcgid: stderr: Stack trace:, referer: https://xxx//ojs/index.php/xxx//management/importexport/plugin/NativeImportExportPlugin
mod_fcgid: stderr: #0 /home/publisher/public_html/ojs/lib/pkp/plugins/importexport/native/filter/SubmissionNativeXmlFilter.inc.php(259): DOMDocument->importNode(NULL, true), referer: https://xxx//ojs/index.php/xxx//management/importexport/plugin/NativeImportExportPlugin
mod_fcgid: stderr: #1 /home/publisher/public_html/ojs/lib/pkp/plugins/importexport/native/filter/SubmissionNativeXmlFilter.inc.php(108): SubmissionNativeXmlFilter->addRepresentations(Object(DOMDocument), Object(DOMElement), Object(PublishedArticle)), referer: https://xxx//ojs/index.php/xxx//management/importexport/plugin/NativeImportExportPlugin
mod_fcgid: stderr: #2 /home/publisher/public_html/ojs/plugins/importexport/native/filter/ArticleNativeXmlFilter.inc.php(61): SubmissionNativeXmlFilter->createSubmissionNode(Object(DOMDocument), Object(PublishedArticle)), referer: https://xxx//ojs/index.php/xxx//management/importexport/plugin/NativeImportExportPlugin
mod_fcgid: stderr: #3 /home/publisher/public_html/ojs/lib/pkp/plugins/importexport/native/filter/SubmissionNativeXmlFilter.inc.php(65): ArticleNativeXmlFilter->createSubmissionNode(Object(DOMDocument), Object(Published in /home/publisher/public_html/ojs/lib/pkp/plugins/importexport/native/filter/SubmissionNativeXmlFilter.inc.php on line 259, referer: https://xxx//ojs/index.php/xxx//management/importexport/plugin/NativeImportExportPlugin

can guide me how to fix this. tqvm for the help.

solve this issue by unpublish and publish back the problem issue. tqvm

2 Likes

Today, years later, I stumbled over the same stone trying to recover the history of an inherited journal…

When exporting I got an error and OJS retorned a non valid XML.

When I check my php log, info what more or less the same I got in the frontend:

PHP Notice:  Trying to get property 'documentElement' of non-object in /var/www/html/lib/pkp/plugins/importexport/native/filter/SubmissionNativeXmlFilter.inc.php on line 218, referer: https://localhost/journal/management/importexport/plugin/NativeImportExportPlugin
...
ojs2: Els objectes seleccionats no es poden convertir., referer: https://localhost/journal/management/importexport/plugin/NativeImportExportPlugin

Your post saved the day.

Thank you A LOT @mohd_arshad !!