Error when upgrading to OJS 3.4.0-6

Describe the issue or problem
This errors popped up after i clicked on upgrade ojs system

Fatal error : Uncaught ValueError: Path cannot be empty in /home/caritasu/public_html/lib/pkp/classes/migration/upgrade/v3_4_0/PreflightCheckMigration.php:246 Stack trace: #0 /home/caritasu/public_html/lib/pkp/classes/migration/upgrade/v3_4_0/PreflightCheckMigration.php(246): SplFileObject->__construct(‘’, ‘r’) #1 /home/caritasu/public_html/lib/pkp/classes/migration/upgrade/v3_4_0/PreflightCheckMigration.php(234): PKP\migration\upgrade\v3_4_0\PreflightCheckMigration->checkUsageStatsLogFileUrl(‘’) #2 /home/caritasu/public_html/lib/pkp/classes/migration/upgrade/v3_4_0/PreflightCheckMigration.php(49): PKP\migration\upgrade\v3_4_0\PreflightCheckMigration->checkUsageStatsLogs() #3 /home/caritasu/public_html/classes/migration/upgrade/v3_4_0/PreflightCheckMigration.php(28): PKP\migration\upgrade\v3_4_0\PreflightCheckMigration->up() #4 /home/caritasu/public_html/lib/pkp/classes/install/Installer.php(463): APP\migration\upgrade\v3_4_0\PreflightCheckMigration->up() #5 /home/caritasu/public_html/lib/pkp/classes/install/Installer.php(294): PKP\install\Installer->executeAction(Array) #6 /home/caritasu/public_html/lib/pkp/classes/install/Installer.php(209): PKP\install\Installer->executeInstaller() #7 /home/caritasu/public_html/lib/pkp/classes/install/form/UpgradeForm.php(49): PKP\install\Installer->execute() #8 /home/caritasu/public_html/lib/pkp/pages/install/InstallHandler.php(148): PKP\install\form\UpgradeForm->execute() #9 [internal function]: PKP\pages\install\InstallHandler->installUpgrade(Array, Object(APP\core\Request)) #10 /home/caritasu/public_html/lib/pkp/classes/core/PKPRouter.php(334): call_user_func(Array, Array, Object(APP\core\Request)) #11 /home/caritasu/public_html/lib/pkp/classes/core/PKPPageRouter.php(277): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array, false) #12 /home/caritasu/public_html/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPPageRouter->route(Object(APP\core\Request)) #13 /home/caritasu/public_html/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch(Object(APP\core\Request)) #14 /home/caritasu/public_html/index.php(21): PKP\core\PKPApplication->execute() #15 {main} thrown in /home/caritasu/public_html/lib/pkp/classes/migration/upgrade/v3_4_0/PreflightCheckMigration.php on line 246

Steps I took leading up to the issue
I followed the manual method of installation through the cpanel file manager

What application are you using?
For example, OJS 3.3.0-4

Hi @elisha_marire,

This was solved within this issue: Upgrade fails if there are no files in usageEventLogs · Issue #10244 · pkp/pkp-lib · GitHub. These are the changes needed pkp/pkp-lib#10244 Consider no usage stats log files in preflight check by bozana · Pull Request #10254 · pkp/pkp-lib · GitHub, but these days a new version 3.4.0-7 will be released and it will contain that fix (if you would maybe like to wait for that).

Best,
Bozana

1 Like