Running php tools/upgrade.php throws an error about class Locale not found
PHP Fatal error: Uncaught Error: Class “Locale” not found in /var/www/ojs.nomos-journals.de/lib/pkp/classes/i18n/Locale.php:148*
Steps I took leading up to the issue
- Running php tools/upgrade.php
- See error
PHP Fatal error: Uncaught Error: Class "Locale" not found in /var/www/xxx.xxx.xx/lib/pkp/classes/i18n/Locale.php:148
Stack trace:
#0 /var/www/xxx.xxx.xx/lib/pkp/classes/i18n/Locale.php(130): PKP\i18n\Locale->setLocale()
#1 /var/www/xxx.xxx.xx/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): PKP\i18n\Locale->getLocale()
#2 /var/www/xxx.xxx.xx/lib/pkp/classes/template/PKPTemplateManager.php(162): Illuminate\Support\Facades\Facade::__callStatic()
#3 /var/www/xxx.xxx.xx/classes/template/TemplateManager.php(40): PKP\template\PKPTemplateManager->initialize()
#4 /var/www/xxx.xxx.xx/lib/pkp/classes/template/PKPTemplateManager.php(1437): APP\template\TemplateManager->initialize()
#5 /var/www/xxx.xxx.xx/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager()
#6 /var/www/xxx.xxx.xx/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()
#7 /var/www/xxx.xxx.xx/lib/pkp/classes/plugins/LazyLoadPlugin.php(34): PKP\plugins\Plugin->register()
#8 /var/www/xxx.xxx.xx/plugins/generic/error404/Error404Plugin.php(26): PKP\plugins\LazyLoadPlugin->register()
#9 /var/www/xxx.xxx.xx/lib/pkp/classes/plugins/PluginRegistry.php(76): APP\plugins\generic\error404\Error404Plugin->register()
#10 /var/www/xxx.xxx.xx/lib/pkp/classes/plugins/PluginRegistry.php(121): PKP\plugins\PluginRegistry::register()
#11 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins\{closure}()
#12 /var/www/xxx.xxx.xx/lib/pkp/classes/plugins/PluginRegistry.php(121): array_walk_recursive()
#13 /var/www/xxx.xxx.xx/lib/pkp/classes/cliTool/CommandLineTool.php(72): PKP\plugins\PluginRegistry::loadCategory()
#14 /var/www/xxx.xxx.xx/lib/pkp/classes/cliTool/UpgradeTool.php(39): PKP\cliTool\CommandLineTool->__construct()
#15 /var/www/xxx.xxx.xx/tools/upgrade.php(21): PKP\cliTool\UpgradeTool->__construct()
#16 {main}
thrown in /var/www/xxx.xxx.xx/lib/pkp/classes/i18n/Locale.php on line 148
If I take a look with
ll lib/pkp/classes/i18n/
I cann see that the class exists:
drwxrwxr-x 4 www-data www-data 4096 23. Feb 18:30 .
drwxrwxr-x 69 www-data www-data 4096 23. Feb 18:30 ..
drwxrwxr-x 2 www-data www-data 4096 23. Feb 18:30 interfaces
-rw-rw-r-- 1 www-data www-data 6194 23. Feb 18:30 LocaleConversion.php
-rw-rw-r-- 1 www-data www-data 9158 23. Feb 18:30 LocaleMetadata.php
-rw-rw-r-- 1 www-data www-data 16941 23. Feb 18:30 Locale.php
-rw-rw-r-- 1 www-data www-data 1943 23. Feb 18:30 LocaleServiceProvider.php
-rw-rw-r-- 1 www-data www-data 3631 23. Feb 18:30 PKPLocale.php
drwxrwxr-x 2 www-data www-data 4096 23. Feb 18:30 translation
Any ideas what goes wrong?
What application are you using?
OJS 3.3.0-4 trying to upgrade to 3.3.0-5