I have a running OJS 3.4.0.4 on Ubuntu 22.04 and PHP 8.2
I tried to update to OJS 3.4.0.6 but at the end it doesn’t display anything than error 500.
As usual I deleted config.inc.php file and public folder from the new OJS folder, and added the old config.inc.php and public folder. I changed the installed from ON to OFF, and also made sure www-data has access to the OJS folder.
But when I access the OJS website it shows nothing, just error 500.
I was wondering, what did I do wrong from the procedures or why this error appears?
Hi @Fanwood ,
The best thing to do when you run into 500
(and other errors) is to check your PHP error log - that often provides clues for what is happening. Could you do that and report on any errors found?
See this FAQ entry on how to find your PHP error log if you’re not sure.
Thanks,
Roger
PKP Team
Thank you for the quicky reply.
I have checked the error log, here is the result from 10 last ones. Hope someone may help based on experience.
[Tue Aug 06 09:57:13.358793 2024] [php:warn] [pid 77184] [client 196.249.120.222:57554] PHP Warning: mkdir(): Permission denied in /var/www/html/ojs/lib/pkp/lib/vendor/elcobvg/laravel-opcache/src/Store.php on line 372
[Tue Aug 06 09:57:13.358860 2024] [php:warn] [pid 77184] [client 196.249.120.222:57554] PHP Warning: file_put_contents(/var/www/html/ojs/cache/opcache/2705054284-66b1f379579b05.08569267.tmp): Failed to open stream: No such file or directory in /var/www/html/ojs/lib/pkp/lib/vendor/elcobvg/laravel-opcache/src/Store.php on line 362
[Tue Aug 06 09:57:13.358886 2024] [php:warn] [pid 77184] [client 196.249.120.222:57554] PHP Warning: rename(/var/www/html/ojs/cache/opcache/2705054284-66b1f379579b05.08569267.tmp,/var/www/html/ojs/cache/opcache/opcache-1d96944d5ab7b465678c2289849c5713eb8e73a2): No such file or directory in /var/www/html/ojs/lib/pkp/lib/vendor/elcobvg/laravel-opcache/src/Store.php on line 363
[Tue Aug 06 09:57:13.361968 2024] [php:error] [pid 77184] [client 196.249.120.222:57554] PHP Fatal error: Uncaught Error: Class “Locale” not found in /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php:148\nStack trace:\n#0 /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php(130): PKP\i18n\Locale->setLocale()\n#1 /var/www/html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): PKP\i18n\Locale->getLocale()\n#2 /var/www/html/ojs/lib/pkp/classes/template/PKPTemplateManager.php(162): Illuminate\Support\Facades\Facade::__callStatic()\n#3 /var/www/html/ojs/classes/template/TemplateManager.php(40): PKP\template\PKPTemplateManager->initialize()\n#4 /var/www/html/ojs/lib/pkp/classes/template/PKPTemplateManager.php(1437): APP\template\TemplateManager->initialize()\n#5 /var/www/html/ojs/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager()\n#6 /var/www/html/ojs/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#7 /var/www/html/ojs/lib/pkp/classes/plugins/LazyLoadPlugin.php(34): PKP\plugins\Plugin->register()\n#8 /var/www/html/ojs/plugins/generic/announcementFeed/AnnouncementFeedPlugin.php(35): PKP\plugins\LazyLoadPlugin->register()\n#9 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(76): APP\plugins\generic\announcementFeed\AnnouncementFeedPlugin->register()\n#10 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(121): PKP\plugins\PluginRegistry::register()\n#11 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins\{closure}()\n#12 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(121): array_walk_recursive()\n#13 /var/www/html/ojs/lib/pkp/classes/core/Dispatcher.php(155): PKP\plugins\PluginRegistry::loadCategory()\n#14 /var/www/html/ojs/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch()\n#15 /var/www/html/ojs/index.php(21): PKP\core\PKPApplication->execute()\n#16 {main}\n thrown in /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php on line 148
[Tue Aug 06 09:58:11.454134 2024] [php:error] [pid 77190] [client 196.249.120.222:57567] PHP Fatal error: Uncaught Error: Class “Locale” not found in /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php:148\nStack trace:\n#0 /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php(130): PKP\i18n\Locale->setLocale()\n#1 /var/www/html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): PKP\i18n\Locale->getLocale()\n#2 /var/www/html/ojs/lib/pkp/classes/template/PKPTemplateManager.php(162): Illuminate\Support\Facades\Facade::__callStatic()\n#3 /var/www/html/ojs/classes/template/TemplateManager.php(40): PKP\template\PKPTemplateManager->initialize()\n#4 /var/www/html/ojs/lib/pkp/classes/template/PKPTemplateManager.php(1437): APP\template\TemplateManager->initialize()\n#5 /var/www/html/ojs/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager()\n#6 /var/www/html/ojs/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#7 /var/www/html/ojs/lib/pkp/classes/plugins/LazyLoadPlugin.php(34): PKP\plugins\Plugin->register()\n#8 /var/www/html/ojs/plugins/generic/announcementFeed/AnnouncementFeedPlugin.php(35): PKP\plugins\LazyLoadPlugin->register()\n#9 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(76): APP\plugins\generic\announcementFeed\AnnouncementFeedPlugin->register()\n#10 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(121): PKP\plugins\PluginRegistry::register()\n#11 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins\{closure}()\n#12 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(121): array_walk_recursive()\n#13 /var/www/html/ojs/lib/pkp/classes/core/Dispatcher.php(155): PKP\plugins\PluginRegistry::loadCategory()\n#14 /var/www/html/ojs/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch()\n#15 /var/www/html/ojs/index.php(21): PKP\core\PKPApplication->execute()\n#16 {main}\n thrown in /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php on line 148
[Tue Aug 06 09:58:12.904810 2024] [php:error] [pid 77186] [client 196.249.120.222:57566] PHP Fatal error: Uncaught Error: Class “Locale” not found in /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php:148\nStack trace:\n#0 /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php(130): PKP\i18n\Locale->setLocale()\n#1 /var/www/html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): PKP\i18n\Locale->getLocale()\n#2 /var/www/html/ojs/lib/pkp/classes/template/PKPTemplateManager.php(162): Illuminate\Support\Facades\Facade::__callStatic()\n#3 /var/www/html/ojs/classes/template/TemplateManager.php(40): PKP\template\PKPTemplateManager->initialize()\n#4 /var/www/html/ojs/lib/pkp/classes/template/PKPTemplateManager.php(1437): APP\template\TemplateManager->initialize()\n#5 /var/www/html/ojs/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager()\n#6 /var/www/html/ojs/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#7 /var/www/html/ojs/lib/pkp/classes/plugins/LazyLoadPlugin.php(34): PKP\plugins\Plugin->register()\n#8 /var/www/html/ojs/plugins/generic/announcementFeed/AnnouncementFeedPlugin.php(35): PKP\plugins\LazyLoadPlugin->register()\n#9 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(76): APP\plugins\generic\announcementFeed\AnnouncementFeedPlugin->register()\n#10 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(121): PKP\plugins\PluginRegistry::register()\n#11 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins\{closure}()\n#12 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(121): array_walk_recursive()\n#13 /var/www/html/ojs/lib/pkp/classes/core/Dispatcher.php(155): PKP\plugins\PluginRegistry::loadCategory()\n#14 /var/www/html/ojs/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch()\n#15 /var/www/html/ojs/index.php(21): PKP\core\PKPApplication->execute()\n#16 {main}\n thrown in /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php on line 148
[Tue Aug 06 09:58:13.528306 2024] [php:error] [pid 77183] [client 196.249.120.222:57568] PHP Fatal error: Uncaught Error: Class “Locale” not found in /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php:148\nStack trace:\n#0 /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php(130): PKP\i18n\Locale->setLocale()\n#1 /var/www/html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): PKP\i18n\Locale->getLocale()\n#2 /var/www/html/ojs/lib/pkp/classes/template/PKPTemplateManager.php(162): Illuminate\Support\Facades\Facade::__callStatic()\n#3 /var/www/html/ojs/classes/template/TemplateManager.php(40): PKP\template\PKPTemplateManager->initialize()\n#4 /var/www/html/ojs/lib/pkp/classes/template/PKPTemplateManager.php(1437): APP\template\TemplateManager->initialize()\n#5 /var/www/html/ojs/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager()\n#6 /var/www/html/ojs/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#7 /var/www/html/ojs/lib/pkp/classes/plugins/LazyLoadPlugin.php(34): PKP\plugins\Plugin->register()\n#8 /var/www/html/ojs/plugins/generic/announcementFeed/AnnouncementFeedPlugin.php(35): PKP\plugins\LazyLoadPlugin->register()\n#9 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(76): APP\plugins\generic\announcementFeed\AnnouncementFeedPlugin->register()\n#10 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(121): PKP\plugins\PluginRegistry::register()\n#11 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins\{closure}()\n#12 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(121): array_walk_recursive()\n#13 /var/www/html/ojs/lib/pkp/classes/core/Dispatcher.php(155): PKP\plugins\PluginRegistry::loadCategory()\n#14 /var/www/html/ojs/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch()\n#15 /var/www/html/ojs/index.php(21): PKP\core\PKPApplication->execute()\n#16 {main}\n thrown in /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php on line 148
[Tue Aug 06 10:03:55.806150 2024] [php:error] [pid 77186] [client 69.171.249.112:57152] PHP Fatal error: Uncaught Error: Class “Locale” not found in /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php:148\nStack trace:\n#0 /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php(130): PKP\i18n\Locale->setLocale()\n#1 /var/www/html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): PKP\i18n\Locale->getLocale()\n#2 /var/www/html/ojs/lib/pkp/classes/template/PKPTemplateManager.php(162): Illuminate\Support\Facades\Facade::__callStatic()\n#3 /var/www/html/ojs/classes/template/TemplateManager.php(40): PKP\template\PKPTemplateManager->initialize()\n#4 /var/www/html/ojs/lib/pkp/classes/template/PKPTemplateManager.php(1437): APP\template\TemplateManager->initialize()\n#5 /var/www/html/ojs/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager()\n#6 /var/www/html/ojs/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#7 /var/www/html/ojs/lib/pkp/classes/plugins/LazyLoadPlugin.php(34): PKP\plugins\Plugin->register()\n#8 /var/www/html/ojs/plugins/generic/announcementFeed/AnnouncementFeedPlugin.php(35): PKP\plugins\LazyLoadPlugin->register()\n#9 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(76): APP\plugins\generic\announcementFeed\AnnouncementFeedPlugin->register()\n#10 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(121): PKP\plugins\PluginRegistry::register()\n#11 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins\{closure}()\n#12 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(121): array_walk_recursive()\n#13 /var/www/html/ojs/lib/pkp/classes/core/Dispatcher.php(155): PKP\plugins\PluginRegistry::loadCategory()\n#14 /var/www/html/ojs/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch()\n#15 /var/www/html/ojs/index.php(21): PKP\core\PKPApplication->execute()\n#16 {main}\n thrown in /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php on line 148
[Tue Aug 06 10:04:30.037050 2024] [php:error] [pid 77183] [client 185.191.171.19:44800] PHP Fatal error: Uncaught Error: Class “Locale” not found in /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php:148\nStack trace:\n#0 /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php(130): PKP\i18n\Locale->setLocale()\n#1 /var/www/html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): PKP\i18n\Locale->getLocale()\n#2 /var/www/html/ojs/lib/pkp/classes/template/PKPTemplateManager.php(162): Illuminate\Support\Facades\Facade::__callStatic()\n#3 /var/www/html/ojs/classes/template/TemplateManager.php(40): PKP\template\PKPTemplateManager->initialize()\n#4 /var/www/html/ojs/lib/pkp/classes/template/PKPTemplateManager.php(1437): APP\template\TemplateManager->initialize()\n#5 /var/www/html/ojs/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager()\n#6 /var/www/html/ojs/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#7 /var/www/html/ojs/lib/pkp/classes/plugins/LazyLoadPlugin.php(34): PKP\plugins\Plugin->register()\n#8 /var/www/html/ojs/plugins/generic/announcementFeed/AnnouncementFeedPlugin.php(35): PKP\plugins\LazyLoadPlugin->register()\n#9 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(76): APP\plugins\generic\announcementFeed\AnnouncementFeedPlugin->register()\n#10 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(121): PKP\plugins\PluginRegistry::register()\n#11 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins\{closure}()\n#12 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(121): array_walk_recursive()\n#13 /var/www/html/ojs/lib/pkp/classes/core/Dispatcher.php(155): PKP\plugins\PluginRegistry::loadCategory()\n#14 /var/www/html/ojs/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch()\n#15 /var/www/html/ojs/index.php(21): PKP\core\PKPApplication->execute()\n#16 {main}\n thrown in /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php on line 148
[Tue Aug 06 10:07:05.505974 2024] [php:error] [pid 77185] [client 52.167.144.225:32271] PHP Fatal error: Uncaught Error: Class “Locale” not found in /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php:148\nStack trace:\n#0 /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php(130): PKP\i18n\Locale->setLocale()\n#1 /var/www/html/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): PKP\i18n\Locale->getLocale()\n#2 /var/www/html/ojs/lib/pkp/classes/template/PKPTemplateManager.php(162): Illuminate\Support\Facades\Facade::__callStatic()\n#3 /var/www/html/ojs/classes/template/TemplateManager.php(40): PKP\template\PKPTemplateManager->initialize()\n#4 /var/www/html/ojs/lib/pkp/classes/template/PKPTemplateManager.php(1437): APP\template\TemplateManager->initialize()\n#5 /var/www/html/ojs/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager()\n#6 /var/www/html/ojs/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()\n#7 /var/www/html/ojs/lib/pkp/classes/plugins/LazyLoadPlugin.php(34): PKP\plugins\Plugin->register()\n#8 /var/www/html/ojs/plugins/generic/announcementFeed/AnnouncementFeedPlugin.php(35): PKP\plugins\LazyLoadPlugin->register()\n#9 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(76): APP\plugins\generic\announcementFeed\AnnouncementFeedPlugin->register()\n#10 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(121): PKP\plugins\PluginRegistry::register()\n#11 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins\{closure}()\n#12 /var/www/html/ojs/lib/pkp/classes/plugins/PluginRegistry.php(121): array_walk_recursive()\n#13 /var/www/html/ojs/lib/pkp/classes/core/Dispatcher.php(155): PKP\plugins\PluginRegistry::loadCategory()\n#14 /var/www/html/ojs/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch()\n#15 /var/www/html/ojs/index.php(21): PKP\core\PKPApplication->execute()\n#16 {main}\n thrown in /var/www/html/ojs/lib/pkp/classes/i18n/Locale.php on line 148
Fanwood
September 21, 2024, 5:38pm
4
I managed to upgrade to OJS 3.4.0.7 from OJS 3.4.0.4.
The problem was the missing php-intl module.
After the installation, the error disappeared and was successfully upgraded.
1 Like
rcgillis
Closed
September 30, 2024, 11:00am
5
This topic was automatically closed after 8 days. New replies are no longer allowed.