OK Button not Function When Install Plugin

hi @asmecher @Vitaliy

I have successfully upgraded OJS from version 3.1.1 to version 3.4.0.8.
the problem is that I try to Install Plugins from the plugin gallery, for example when installing a Theme and the Install button appears then I press the “OK” button when the button is pressed there is no reaction whatsoever / like freezing, after I reload the plugin page a notification appears that the plugin is installed …

What application are you using?
OJS 3.4.0-8
Error Log :
[15-Jan-2025 02:56:56 UTC] PHP Fatal error: Uncaught Error: Class “Locale” not found in /DATA/myjourna/public_html/lib/pkp/classes/i18n/Locale.php:148
Stack trace:
#0 /DATA/myjourna/public_html/lib/pkp/classes/i18n/Locale.php(130): PKP\i18n\Locale->setLocale(‘en’)
#1 /DATA/myjourna/public_html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): PKP\i18n\Locale->getLocale()
#2 /DATA/myjourna/public_html/lib/pkp/classes/template/PKPTemplateManager.php(161): Illuminate\Support\Facades\Facade::__callStatic(‘getLocale’, Array)
#3 /DATA/myjourna/public_html/classes/template/TemplateManager.php(40): PKP\template\PKPTemplateManager->initialize(Object(APP\core\Request))
#4 /DATA/myjourna/public_html/lib/pkp/classes/template/PKPTemplateManager.php(1441): APP\template\TemplateManager->initialize(Object(APP\core\Request))
#5 /DATA/myjourna/public_html/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager(Object(APP\core\Request))
#6 /DATA/myjourna/public_html/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()
#7 /DATA/myjourna/public_html/lib/pkp/classes/plugins/LazyLoadPlugin.php(34): PKP\plugins\Plugin->register(‘generic’, ‘plugins/generic…’, NULL)
#8 /DATA/myjourna/public_html/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.php(43): PKP\plugins\LazyLoadPlugin->register(‘generic’, ‘plugins/generic…’, NULL)
#9 /DATA/myjourna/public_html/lib/pkp/classes/plugins/PluginRegistry.php(76): APP\plugins\generic\recommendByAuthor\RecommendByAuthorPlugin->register(‘generic’, ‘plugins/generic…’, NULL)
#10 /DATA/myjourna/public_html/lib/pkp/classes/plugins/PluginRegistry.php(121): PKP\plugins\PluginRegistry::register(‘generic’, Object(APP\plugins\generic\recommendByAuthor\RecommendByAuthorPlugin), ‘plugins/generic…’, NULL)
#11 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins{closure}(Object(APP\plugins\generic\recommendByAuthor\RecommendByAuthorPlugin), ‘plugins/generic…’)
#12 /DATA/myjourna/public_html/lib/pkp/classes/plugins/PluginRegistry.php(121): array_walk_recursive(Array, Object(Closure))
#13 /DATA/myjourna/public_html/lib/pkp/classes/core/Dispatcher.php(155): PKP\plugins\PluginRegistry::loadCategory(‘generic’, true)
#14 /DATA/myjourna/public_html/lib/pkp/classes/core/PKPApplication.php(395): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
#15 /DATA/myjourna/public_html/index.php(21): PKP\core\PKPApplication->execute()
#16 {main}
thrown in /DATA/myjourna/public_html/lib/pkp/classes/i18n/Locale.php on line 148
[15-Jan-2025 02:57:59 UTC] WARNING: The NavigationMenu (ContextId: 1, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:57:59 UTC] WARNING: The NavigationMenu (ContextId: 1, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:57:59 UTC] WARNING: The NavigationMenu (ContextId: 2, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:57:59 UTC] WARNING: The NavigationMenu (ContextId: 2, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:57:59 UTC] WARNING: The NavigationMenu (ContextId: 3, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:57:59 UTC] WARNING: The NavigationMenu (ContextId: 3, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:57:59 UTC] WARNING: The NavigationMenu (ContextId: 4, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:57:59 UTC] WARNING: The NavigationMenu (ContextId: 4, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:57:59 UTC] WARNING: The NavigationMenu (ContextId: 0, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:57:59 UTC] The base_url in config.inc.php should be the same as in URLs in the usage stats log file.
[15-Jan-2025 02:58:40 UTC] WARNING: The NavigationMenu (ContextId: 1, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:58:40 UTC] WARNING: The NavigationMenu (ContextId: 1, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:58:40 UTC] WARNING: The NavigationMenu (ContextId: 2, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:58:40 UTC] WARNING: The NavigationMenu (ContextId: 2, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:58:40 UTC] WARNING: The NavigationMenu (ContextId: 3, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:58:40 UTC] WARNING: The NavigationMenu (ContextId: 3, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:58:40 UTC] WARNING: The NavigationMenu (ContextId: 4, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:58:40 UTC] WARNING: The NavigationMenu (ContextId: 4, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:58:40 UTC] WARNING: The NavigationMenu (ContextId: 0, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:58:40 UTC] The base_url in config.inc.php should be the same as in URLs in the usage stats log file.
[15-Jan-2025 02:59:37 UTC] WARNING: The NavigationMenu (ContextId: 1, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:59:37 UTC] WARNING: The NavigationMenu (ContextId: 1, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:59:37 UTC] WARNING: The NavigationMenu (ContextId: 2, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:59:37 UTC] WARNING: The NavigationMenu (ContextId: 2, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:59:37 UTC] WARNING: The NavigationMenu (ContextId: 3, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:59:37 UTC] WARNING: The NavigationMenu (ContextId: 3, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:59:37 UTC] WARNING: The NavigationMenu (ContextId: 4, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:59:37 UTC] WARNING: The NavigationMenu (ContextId: 4, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:59:37 UTC] WARNING: The NavigationMenu (ContextId: 0, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 02:59:37 UTC] Contact name or email is missing for context(s) with path(s) [dejure,jp,latihan,wclr]. Please set those before upgrading.
[15-Jan-2025 03:17:59 UTC] PHP Fatal error: Uncaught Error: Call to a member function getDisplayName() on null in /DATA/myjourna/public_html/lib/pkp/classes/i18n/Locale.php:279
Stack trace:
#0 [internal function]: PKP\i18n\Locale->PKP\i18n{closure}(‘en_US’)
#1 /DATA/myjourna/public_html/lib/pkp/classes/i18n/Locale.php(279): array_map(Object(Closure), Array)
#2 /DATA/myjourna/public_html/lib/pkp/classes/i18n/Locale.php(271): PKP\i18n\Locale->getSupportedLocales()
#3 /DATA/myjourna/public_html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): PKP\i18n\Locale->getSupportedFormLocales()
#4 /DATA/myjourna/public_html/lib/pkp/classes/controllers/grid/GridCellProvider.php(68): Illuminate\Support\Facades\Facade::__callStatic(‘getSupportedFor…’, Array)
#5 /DATA/myjourna/public_html/lib/pkp/classes/controllers/grid/GridHandler.php(1262): PKP\controllers\grid\GridCellProvider->render(Object(APP\core\Request), Object(PKP\controllers\grid\admin\context\ContextGridRow), Object(PKP\controllers\grid\GridColumn))
#6 /DATA/myjourna/public_html/lib/pkp/classes/controllers/grid/GridHandler.php(1163): PKP\controllers\grid\GridHandler->_renderCellInternally(Object(APP\core\Request), Object(PKP\controllers\grid\admin\context\ContextGridRow), Object(PKP\controllers\grid\GridColumn))
#7 /DATA/myjourna/public_html/lib/pkp/classes/controllers/grid/GridHandler.php(1138): PKP\controllers\grid\GridHandler->renderRowInternally(Object(APP\core\Request), Object(PKP\controllers\grid\admin\context\ContextGridRow))
#8 /DATA/myjourna/public_html/lib/pkp/classes/controllers/grid/GridHandler.php(1188): PKP\controllers\grid\GridHandler->renderRowsInternally(Object(APP\core\Request), Array)
#9 /DATA/myjourna/public_html/lib/pkp/classes/controllers/grid/GridHandler.php(1063): PKP\controllers\grid\GridHandler->renderGridBodyPartsInternally(Object(APP\core\Request))
#10 /DATA/myjourna/public_html/lib/pkp/classes/controllers/grid/GridHandler.php(735): PKP\controllers\grid\GridHandler->doSpecificFetchGridActions(Array, Object(APP\core\Request), Object(APP\template\TemplateManager))
#11 [internal function]: PKP\controllers\grid\GridHandler->fetchGrid(Array, Object(APP\core\Request))
#12 /DATA/myjourna/public_html/lib/pkp/classes/core/PKPRouter.php(334): call_user_func(Array, Array, Object(APP\core\Request))
#13 /DATA/myjourna/public_html/lib/pkp/classes/core/PKPComponentRouter.php(291): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array)
#14 /DATA/myjourna/public_html/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPComponentRouter->route(Object(APP\core\Request))
#15 /DATA/myjourna/public_html/lib/pkp/classes/core/PKPApplication.php(395): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
#16 /DATA/myjourna/public_html/index.php(21): PKP\core\PKPApplication->execute()
#17 {main}
thrown in /DATA/myjourna/public_html/lib/pkp/classes/i18n/Locale.php on line 279
[15-Jan-2025 03:18:22 UTC] PHP Warning: Undefined array key “required” in /DATA/myjourna/public_html/lib/pkp/classes/submission/GenreDAO.php on line 251
[15-Jan-2025 03:18:22 UTC] PHP Fatal error: Uncaught TypeError: PKP\submission\Genre::setRequired(): Argument #1 ($required) must be of type bool, null given, called in /DATA/myjourna/public_html/lib/pkp/classes/submission/GenreDAO.php on line 251 and defined in /DATA/myjourna/public_html/lib/pkp/classes/submission/Genre.php:213
Stack trace:
#0 /DATA/myjourna/public_html/lib/pkp/classes/submission/GenreDAO.php(251): PKP\submission\Genre->setRequired(NULL)
#1 /DATA/myjourna/public_html/lib/pkp/classes/db/DAOResultFactory.php(135): PKP\submission\GenreDAO->_fromRow(Array)
#2 /DATA/myjourna/public_html/lib/pkp/classes/db/DAOResultFactory.php(233): PKP\db\DAOResultFactory->next()
#3 /DATA/myjourna/public_html/lib/pkp/pages/dashboard/DashboardHandler.php(118): PKP\db\DAOResultFactory->toArray()
#4 [internal function]: PKP\pages\dashboard\DashboardHandler->index(Array, Object(APP\core\Request))
#5 /DATA/myjourna/public_html/lib/pkp/classes/core/PKPRouter.php(334): call_user_func(Array, Array, Object(APP\core\Request))
#6 /DATA/myjourna/public_html/lib/pkp/classes/core/PKPPageRouter.php(278): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array, false)
#7 /DATA/myjourna/public_html/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPPageRouter->route(Object(APP\core\Request))
#8 /DATA/myjourna/public_html/lib/pkp/classes/core/PKPApplication.php(395): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
#9 /DATA/myjourna/public_html/index.php(21): PKP\core\PKPApplication->execute()
#10 {main}
thrown in /DATA/myjourna/public_html/lib/pkp/classes/submission/Genre.php on line 213
[15-Jan-2025 03:26:41 UTC] WARNING: The NavigationMenu (ContextId: 1, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 03:26:41 UTC] WARNING: The NavigationMenu (ContextId: 1, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 03:26:41 UTC] WARNING: The NavigationMenu (ContextId: 2, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 03:26:41 UTC] WARNING: The NavigationMenu (ContextId: 2, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
[15-Jan-2025 03:26:41 UTC] WARNING: The NavigationMenu (ContextId: 0, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.

Hi @Fauji_Nurdin,

See e.g.: PHP Fatal error: Uncaught Error: Class "Locale" not found in

Regards,
Alec Smecher
Public Knowledge Project Team

i have already enabeled the intl extension. but the issue is persist

Is the intl extension installed? On certain Linux systems this requires adding the package, just editing the php.ini won’t help. You may ask your provider for support or find information on how to install for your system in the WWW.

i enabeled it directly from cpanel … Evererythings is Normal except the Button on install not function

Hi @Fauji_Nurdin,

Check your phpinfo page. If the intl extension has been properly enabled, you’ll see something like this:


If you don’t see this section, you’ll have to work with your host to get it enabled.

Regards,
Alec Smecher
Public Knowledge Project Team

this is what i check sir @asmecher

Hi @Fauji_Nurdin,

I suspect your CPanel has OJS running a different PHP configuration than the one you see in the phpinfo page you looked at, or something equivalent.

If the intl extension is running, then the Locale class should be present. OJS is complaining because the class is still missing. You might need to contact your host to find out why.

Regards,
Alec Smecher
Public Knowledge Project Team

oke sir i will chat the host

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