Upgrading from 2.4.8-1 to 3.1.0-1


I have a problem OJS from 2.4.8-1 upgrade to 3.1.0-1 with errors like this:

[code: Installer Installer::moveReviewerFiles]
There are no readable files in this directory tree. Are safe mode or open_ba sedir active?
Stack Trace:
File: /var/www/ojs3/classes/install/Upgrade.inc.php line 2000 Function: FileManager->mkdirtree("")

File: (unknown) line (unknown)
Function: Upgrade->moveReviewerFiles(Object(Upgrade), Array(1))

File: /var/www/ojs3/lib/pkp/classes/install/Installer.inc.php l ine 415
Function: call_user_func(Array(2), Object(Upgrade), Array(1))
File: /var/www/ojs3/lib/pkp/classes/install/Installer.inc.php l ine 265
Function: Installer->executeAction(Array(3))

File: /var/www/ojs3/lib/pkp/classes/install/Installer.inc.php l ine 186
Function: Installer->executeInstaller()

File: /var/www/ojs3/lib/pkp/classes/cliTool/UpgradeTool.inc.php line 88
Function: Installer->execute()

File: /var/www/ojs3/lib/pkp/classes/cliTool/UpgradeTool.inc.php line 64
Function: UpgradeTool->upgrade()

File: /var/www/ojs3/tools/upgrade.php line 34
Function: UpgradeTool->execute()

Hi @yassiel

Your question is quite similar to this one:

Perhaps solution could it be the same.

Israel Cefrin
Public Knowledge Project Team

Hi @yassiel

Could you maybe print out the variable $newFilePath before this code line: ojs/Upgrade.inc.php at ojs-3_1_0-1 · pkp/ojs · GitHub ?


Could you maybe also try this SQL statement in your database:
SELECT a.article_id FROM articles a LEFT JOIN sections s ON (a.section_id = s.section_id) WHERE s.section_id IS NULL

And maybe take a look at this post too:

maybe this one too: