PHP Fatal error: Uncaught Error: Class "Locale" not found in

Hello Community,
When I run php tools/upgrade.php check
I get this error
PHP Fatal error: Uncaught Error: Class “Locale” not found in /home/…/public_html/lib/pkp/classes/i18n/Locale.php:148

Stack trace:

#0 /home/…/public_html/lib/pkp/classes/i18n/Locale.php(130): PKP\i18n\Locale->setLocale()

#1 /home/…/public_html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): PKP\i18n\Locale->getLocale()

#2 /home/…/public_html/lib/pkp/classes/template/PKPTemplateManager.php(162): Illuminate\Support\Facades\Facade::__callStatic()

#3 /home/…/public_html/classes/template/TemplateManager.php(40): PKP\template\PKPTemplateManager->initialize()

#4 /home/…/public_html/lib/pkp/classes/template/PKPTemplateManager.php(1437): APP\template\TemplateManager->initialize()

#5 /home/…/public_html/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager()

#6 /home/…/public_html/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()

#7 /home/…/public_html/lib/pkp/classes/plugins/LazyLoadPlugin.php(34): PKP\plugins\Plugin->register()

#8 /home/…/public_html/plugins/generic/htmlArticleGalley/HtmlArticleGalleyPlugin.php(36): PKP\plugins\LazyLoadPlugin->register()

#9 /home/…/public_html/lib/pkp/classes/plugins/PluginRegistry.php(76): APP\plugins\generic\htmlArticleGalley\HtmlArticleGalleyPlugin->register()

#10 /home/…/public_html/lib/pkp/classes/plugins/PluginRegistry.php(121): PKP\plugins\PluginRegistry::register()

#11 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins{closure}()

#12 /home/…/public_html/lib/pkp/classes/plugins/PluginRegistry.php(121): array_walk_recursive()

#13 /home/…/public_html/lib/pkp/classes/cliTool/CommandLineTool.php(72): PKP\plugins\PluginRegistry::loadCategory()

#14 /home/…/public_html/lib/pkp/classes/cliTool/UpgradeTool.php(39): PKP\cliTool\CommandLineTool->__construct()

#15 /home/…/public_html/tools/upgrade.php(21): PKP\cliTool\UpgradeTool->__construct()

#16 {main}

thrown in /home/…/public_html/lib/pkp/classes/i18n/Locale.php on line 148

Steps I took leading up to the issue
For example:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

What application are you using?
For example, OJS 3.4.0-1

How do i solve this issue.

Hi @Janice_Muindi,

Your PHP environment is probably missing the intl extension.

Regards,
Alec Smecher
Public Knowledge Project Team

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