I’m migrating an OJS 2.4.8 installation from a server that is shutting down and am getting an error 500 in the browser. (Note, I plan to upgrade to current supported versions once the migration is successful.)
Steps I took leading up to the issue
I installed 2.4.8-4 successfully, and was up and running.
I then imported the SQL db into the blank db originally created for the install and got the 500 error.
php log shows the following:
PHP Parse error: syntax error, unexpected ‘new’ (T_NEW) in /home/kblstudio/ojs.kblstudio.com/ojs-2.4.8-4/plugins/generic/externalFeed/simplepie/SimplePie.inc.php on line 737
I saw this github issue, which suggests the issue was resolved in 2.4.8-5…
https://github.com/pkp/pkp-lib/issues/5439
…so I followed the updating steps on this page (https://forum.pkp.sfu.ca/t/ojs-upgrade-from-2-4-2-0-to-2-4-8-5/80260) to update to 2.4.8-5.
I’m still getting the same error. Here is the relevant excerpt from the php log
[26-Jun-2024 17:31:43 America/Los_Angeles] ojs2 has produced an error
Message: WARNING: Parameter 2 to IndexHandler::index() expected to be a reference, value given
In file: /home/kblstudio/ojs.kblstudio.com/ojs-2.4.8-5/lib/pkp/classes/core/PKPRouter.inc.php
At line: 362
Stacktrace:
Server info:
OS: Linux
PHP Version: 7.2.34
Apache Version: N/A
DB Driver: mysqli
DB server version: 8.0.28-0ubuntu0.20.04.3
[26-Jun-2024 17:31:43 America/Los_Angeles] PHP Parse error: syntax error, unexpected ‘new’ (T_NEW) in /home/kblstudio/ojs.kblstudio.com/ojs-2.4.8-5/plugins/generic/externalFeed/simplepie/SimplePie.inc.php on line 737
What application are you using?
OJS 2.4.8-5
Additional information
Please add any screenshots, logs or other information we can use to investigate this problem.