[OJS] | Native XML - Import Errors

@joelfan I managed to import the content. This error is misleading. You can safely ignore it.

You do not need the patch because the patch will deal with IssueGalleys and this XML you sent me does not seem to have those.

These below are the actual errors I got at the end of importing:

Errors occured:
1.Submission

Unknown genre Articolo
2.Submission

Unknown genre Articolo

Unknown genre Articolo

I’m not sure if you are getting those if you have your OJS in Italian. Mine is in english, so I had to restore the database, create an “Articolo” component at Workflow > Submission > Components and try again.

Now the import worked (all those verbose exceptions continue but no “Errors occured:” at the end).

However, it broke my OJS. The cause is that my OJS being in english it does not have “Autore” user groups.

$ grep "<author user_group" ~/native-20260212-155622-issues-46.xml
<author user_group_ref="Autore" seq="7" id="42194">
<author user_group_ref="Autore" seq="5" id="41961">

I changed to Author:

sed ‘s/Autore/Author/g’ ~/native-20260212-155622-issues-46.xml > ~/native-fixed.xml

And this made the importing finally work. I imported using:

php -d memory_limit=512M importExport.php NativeImportExportPlugin import ~/native-fixed.xml tj myadminuser

Not sure if you’ll need this part, but in my notes on a past work I had to Export/Import Native XML I had to export Authors and then Import:

# Export users from install
php -d memory_limit=512M importExport.php UserImportExportPlugin export ~/xml/users.xml myjournal
# Import
php -d memory_limit=512M importExport.php UserImportExportPlugin import ~/xml/users.xml myjournal myadminuser

Good luck! Attached are some images showing that the content was import successfully.