Unable to import using Native XML plugin after OJS upgrade


#1

Hey,
I just upgraded to OJS 3.0.2 and tried to upload the sample.xml it gives 500 error on console.
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
–>http://mbr/index.php/GJMBR/management/importexport/plugin/NativeImportExportPlugin/import?temporaryFileId=324&_=1499814898502.

and following was in the apache error log:
PHP Warning: assert(): Assertion failed in C:\xampp\htdocs\mbr\lib\pkp\classes\submission\SubmissionDAO.inc.php on line 135, referer: http://mbr.org/index.php/GJMBR/management/importexport/plugin/NativeImportExportPlugin
and -----
PHP Fatal error: Call to a member function getContextId() on null in C:\xampp\htdocs\mbr\lib\pkp\classes\submission\SubmissionDAO.inc.php on line 143, referer: http://mbr.org/index.php/GJMBR/management/importexport/plugin/NativeImportExportPlugin

Please help me.

I need to import articles via xml.


#2

Hi @Akshar_Pandey,

I would suggest working with this XML file, if it’s not the one you’re using.

Regards,
Alec Smecher
Public Knowledge Project Team


#3

Hey @asmecher Thanks, I was not using this one, I’ll check this one.