Hello,
I have recently upgraded my journal from OJS 3.3.0-21 to OJS 3.4.0-9. After the upgrade, when I try to load the site I encounter the following error:
InvalidArgumentException: Invalid/unsupported locale "en_US", default locale restored in /var/www/html/lib/pkp/classes/i18n/Locale.php:141\nStack trace:\n#0 /var/www/html/lib/pkp/classes/i18n/Locale.php(130): PKP\\i18n\\Locale->setLocale()\n#1 /var/www/html/lib/pkp/classes/i18n/Locale.php(419): PKP\\i18n\\Locale->getLocale()\n#2 /var/www/html/lib/pkp/classes/i18n/Locale.php(105): PKP\\i18n\\Locale->translate()\n#3 /var/www/html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(938): PKP\\i18n\\Locale->get()\n#4 /var/www/html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(973): trans()\n#5 /var/www/html/plugins/themes/default/DefaultThemePlugin.php(45): __()\n#6 /var/www/html/lib/pkp/classes/plugins/ThemePlugin.php(131): APP\\plugins\\themes\\default\\DefaultThemePlugin->init()\n#7 [internal function]: PKP\\plugins\\ThemePlugin->themeRegistered()\n#8 /var/www/html/lib/pkp/classes/plugins/Hook.php(139): call_user_func_array()\n#9 /var/www/html/lib/pkp/classes/plugins/Hook.php(113): PKP\\plugins\\Hook::run()\n#10 /var/www/html/lib/pkp/classes/plugins/PluginRegistry.php(128): PKP\\plugins\\Hook::call()\n#11 /var/www/html/lib/pkp/classes/template/PKPTemplateManager.php(1440): PKP\\plugins\\PluginRegistry::loadCategory()\n#12 /var/www/html/lib/pkp/classes/plugins/Plugin.php(403): PKP\\template\\PKPTemplateManager::getManager()\n#13 /var/www/html/lib/pkp/classes/plugins/Plugin.php(137): PKP\\plugins\\Plugin->_registerTemplateResource()\n#14 /var/www/html/lib/pkp/classes/plugins/LazyLoadPlugin.php(34): PKP\\plugins\\Plugin->register()\n#15 /var/www/html/plugins/generic/staticPages/StaticPagesPlugin.php(71): PKP\\plugins\\LazyLoadPlugin->register()\n#16 /var/www/html/lib/pkp/classes/plugins/PluginRegistry.php(76): APP\\plugins\\generic\\staticPages\\StaticPagesPlugin->register()\n#17 /var/www/html/lib/pkp/classes/plugins/PluginRegistry.php(121): PKP\\plugins\\PluginRegistry::register()\n#18 [internal function]: PKP\\plugins\\PluginRegistry::PKP\\plugins\\{closure}()\n#19 /var/www/html/lib/pkp/classes/plugins/PluginRegistry.php(121): array_walk_recursive()\n#20 /var/www/html/lib/pkp/classes/core/Dispatcher.php(155): PKP\\plugins\\PluginRegistry::loadCategory()\n#21 /var/www/html/lib/pkp/classes/core/PKPApplication.php(395): PKP\\core\\Dispatcher->dispatch()\n#22 /var/www/html/index.php(21): PKP\\core\\PKPApplication->execute()\n#23 {main}
From the message it seems related to locale handling.
-
My installation had en_US enabled and working in OJS 3.3.
-
After the upgrade to 3.4, this error is triggered immediately.
Has anyone else faced this issue after upgrading? Do I need to manually re-install or rename the locales in OJS 3.4? Or is there a change in how en_US is managed in 3.4?
Any help or guidance would be greatly appreciated.
Thanks in advance!