OAI JATS metadata PHP Fatal error: Uncaught Error: Call to a member function insertBefore() on null in /storage/www/ejournals/ojsmjm/plugins/oaiMetadataFormats/oaiJats/OAIMetadataFormat_JATS.inc

When i go to site/oai?verb=ListRecords&metadataPrefix=jats i get This page isn’t working and server logs show:

error : PHP Fatal error: Uncaught Error: Call to a member function insertBefore() on null in /storage/www/ejournals/ojsmjm/plugins/oaiMetadataFormats/oaiJats/OAIMetadataFormat_JATS.inc.php:138\nStack trace:\n#0 /storage/www/ejournals/ojsmjm/plugins/oaiMetadataFormats/oaiJats/OAIMetadataFormat_JATS.inc.php(155): OAIMetadataFormat_JATS->_addChildInOrder(NULL, Object(DOMElement))\n#1 /storage/www/ejournals/ojsmjm/plugins/oaiMetadataFormats/oaiJats/OAIMetadataFormat_JATS.inc.php(105): OAIMetadataFormat_JATS->_mungeMetadata(Object(DOMDocument), Object(Journal), Object(Submission), Object(Section), Object(Issue))\n#2 /storage/www/ejournals/ojsmjm/lib/pkp/classes/oai/OAI.inc.php(788): OAIMetadataFormat_JATS->toXml(Object(OAIRecord))\n#3 /storage/www/ejournals/ojsmjm/lib/pkp/classes/oai/OAI.inc.php(531): OAI->formatMetadata(‘jats’, Object(OAIRecord))\n#4 /storage/www/ejournals/ojsmjm/lib/pkp/classes/oai/OAI.inc.php(85): OAI->ListRecords()\n#5 /storage/www/ejournals/ojsmjm/pages/oai/OAIHandler.inc.php(39): OAI->execute()\n#6 /storage/www/ejournals/oj in /storage/www/ejournals/ojsmjm/plugins/oaiMetadataFormats/oaiJats/OAIMetadataFormat_JATS.inc.php on line 138

However when i go to this one : site/oai?verb=ListRecords&metadataPrefix=oai_dc, it shows the records properly.

I have enabled the OAI AND JATS METADATA FORMAT. when i disable JATS METADATA format inside OAI section. it shows this for site/oai?verb=ListRecords&metadataPrefix=jats

The requested metadataPrefix is not supported by this repository

then when i enable JATS METADATA FORMAT it again why doesn’t it work? I even updated this : OAI JATS Plugin to V1.0.4.7 but still it doesn’t work.

Version - OJS 3.3.0.13

single record comes up without issue : with this url

oai?verb=GetRecord&identifier=oai:ojs.siteurl:article/13&metadataPrefix=jats

Hi @deepakc,

Have you uploaded an XML file to the Production Ready Files area of one of your submissions? It’s possible that the OAI JATS plugin is attempting to work with a file taken from there as its basis, but either the file is not JATS, or is not valid JATS.

Regards,
Alec Smecher
Public Knowledge Project Team

No the editor didn’t do it.

Moreover i did some digging with the date and found out :

so i assume something is wrong with 27 articles for 2021-01-04 date . am i right. other links work. either they show JATS records or they show that there is no record but for 4th jan it gives the error.

Am i right. what do you think i should look in these articles?

so when we moved these 27 articles. it started showing issues with their current date of system. so forsure there is something wrong with. we are trying ot republsih them however now getting issue :slight_smile:

got this : The following requirements must be met before this can be published.

  • Unauthenticated ORCiDs for contributors detected.

@asmecher what would you recommend?

This topic was automatically closed after 9 days. New replies are no longer allowed.