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/ 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/ in the stock 3.0.2 release – have you already applied patches/modifications to it? What does that line read in your copy?

Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

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

Yes, a modification was made as suggested at Upgrade database from OJS to OJS 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.