Skip to content

Upgrade from OJS 3.4.0-8 to OJS 3.5.0rc2 #11194

@shantanu198713

Description

@shantanu198713

Valid Title

  • I have updated the title to accurately reflect the bug description

Description

PHP-8.3.14
MYSQL-9.1

I attempted to upgrade from OJS 3.4.0-8 to OJS 3.5.0rc2, but the process failed due to the following error. The upgrade could not be completed successfully, and troubleshooting is required to identify and resolve the issue.

Steps to Reproduce

I attempted to upgrade from OJS 3.4.0-8 to OJS 3.5.0rc2.

Expected Result

Continue to upgrade.

Actual Result

Upgradation failed.

Environment Details

No response

Application Version

OJS-3.5.0rc2

Logs

PHP Fatal error:  Uncaught TypeError: PKP\invitation\core\Invitation::initialize(): Argument #2 ($contextId) must be of type ?int, string given, called in H:\wamp64\www\ojs-3.5.0rc2\lib\pkp\classes\migration\upgrade\v3_5_0\I9197_MigrateAccessKeys.php on line 92 and defined in H:\wamp64\www\ojs-3.5.0rc2\lib\pkp\classes\invitation\core\Invitation.php:112
Stack trace:
#0 H:\wamp64\www\ojs-3.5.0rc2\lib\pkp\classes\migration\upgrade\v3_5_0\I9197_MigrateAccessKeys.php(92): PKP\invitation\core\Invitation->initialize(45, 'MailListContext', NULL, NULL)
#1 H:\wamp64\www\ojs-3.5.0rc2\lib\pkp\classes\install\Installer.php(444): PKP\migration\upgrade\v3_5_0\I9197_MigrateAccessKeys->up()
#2 H:\wamp64\www\ojs-3.5.0rc2\lib\pkp\classes\install\Installer.php(297): PKP\install\Installer->executeAction(Array)
#3 H:\wamp64\www\ojs-3.5.0rc2\lib\pkp\classes\install\Installer.php(206): PKP\install\Installer->executeInstaller()
#4 H:\wamp64\www\ojs-3.5.0rc2\lib\pkp\classes\install\form\UpgradeForm.php(49): PKP\install\Installer->execute()
#5 H:\wamp64\www\ojs-3.5.0rc2\lib\pkp\pages\install\InstallHandler.php(148): PKP\install\form\UpgradeForm->execute()
#6 [internal function]: PKP\pages\install\InstallHandler->installUpgrade(Array, Object(APP\core\Request))
#7 H:\wamp64\www\ojs-3.5.0rc2\lib\pkp\classes\core\PKPRouter.php(327): call_user_func(Array, Array, Object(APP\core\Request))
#8 H:\wamp64\www\ojs-3.5.0rc2\lib\pkp\classes\core\PKPPageRouter.php(249): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array, false)
#9 H:\wamp64\www\ojs-3.5.0rc2\lib\pkp\classes\core\Dispatcher.php(157): PKP\core\PKPPageRouter->route(Object(APP\core\Request))
#10 H:\wamp64\www\ojs-3.5.0rc2\lib\pkp\classes\core\PKPApplication.php(422): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
#11 H:\wamp64\www\ojs-3.5.0rc2\index.php(21): PKP\core\PKPApplication->execute()
#12 {main}
  thrown in H:\wamp64\www\ojs-3.5.0rc2\lib\pkp\classes\invitation\core\Invitation.php on line 112

Additional Information

Image


PRs

🗂 Branch: stable-3_5_0
──────────────────────────────
✅ pkp-lib: #11210 (MERGED)
🧪 OJS: pkp/ojs#4795 (TESTS ONLY)

✅ pkp-lib: #11217 (MERGED)
🧪 OJS: pkp/ojs#4805 (TESTS ONLY)

✅ pkp-lib: #11234
🧪 OJS: pkp/ojs#4816 (TESTS ONLY)

🗂 Branch: main
──────────────────────────────
✅ pkp-lib: #11211 (MERGED)
🧪 OJS: pkp/ojs#4796 (TESTS ONLY)

✅ pkp-lib: #11218 (MERGED)

✅ pkp-lib: #11235
🧪 OJS: pkp/ojs#4817 (TESTS ONLY)

Metadata

Metadata

Labels

Bug:3:CriticalA bug that prevents a substantial majority of users from using the software.

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions