Fatal Error in on OJS 3.3.0-20 CrossRef Export Plugin

Hi everyone,

We’re currently using OJS 3.3.0-20, and we’ve encountered a fatal error when accessing the CrossRef Export Plugin under the Import/Export Tools. The error appears to be related to a null object in the grid rendering process.

Here is the relevant error log from error_log:

Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to a member function getData() on null in /…/public_html/controllers/grid/submissions/ExportPublishedSubmissionsListGridCellProvider.inc.php:69\nStack trace:\n#0 /…/public_html/lib/pkp/classes/controllers/grid/GridCellProvider.inc.php(56): ExportPublishedSubmissionsListGridCellProvider->getCellActions()\n#1 /…/public_html/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1104): GridCellProvider->render()\n#2 /home/ejournal/public_html/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1011): GridHandler->_renderCellInternally()\n#3
…/public_html/lib/pkp/classes/controllers/grid/GridHandler.inc.php(988): GridHandler->renderRowInternally()\n#4 …/public_html/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1033): GridHandler->renderRowsInternally()\n#5 /home/ejournal/public_html/lib/pkp/classes/controllers/grid/GridHandler.inc.php(923): GridHandler->renderGridBodyPartsInternally()\n#6 /h…’, referer: …/management/importexport/plugin/CrossRefExportPlugin

the screenshot of the error is like this :

It happen only our several journals (we use multiple journal). Has anyone else faced this issue in 3.3.0-20?Is this a known bug that’s been fixed in a later release?

Any guidance or shared experience would be appreciated!

Thanks before

Hi @sijampank,

It’s probably a data error. Try the query in this thread to identify it:

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks for your response. Actually, I’ve already tried that method by deleting the submission IDs that have a NULL publication ID, but the same error still occurs. Should the deletion be done only in the Submissions table, or is there another table that needs to be cleaned up as well?which tables that i have to delete the row contain that submission_id?

Here is the Screenshot of the query that you’ve suggested

Hi @sijampank,

In this case, I suspect the current_publication_id column refers to a non-existent entry in the publications table. You’ll need to clean that up too, either by deleting the entry in submissions, or by creating a new entry in publications and updating the current_publication_id column to refer to it. I suspect deleting the entry in submissions will be more appropriate – without a publication, there’s really not much there to save.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

I have tried adding what you suggested, but the error is still the same. Actually, in this journal, within our multiple journal, there is another error in the OAI ListRecords section, displaying an error like this:

Fatal error : Uncaught Error: Call to a member function getId() on null in /home/ejournal/public_html/classes/oai/ojs/OAIDAO.inc.php:185 Stack trace: #0 /home/ejournal/public_html/lib/pkp/classes/oai/PKPOAIDAO.inc.php(239): OAIDAO->setOAIData() #1 /home/ejournal/public_html/lib/pkp/classes/oai/PKPOAIDAO.inc.php(203): PKPOAIDAO->_doCommonOAIFromRowOperations() #2 /home/ejournal/public_html/lib/pkp/classes/oai/PKPOAIDAO.inc.php(132): PKPOAIDAO->_returnRecordFromRow() #3 /home/ejournal/public_html/classes/oai/ojs/JournalOAI.inc.php(178): PKPOAIDAO->getRecords() #4 /home/ejournal/public_html/lib/pkp/classes/oai/OAI.inc.php(509): JournalOAI->records() #5 /home/ejournal/public_html/lib/pkp/classes/oai/OAI.inc.php(87): OAI->ListRecords() #6 /home/ejournal/public_html/pages/oai/OAIHandler.inc.php(39): OAI->execute() #7 /home/ejournal/public_html/lib/pkp/classes/core/PKPRouter.inc.php(397): OAIHandler->index() #8 /home/ejournal/public_html/lib/pkp/classes/core/PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallReques in /home/ejournal/public_html/classes/oai/ojs/OAIDAO.inc.php on line 185

Is there any further solution? Please need help. I’ve try to upgrade the OJS but error still the same

Thank you

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