Ptran
March 3, 2020, 9:53pm
1
hi all,
I am trying to upgrade my OJS version 3.1.2.4 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
:
https://github.com/pkp/pkp-lib/commit/06f1dfc16297162bc7047b09ee9470bc814ebf6f
The issue is filed here:
https://github.com/pkp/pkp-lib/issues/5582
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?
Regards,
Alec Smecher
Public Knowledge Project Team
acahya
March 4, 2020, 1:56am
3
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.
Regards,
Alec Smecher
Public Knowledge Project Team
Ptran
March 4, 2020, 3:50pm
5
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.
-pTran
1 Like