OJS - upgrade to 3.2 from PHP Fatal error

hi all,
I am trying to upgrade my OJS version to 3.2 and It came up with this error message.

PHP Fatal error: Can’t inherit abstract function SchemaDAO::newDataObject() (previously declared abstract in PKPSubmissionDAO) in /var/www/ojs/lib/pkp/classes/submission/PKPSubmissionDAO.inc.php on line 398

Thanks for your help!

Hi @Ptran,

You can fix this by applying the following change in lib/pkp:

The issue is filed here:

Interesting that your PHP version complained about this when none of our test versions did (Travis CI - Test and Deploy Your Code with Confidence); what specific version of PHP are you using?

Alec Smecher
Public Knowledge Project Team

Same here with me after i check i used FCGI php 7.1, and its not compatible with ojs 3.2 with minimal using php 7.2. is that correct ?

Hi all,

That’s correct – OJS 3.2 requires at least PHP 7.2. Check docs/README.md for requirements.

Alec Smecher
Public Knowledge Project Team

Hi Alec,
ah, I’m still on PHP version 7.1. That could be why. Sorry I forgot to check the requirement and thanks for your fast responded.

1 Like