Blank page while upgrade from OJS 3.0.2.0 to OJS 3.2.0.3

I was trying web upgrade and ended up in a blank page. The error file shows the following:

text/x-generic error_log ( ASCII text )
[21-May-2020 11:18:27 America/Boise] PHP Warning: Constants may only evaluate to scalar values in …/lib/pkp/classes/db/DBConnection.inc.php on line 17
[21-May-2020 11:18:27 America/Boise] PHP Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE) in …/lib/pkp/classes/notification/PKPNotificationOperationManager.inc.php on line 374
[21-May-2020 11:19:33 America/Boise] PHP Warning: Constants may only evaluate to scalar values in …/lib/pkp/classes/db/DBConnection.inc.php on line 17
[21-May-2020 11:19:33 America/Boise] PHP Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE) in …/lib/pkp/classes/notification/PKPNotificationOperationManager.inc.php on line 374

Hi @pattu,

What version of PHP are you using?

Regards,
Alec Smecher
Public Knowledge Project Team

Current version of PHP is 7.3.17.
MySQL Version: 5.6.41.
Other PH related details are:
PHP Post Max Size: 260 MB
PHP Max Input Vars: 1000
PHP Time Limit: 30
PHP Memory Limit: 256 MB
PHP Safe Mode: Off

Hi @pattu,

I suspect you’re actually using a version of PHP older than 7.1. The syntax that the error message is complaining about was allowed starting with PHP 7.1. You might want to verify what version of PHP is executing OJS by using a phpinfo script. Sometimes CPanel-based sites can be confusing in this regard.

Regards,
Alec Smecher
Public Knowledge Project Team

Oh… You are right. Correct PHP version is 7.0.33