Upgrade form 2.4.8.5 to current OJS

Hello

I have to upgrade my Journal from OJS [2.4.8.5] to current version of OJS

I watched some videos on youtube. Also read process on PKP documentation area. This is the method I followed

Created a new folder.
Extracted current version of OJS.
Copied config.php and public folder into it from previous installation.
The files directory path is correct. [outside OJs directory]
Turned installed = ON to OFF
Tried to access it via web browser so that I may get upgrade screen
No luck.
Its giving HTTP Error 500

This is the error log

[18-Aug-2021 18:22:25 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/jpmiorg/public_html/sbnew/lib/pkp/includes/bootstrap.inc.php on line 47
[18-Aug-2021 18:22:25 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/core/PKPApplication.inc.php on line 141
[18-Aug-2021 18:22:25 UTC] PHP Warning: Constants may only evaluate to scalar values in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/db/DBConnection.inc.php on line 17
[18-Aug-2021 18:22:25 UTC] PHP Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE) in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/notification/PKPNotificationOperationManager.inc.php on line 373
[18-Aug-2021 18:23:02 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/jpmiorg/public_html/sbnew/lib/pkp/includes/bootstrap.inc.php on line 47
[18-Aug-2021 18:23:02 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/core/PKPApplication.inc.php on line 141
[18-Aug-2021 18:23:02 UTC] PHP Warning: Constants may only evaluate to scalar values in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/db/DBConnection.inc.php on line 17
[18-Aug-2021 18:23:02 UTC] PHP Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE) in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/notification/PKPNotificationOperationManager.inc.php on line 373
[18-Aug-2021 18:23:25 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/jpmiorg/public_html/sbnew/lib/pkp/includes/bootstrap.inc.php on line 47
[18-Aug-2021 18:23:25 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/core/PKPApplication.inc.php on line 141
[18-Aug-2021 18:23:25 UTC] PHP Warning: Constants may only evaluate to scalar values in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/db/DBConnection.inc.php on line 17
[18-Aug-2021 18:23:25 UTC] PHP Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE) in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/notification/PKPNotificationOperationManager.inc.php on line 373
[18-Aug-2021 18:24:33 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/jpmiorg/public_html/sbnew/lib/pkp/includes/bootstrap.inc.php on line 47
[18-Aug-2021 18:24:33 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/core/PKPApplication.inc.php on line 141
[18-Aug-2021 18:24:33 UTC] PHP Warning: Constants may only evaluate to scalar values in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/db/DBConnection.inc.php on line 17
[18-Aug-2021 18:24:33 UTC] PHP Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE) in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/notification/PKPNotificationOperationManager.inc.php on line 373
[18-Aug-2021 18:24:43 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/jpmiorg/public_html/sbnew/lib/pkp/includes/bootstrap.inc.php on line 47
[18-Aug-2021 18:24:43 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/core/PKPApplication.inc.php on line 141
[18-Aug-2021 18:24:43 UTC] PHP Warning: Constants may only evaluate to scalar values in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/db/DBConnection.inc.php on line 17
[18-Aug-2021 18:24:43 UTC] PHP Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE) in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/notification/PKPNotificationOperationManager.inc.php on line 373
[18-Aug-2021 18:25:05 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/jpmiorg/public_html/sbnew/lib/pkp/includes/bootstrap.inc.php on line 47
[18-Aug-2021 18:25:05 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/core/PKPApplication.inc.php on line 141
[18-Aug-2021 18:25:05 UTC] PHP Warning: Constants may only evaluate to scalar values in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/db/DBConnection.inc.php on line 17
[18-Aug-2021 18:25:05 UTC] PHP Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE) in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/notification/PKPNotificationOperationManager.inc.php on line 373
[18-Aug-2021 18:25:22 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/jpmiorg/public_html/sbnew/lib/pkp/includes/bootstrap.inc.php on line 47
[18-Aug-2021 18:25:22 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/core/PKPApplication.inc.php on line 141
[18-Aug-2021 18:25:22 UTC] PHP Warning: Constants may only evaluate to scalar values in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/db/DBConnection.inc.php on line 17
[18-Aug-2021 18:25:22 UTC] PHP Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE) in /home/jpmiorg/public_html/sbnew/lib/pkp/classes/notification/PKPNotificationOperationManager.inc.php on line 373

I don’t know what and where I am doing wrong. Please guide me. Its urgent

Regards

@asmecher Can you please help

Hi @a2usmani ,
first upgrade to 3.2.1-4, and then to 3.3.0-7. This is the right way.

I also tried that. But can you plst here the steps to do.

The steps i posted above. Are they correct. @dagosalas

Please help. Its important for me.

Thanks

I don’t see the upgrade command in your list:

$ php tools/upgrade.php upgrade

Yes I mentioned that I access via web browser so that I can see upgrade screen

It seems you are trying to use an older version of PHP, since the error spotted is the lack of support to the ? operator.

Can you check this?

Whe upgrading I set to php 7.3
Can you verify that my steps are correct to upgrade
@janiosarmento

If I were you, I’d upgrade via command line.

php tools/upgrade.php check will show your database, codebase and latest available versions.

php tools/upgrade.php upgrade will actually perform the upgrade.

What do you get with php -v?

Hi @a2usmani,

And please make sure to take a good backup before running the upgrade steps!

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @janiosarmento

I am using the web based upgrade
Not CLI

And I am asking you to use the CLI so that we can make sure you are using the correct PHP version.