Describe the issue or problem
Hi,
I’m having problem when try to upgrade OJS from 3.2.1-4 to 3.3.0-11.
The upgrade stopped and shows fatal error of duplicate entry, but i don’t know that the duplicate is. seem’s like problem with one of the plugin but i don’t get any clue furthermore to resolve it.
Steps I took leading up to the issue:
Upgrade OJS from terminal using php 7.3.24
What I tried to resolve the issue:
-Remove all custom blockplugins from OJS 3.2.1-4 UI, but still not solved.
-Remove some dangling plugins (they’re not displayed on any journal, but exist on database) from phpmyadmin, but still not solved.
Application Version:
OJS 3.2.1-4 (Current)
OJS 3.3.0.11 (Target upgrade version)
Upgrade log displayed below:
user@laptop ~ % /Applications/MAMP/bin/php/php7.3.24/bin/php /Applications/MAMP/htdocs/myojs/tools/upgrade.php upgrade
2022-07-11 00:25:40 [pre-install]
2022-07-11 00:25:40 [load: upgrade.xml]
2022-07-11 00:25:40 [version: 3.3.0.11]
2022-07-11 00:25:40 [code: Installer Installer::checkPhpVersion]
2022-07-11 00:25:40 [code: Installer Installer::installDefaultNavigationMenus]
2022-07-11 00:25:40 [code: Installer Installer::migrateStaticPagesToNavigationMenuItems]
2022-07-11 00:25:40 [migration: PKPv3_3_0UpgradeMigration]
Notice: unserialize(): Error at offset 28 of 51 bytes in /Applications/MAMP/htdocs/myojs/lib/pkp/classes/migration/upgrade/PKPv3_3_0UpgradeMigration.inc.php on line 625
Warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/myojs/lib/pkp/classes/migration/upgrade/PKPv3_3_0UpgradeMigration.inc.php on line 626
Notice: unserialize(): Error at offset 36 of 37 bytes in /Applications/MAMP/htdocs/myojs/lib/pkp/classes/migration/upgrade/PKPv3_3_0UpgradeMigration.inc.php on line 625
Warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/myojs/lib/pkp/classes/migration/upgrade/PKPv3_3_0UpgradeMigration.inc.php on line 626
Notice: unserialize(): Error at offset 28 of 51 bytes in /Applications/MAMP/htdocs/myojs/lib/pkp/classes/migration/upgrade/PKPv3_3_0UpgradeMigration.inc.php on line 666
Warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/myojs/lib/pkp/classes/migration/upgrade/PKPv3_3_0UpgradeMigration.inc.php on line 667
Notice: unserialize(): Error at offset 36 of 37 bytes in /Applications/MAMP/htdocs/myojs/lib/pkp/classes/migration/upgrade/PKPv3_3_0UpgradeMigration.inc.php on line 666
Warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/myojs/lib/pkp/classes/migration/upgrade/PKPv3_3_0UpgradeMigration.inc.php on line 667
2022-07-11 00:26:03 [migration: OJSv3_3_0UpgradeMigration]
2022-07-11 00:26:03 [note: docs/release-notes/README-3.3.0]
2022-07-11 00:26:03 [code: Installer Installer::addPluginVersions]
Fatal error: Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'plugins.blocks-browse-1-0-1-0' for key 'versions_pkey' in /Applications/MAMP/htdocs/myojs/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:115
Stack trace:
#0 /Applications/MAMP/htdocs/myojs/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(115): PDOStatement->execute(NULL)
#1 /Applications/MAMP/htdocs/myojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(489): Doctrine\DBAL\Driver\PDOStatement->execute()
#2 /Applications/MAMP/htdocs/myojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(664): Illuminate\Database\Connection->Illuminate\Database\{closure}('INSERT INTO ver...', Array)
#3 /Applications/MAMP/htdocs/myojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(631): Illuminate\Database\Connection->runQueryCallback('INSERT INTO ver...', Array, Object(Closure))
#4 /Applications/ in /Applications/MAMP/htdocs/myojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 671
Any help will be appreciated.
Best regard.