Database upgrade error ojs 2.4.2. to 3.0.2

The following error appear when trying to upgrade the database to version 3.0.2:

PHP Fatal error: Call to a member function getFilePath() on a non-object in /var/www/periodicos/classes/install/Upgrade.inc.php on line 1839

Is there any known issue when upgrading from version 2.4.2?

Hi @Alinne_Sarmento,

OJS doesn’t have a line 1839 in classes/install/Upgrade.inc.php in the stock 3.0.2 release – have you already applied patches/modifications to it? What does that line read in your copy?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

After reviewing the classes/install/Upgrade.inc.php file, indeed we got the wrong file in place.

Yes, a modification was made as suggested at Upgrade database from OJS 2.4.2.0 to OJS 3.0.2.0 error in order to directly upgrade from version 2.4.2 to 3.0.2.

We made the modifications again manually.

This time we got to the end successfully.

Thanks,