Problems with OAI in OJS


I have an OJS 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/

Stack trace:

#0 /var/www/html/backup_14-01-2021/plugins/oaiMetadataFormats/dc/ PKPOAIMetadataFormat_DC->toXml()

#1 /var/www/html/backup_14-01-2021/lib/pkp/classes/oai/ OAIMetadataFormat_DC->toXml()

#2 /var/www/html/backup_14-01-2021/lib/pkp/classes/oai/ OAI->formatMetadata()

#3 /var/www/html/backup_14-01-2021/lib/pkp/classes/oai/ OAI->ListRecords()

#4 /var/www/html/backup_14-01-2021/pages/oai/ OAI->execute()

#5 /var/www/html/backup_14-01-2021/lib/pkp/classes/core/ OAIHandler->index()

#6 /var/www/html/backup_14-01-2021/lib/pkp/classes/core/ PKPRouter->_authorizeInitializeAndCallRequest()

#7 /var/www/html/backup_14-01-2021/lib/pkp/classes/core/ PKPPageRouter->rout in /var/www/html/backup_14-01-2021/lib/pkp/plugins/oaiMetadataFormats/dc/ 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.

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