I am trying to install OJS locally on my pc so that i can practice using it: I have installed xampp and i have placed the ojs folder inside the required folder in the xampp directory. I have also set up a database on phpmyadmin. But when i run the localhost/ojs i get this : “localhost is currently unable to handle this request.” I have looked for the solution in other forums and i found a similar thread but after listening to few suggestions on there i have not been able to fix the problem. I do have one more peace of info from the Apache error log file and it is this: "PHP Fatal error: Uncaught Error: Class “Locale” not found in C:\xampp\htdocs\testOJS\lib\pkp\classes\i18n\Locale.php:148\nStack trace:\n#0 C:\xampp\htdocs\testOJS\lib\pkp\classes\i18n\Locale.php(130): PKP\i18n\Locale->setLocale(‘en’)\n#1 C:\xampp\htdocs\testOJS\lib\pkp\lib\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(338): PKP\i18n\Locale->getLocale()\n#2 C:\xampp\htdocs\testOJS\lib\pkp\classes\template\PKPTemplateManager.php(161): Illuminate\Support\Facades\Facade::__callStatic(‘getLocale’, Array)\n#3 C:\xampp\htdocs\testOJS\classes\template\TemplateManager.php(40): PKP\template\PKPTemplateManager->initialize(Object(APP\core\Request))\n#4 C:\xampp\htdocs\testOJS\lib\pkp\classes\template\PKPTemplateManager.php(1438): APP\template\TemplateManager->initialize(Object(APP\core\Request))\n#5 C:\xampp\htdocs\testOJS\lib\pkp\classes\plugins\Plugin.php(403): PKP\template\PKPTemplateManager::getManager(Object(APP\core\Request))\n#6 C:\xampp\htdocs\testOJS\lib\pkp\classes\plugins\Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#7 C:\xampp\htdocs\testOJS\lib\pkp\classes\plugins\LazyLoadPlugin.php(34): PKP\plugins\Plugin->register(‘generic’, ‘plugins/generic…’, NULL)\n#8 C:\xampp\htdocs\testOJS\plugins\generic\announcementFeed\AnnouncementFeedPlugin.php(35): PKP\plugins\LazyLoadPlugin->register(‘generic’, ‘plugins/generic…’, NULL)\n#9 C:\xampp\htdocs\testOJS\lib\pkp\classes\plugins\PluginRegistry.php(76): APP\plugins\generic\announcementFeed\AnnouncementFeedPlugin->register(‘generic’, ‘plugins/generic…’, NULL)\n#10 C:\xampp\htdocs\testOJS\lib\pkp\classes\plugins\PluginRegistry.php(121): PKP\plugins\PluginRegistry::register(‘generic’, Object(APP\plugins\generic\announcementFeed\AnnouncementFeedPlugin), ‘plugins/generic…’, NULL)\n#11 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins\{closure}(Object(APP\plugins\generic\announcementFeed\AnnouncementFeedPlugin), ‘plugins/generic…’)\n#12 C:\xampp\htdocs\testOJS\lib\pkp\classes\plugins\PluginRegistry.php(121): array_walk_recursive(Array, Object(Closure))\n#13 C:\xampp\htdocs\testOJS\lib\pkp\classes\core\Dispatcher.php(155): PKP\plugins\PluginRegistry::loadCategory(‘generic’, true)\n#14 C:\xampp\htdocs\testOJS\lib\pkp\classes\core\PKPApplication.php(388): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))\n#15 C:\xampp\htdocs\testOJS\index.php(21): PKP\core\PKPApplication->execute()\n#16 {main}\n thrown in C:\xampp\htdocs\testOJS\lib\pkp\classes\i18n\Locale.php on line 148, referer: http://localhost/
"
Your help would be greatly appreciated.
Hi @AdnanDz,
Can you please note which specific version you’re running (e.g. 3.3.0-13)?
-Roger
PKP Team
i am using 3.4.0-6 version
Hi @AdnanDz,
The relevant error message is:
Class “Locale” not found
This indicates that your PHP installation does not have the required intl
module installed.
Regards,
Alec Smecher
Public Knowledge Project Team
Thank you @asmecher this actually helped get tot the bottom of the problem.
For those who get the same or similar problem, the solution is quite simple. You just need to go to the php directory and find the file named “php.ini”. Open the file using any editor of your choice, in the file search for “;extension=intl” once you find it just remove the “;” and save the file.
This worked for me.
One more note, because i am using xampp to run OJS locally my php directory was inside xampp directory this was the route C:\xampp\php.
Hope this explanation helps others too.