-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NativeImportExportPlugin over web works, but over CLI fatal: Invalid XML #8054
Comments
@defstat, could you take a look at this issue? |
Hi @ErikI1, thanks for reporting that. I have two questions to start working on it:
but then in the steps to reproduce you
|
Hi, thank you for your time.
I apologize for my English and misunderstanding. |
Hi @ErikI1.. Thanks for the reply. I don't see any issues there either. I downloaded and installed OJS 3.3.0-11 LTS (.tar.gz) locally and imported the initially given exported file. Then I exported the file by using the CLI command, and it was exported with no problems. So I can't reproduce the issue neither on the Could it be that the issue you are trying to export has a different ID than the given one (not 31 in your DB) |
Of course you are right, the problem was between the chair and the keyboard. ID of issues are not the same as ID in DB, although it is possible to consider whether it could be so. Thank you very much for your help and your time. |
Describe the bug
export over NativeImportExportPlugin is working, but not over cli (from 9 exports of issue only 2 was successful) :
php ./tools/importExport.php NativeImportExportPlugin export /tmp/test.xml phat issue 31
`Validation errors:
Element '{http://pkp.sfu.ca}issues': Missing child element(s). Expected is ( {http://pkp.sfu.ca}issue ).
Invalid XML:
PHP Fatal error: Uncaught Exception: Could not convert selected objects. in /opt/ojs/ojs-3.3.0-11/lib/pkp/classes/plugins/ImportExportPlugin.inc.php:181
Stack trace:
#0 /opt/ojs/ojs-3.3.0-11/plugins/importexport/native/NativeImportExportPlugin.inc.php(294): ImportExportPlugin->displayXMLValidationErrors()
#1 /opt/ojs/ojs-3.3.0-11/plugins/importexport/native/NativeImportExportPlugin.inc.php(462): NativeImportExportPlugin->exportIssues()
#2 /opt/ojs/ojs-3.3.0-11/tools/importExport.php(63): NativeImportExportPlugin->executeCLI()
#3 /opt/ojs/ojs-3.3.0-11/tools/importExport.php(69): importExport->execute()
#4 {main}
thrown in /opt/ojs/ojs-3.3.0-11/lib/pkp/classes/plugins/ImportExportPlugin.inc.php on line 181
`
To Reproduce
Steps to reproduce the behavior:
What application are you using?
ojs-3.3.0-11
php 7.4
The text was updated successfully, but these errors were encountered: