OJS-3.3.0-14 to OJS-3.4.0-1 upgradation error

OJS-3.4.0-1
PHP-8.1

If I am trying to upgrade from OJS-3.3.0-14 to OJS-3.4.0-1 the below-mentioned error occurred. This occurs a second time.

2023-08-18 10:25:34 [migration: APP\migration\upgrade\v3_4_0\I8933_EventLogLocalized]
2023-08-18 10:27:12 [migration: APP\migration\upgrade\v3_4_0\I7470_FixDeprecatedFileStage]
2023-08-18 10:27:13 [note: docs/release-notes/README-3.4.0]
2023-08-18 10:27:13 [migration: PKP\migration\upgrade\v3_4_0\I7249_UpdateUsersUniqueIndex]
2023-08-18 10:27:13 [code: Installer Installer::addPluginVersions]
<h1>You are trying to downgrade the product &quot;mostRead&quot; from version [3.3.0.8] to version [3.0.0.8]. Downgrades are not supported.</h1><h4>Stack Trace:</h4>
<strong>File:</strong> F:\wamp64\www\ojs3401\lib\pkp\classes\install\Installer.php line 948<br />
<strong>Function:</strong> PKP\site\VersionDAO->insertVersion(Object(PKP\site\Version), True)<br />
<br/>
<strong>File:</strong> (unknown) line (unknown)<br />
<strong>Function:</strong> PKP\install\Installer->addPluginVersions(Object(APP\install\Upgrade), Array(1))<br />
<br/>
<strong>File:</strong> F:\wamp64\www\ojs3401\lib\pkp\classes\install\Installer.php line 509<br />
<strong>Function:</strong> call_user_func(Array(2), Object(APP\install\Upgrade), Array(1))<br />
<br/>
<strong>File:</strong> F:\wamp64\www\ojs3401\lib\pkp\classes\install\Installer.php line 294<br />
<strong>Function:</strong> PKP\install\Installer->executeAction(Array(3))<br />
<br/>
<strong>File:</strong> F:\wamp64\www\ojs3401\lib\pkp\classes\install\Installer.php line 209<br />
<strong>Function:</strong> PKP\install\Installer->executeInstaller()<br />
<br/>
<strong>File:</strong> F:\wamp64\www\ojs3401\lib\pkp\classes\cliTool\UpgradeTool.php line 96<br />
<strong>Function:</strong> PKP\install\Installer->execute()<br />
<br/>
<strong>File:</strong> F:\wamp64\www\ojs3401\lib\pkp\classes\cliTool\UpgradeTool.php line 69<br />
<strong>Function:</strong> PKP\cliTool\UpgradeTool->upgrade()<br />
<br/>
<strong>File:</strong> F:\wamp64\www\ojs3401\tools\upgrade.php line 22<br />
<strong>Function:</strong> PKP\cliTool\UpgradeTool->execute()<br />
<br/>

Hello @shantanusingh

Maybe I didn’t understad correctly … but if you try to upgrade once and something happens that prevents you from finishing the upgrade, you have to load a fresh copy of the initial database (and sometimes the files_dir directory) before you try again.

If the upgrade fails, I try again on a freshly uploaded database.

I think the error is being generated because of MostRead Plugin.

You are trying to downgrade the product "mostRead" from version [3.3.0.8] to version [3.0.0.8]. Downgrades are not supported.

Stack Trace:

1 Like