OJS 3.3.0-21: API error

I updated my OJS version from 3.2.1.4 to 3.3.0.21 and encountered a problem that I initially thought was a database issue, but checking the database confirmed the data is fine.

Then I analyzed the PHP logs and saw that the frontend is calling a method in the API and returning a 500 error because the method doesn’t exist in the SubmissionFileDAO class. The method name is “lastSubmission” or “lastRevision”, something similar.

Because of this error, I’m unable to access/view the files submitted by authors to my journal.

Is this a version error?

Could someone help me with this?

Hi @Kelvin,

Can you find and quote the exact error message?

Thanks,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Yes, I can.

Stack trace:
#0 /var/www/html/revistas/lib/pkp/classes/controllers/grid/GridHandler.inc.php(839): SubmissionFilesGridDataProvider->loadData()
#1 /var/www/html/revistas/lib/pkp/classes/controllers/grid/GridHandler.inc.php(314): GridHandler->loadData()
#2 /var/www/html/revistas/lib/pkp/classes/controllers/grid/GridHandler.inc.php(334): GridHandler->getGridDataElements()
#3 /var/www/html/revistas/lib/pkp/controllers/grid/files/SubmissionFilesGridHandler.inc.php(143): GridHandler->hasGridDataElements()
#4 /var/www/html/revistas/lib/pkp/controllers/grid/files/fileList/FileListGridHandler.inc.php(43): SubmissionFilesGridHandler->initialize()
#5 /var/www/html/revistas/lib/pkp/classes/core/PKPRouter.inc.php(394): FileListGridHandler->initialize()
#6 /var/www/html/revistas/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_au in /var/www/html/revistas/lib/pkp/controllers/grid/files/SubmissionFilesGridDataProvider.inc.php on line 91

Request URL: https://www.example/revistas/index.php/revista/$$$call$$$/grid/files/submission/editor-submission-details-files-grid/fetch-grid?submissionId=3041&stageId=1&_=1762878183643

Request Method GET

Status Code 500 Internal Server Error

Hi @Kelvin,

The actual error message should appear in the line just above what you’ve quoted. (The #0 to #6 lines are the stack trace, but what we need is just above that.) Can you include it?

Thanks,
Alec Smecher
Public Knowledge Project Team

@asmecher

Sorry, here is the error message.

#6 /var/www/html/revistas/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_au in /var/www/html/revistas/lib/pkp/controllers/grid/files/SubmissionFilesGridDataProvider.inc.php on line 91
[11-Nov-2025 15:49:08 UTC] PHP Fatal error: Uncaught Error: Call to undefined method SubmissionFileDAO::getLatestRevisions() in /var/www/html/revistas/lib/pkp/controllers/grid/files/SubmissionFilesGridDataProvider.inc.php:91

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