OJS UPGRADE - 2.4.8 to 3.1 _ Safe Mode Problem

PHP   1. {main}() /home/david/Project/update/ojs-3.1.0-1/tools/upgrade.php:0
PHP   2. UpgradeTool->execute() /home/david/Project/update/ojs-3.1.0-1/tools/upgrade.php:34
PHP   3. UpgradeTool->upgrade() /home/david/Project/update/ojs-3.1.0-1/lib/pkp/classes/cliTool/UpgradeTool.inc.php:64
PHP   4. Installer->execute() /home/david/Project/update/ojs-3.1.0-1/lib/pkp/classes/cliTool/UpgradeTool.inc.php:88
PHP   5. Installer->executeInstaller() /home/david/Project/update/ojs-3.1.0-1/lib/pkp/classes/install/Installer.inc.php:186
PHP   6. Installer->executeAction() /home/david/Project/update/ojs-3.1.0-1/lib/pkp/classes/install/Installer.inc.php:265
PHP   7. call_user_func:{/home/david/Project/update/ojs-3.1.0-1/lib/pkp/classes/install/Installer.inc.php:415}() /home/babaei/Project/update/ojs-3.1.0-1/lib/pkp/classes/install/Installer.inc.php:415
PHP   8. Upgrade->convertSupplementaryFiles() /home/david/Project/update/ojs-3.1.0-1/lib/pkp/classes/install/Installer.inc.php:415
PHP   9. PKPSubmissionFileDAO->updateObject() /home/david/Project/update/ojs-3.1.0-1/classes/install/Upgrade.inc.php:1403
PHP  10. assert() /home/david/Project/update/ojs-3.1.0-1/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php:373
<h1>There are no readable files in this directory tree. Are safe mode or open_basedir active?</h1>ojs2: There are no readable files in this directory tree. Are safe mode or open_basedir active?

when i run “php tools/upgrade.php upgrade” return such error !
i don’t know how could i solve that?

please Help me

Is there anybody to help me ? and share her or his idea ?!

Hi @mbabaei

Could you 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

Seem to be something similar to this post:

maybe this one too:

But lets try first with the first one…

Best,
Bozana

1 Like

I have the same error like this.
[code: Installer Installer::enabledSitePlugins]
[code: Installer Installer::moveCSSFiles]
[code: Installer Installer::moveReviewerFiles]

There are no readable files in this directory tree. Are safe mode or open_basedir active?

ojs2: There are no readable files in this directory tree. Are safe mode or open_basedir active?

Upgrade ojs 3.0.2 to 3.1.1-4. can you help me?