Problems with OAI in OJS

Hello

I have an OJS 3.2.0.3 hosting some journals, and I have the same problem with all of them, when I try ListRecords from the OAI view, I got an error 500 message, that doesn’t happen with the other options available, just with ListRecords. Also, the journal indexes and databases are unable to use OAI with our journals.

I checked out the PHP error log and I found this error in the moment I hit ListRecords:


PHP Fatal error: Uncaught Error: Call to a member function getProperties() on null in /var/www/html/backup_14-01-2021/lib/pkp/plugins/oaiMetadataFormats/dc/PKPOAIMetadataFormat_DC.inc.php:31

Stack trace:

#0 /var/www/html/backup_14-01-2021/plugins/oaiMetadataFormats/dc/OAIMetadataFormat_DC.inc.php(28): PKPOAIMetadataFormat_DC->toXml()

#1 /var/www/html/backup_14-01-2021/lib/pkp/classes/oai/OAI.inc.php(788): OAIMetadataFormat_DC->toXml()

#2 /var/www/html/backup_14-01-2021/lib/pkp/classes/oai/OAI.inc.php(531): OAI->formatMetadata()

#3 /var/www/html/backup_14-01-2021/lib/pkp/classes/oai/OAI.inc.php(85): OAI->ListRecords()

#4 /var/www/html/backup_14-01-2021/pages/oai/OAIHandler.inc.php(39): OAI->execute()

#5 /var/www/html/backup_14-01-2021/lib/pkp/classes/core/PKPRouter.inc.php(391): OAIHandler->index()

#6 /var/www/html/backup_14-01-2021/lib/pkp/classes/core/PKPPageRouter.inc.php(231): PKPRouter->_authorizeInitializeAndCallRequest()

#7 /var/www/html/backup_14-01-2021/lib/pkp/classes/core/Dispatcher.inc.php(143): PKPPageRouter->rout in /var/www/html/backup_14-01-2021/lib/pkp/plugins/oaiMetadataFormats/dc/PKPOAIMetadataFormat_DC.inc.php on line 31


Thanks in advance for any help you can provide me.

Hello @DiegoG,

This issue has been discussed previously in the forum and an issue filed (and addressed) here: OJS 3.2.0 - OAI ListRecords causes PHP Fatal Error · Issue #5573 · pkp/pkp-lib · GitHub - if you update to a more recent version of OJS, the fixes for this should be included in that release.

-Roger
PKP staff

Thank you very much. I’m gonna try upgrading.

Just in case someone is facing the same problem the upgrading worked.

1 Like