Hello, everyone, I am upgrading my current OJS 2.4.8 version to the latest version 22.214.171.124.
I have successfully done Step 1 (obtaining the latest ojs code),
then in Step 2 (upgrading the ojs database), I chose the second way (web).
When I opened the ojs site in my browser, I should be directed to the installation and upgade page. However, this installation page didn’t appear. It only showed “HTTP ERROR 500”
The error log is:
[27-Mar-2021 08:23:37 UTC] PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS) in /…/ojs/lib/pkp/classes/core/PKPApplication.inc.php on line 230
Could anyone help?
Thank you so much!
As the first step,
If you have webserver panel (Cpanel or else) access, could you check the php version? If it is set to php v5.x, then you should set it to Php 7.3 or above,
Please help me with the above-mentioned error. We have faced the same issue.
I have enabled PHP version 7.3 and also tried on PHP version 7.4 but we have still faced the same issue.