Ojs 3.4.0.1 upgrade check error

I get error when runs upgrade check
I want to upgrade from 3.3.0.14 to 3.4.0.1

Notes;

  • PHP version is 8.1.2
  • config.inc.php checked and set

php ./tools/upgrade.php check
PHP Fatal error: Uncaught Error: Call to protected method Gettext\Translator::addTranslations() from scope PKP\i18n\translation\LocaleBundle in …/lib/pkp/classes/i18n/translation/LocaleBundle.php:131
Stack trace:
#0 …/lib/pkp/lib/vendor/elcobvg/laravel-opcache/src/Repository.php(25): PKP\i18n\translation\LocaleBundle->PKP\i18n\translation{closure}()
#1 …/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(419): ElcoBvg\Opcache\Repository->remember()
#2 …/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): Illuminate\Cache\CacheManager->__call()
#3 …/lib/pkp/classes/i18n/translation/LocaleBundle.php(137): Illuminate\Support\Facades\Facade::__callStatic()
#4 …/lib/pkp/classes/i18n/translation/LocaleBundle.php(64): PKP\i18n\translation\LocaleBundle->getTranslator()
#5 …/lib/pkp/classes/i18n/Locale.php(420): PKP\i18n\translation\LocaleBundle->translateSingular()
#6 …/lib/pkp/classes/i18n/Locale.php(104): PKP\i18n\Locale->translate()
#7 …/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(938): PKP\i18n\Locale->get()
#8 …/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(973): trans()
#9 …/lib/pkp/classes/template/PKPTemplateManager.php(169): __()
#10 …/classes/template/TemplateManager.php(40): PKP\template\PKPTemplateManager->initialize()
#11 …/lib/pkp/classes/template/PKPTemplateManager.php(1394): APP\template\TemplateManager->initialize()
#12 …/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager()
#13 …/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()
#14 …/lib/pkp/classes/plugins/LazyLoadPlugin.php(34): PKP\plugins\Plugin->register()
#15 …/plugins/generic/pdfJsViewer/PdfJsViewerPlugin.php(31): PKP\plugins\LazyLoadPlugin->register()
#16 …/lib/pkp/classes/plugins/PluginRegistry.php(76): APP\plugins\generic\pdfJsViewer\PdfJsViewerPlugin->register()
#17 …/lib/pkp/classes/plugins/PluginRegistry.php(121): PKP\plugins\PluginRegistry::register()
#18 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins{closure}()
#19 …/lib/pkp/classes/plugins/PluginRegistry.php(121): array_walk_recursive()
#20 …/lib/pkp/classes/cliTool/CommandLineTool.php(70): PKP\plugins\PluginRegistry::loadCategory()
#21 …/lib/pkp/classes/cliTool/UpgradeTool.php(39): PKP\cliTool\CommandLineTool->__construct()
#22 …/tools/upgrade.php(21): PKP\cliTool\UpgradeTool->__construct()
#23 {main}
thrown in …/lib/pkp/classes/i18n/translation/LocaleBundle.php on line 131

Hi @nkisnisci,

Double-check that you’ve followed the upgrade steps correctly; I suspect you’ve mixed the 3.4.0-1 code into your 3.3.0-14 code, which will leave conflicting versions in the same directory structure.

Regards,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 11 days. New replies are no longer allowed.