Issue post Upgrade to ojs-3.4.0-1

Hi at all,

When I try to view the plugins list or the journals list this error is thrown:

[php:error] [pid 7681] [client 151.97.240.2:59373]
PHP Fatal error: Uncaught Error: Call to a member function getDisplayName() on null
in /srv/http/ojs-3.4.0-1/lib/pkp/classes/i18n/Locale.php:278\nStack trace:\n#0 [internal function]:
PKP\i18n\Locale->PKP\i18n\{closure}()\n#1 /srv/http/ojs-3.4.0-1/lib/pkp/classes/i18n/Locale.php(278):
array_map()\n#2 /srv/http/ojs-3.4.0-1/lib/pkp/classes/i18n/Locale.php(270): PKP\i18n\Locale->getSupportedLocales()\n#3 /srv/http/ojs-3.4.0-1/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): PKP\i18n\Locale->getSupportedFormLocales()\n#4 /srv/http/ojs-3.4.0-1/lib/pkp/classes/controllers/grid/GridCellProvider.php(68): Illuminate\Support\Facades\Facade::__callStatic()\n#5 /srv/http/ojs-3.4.0-1/lib/pkp/classes/controllers/grid/GridHandler.php(1262): PKP\controllers\grid\GridCellProvider->render()\n#6 /srv/http/ojs-3.4.0-1/lib/pkp/classes/controllers/grid/GridHandler.php(1163): PKP\controllers\grid\GridHandler->_renderCellInternally()\n#7 /srv/http/ojs-3.4.0-1/lib/pkp/classes/controllers/grid/GridHandler.php(1138): PKP\controllers\grid\GridHandler->renderRowInternally()\n#8 /srv/http/ojs-3.4.0-1/lib/pkp/classes/controllers/grid/GridHandler.php(1188): PKP\controllers\grid\GridHandler->renderRowsInternally()\n#9 /srv/http/ojs-3.4.0-1/lib/pkp/classes/controllers/grid/GridHandler.php(1063): PKP\controllers\grid\GridHandler->renderGridBodyPartsInternally()\n#10
/srv/http/ojs-3.4.0-1/lib/pkp/classes/controllers/grid/GridHandler.php(735):
PKP\controllers\grid\GridHandler->doSpecificFetchGridActions()\n#11 [internal function]: PKP\controllers\grid\GridHandler->fetchGrid()\n#12 /srv/http/ojs-3.4.0-1/lib/pkp/classes/core/PKPRouter.php(334): call_user_func()\n#13 /srv/http/ojs-3.4.0-1/lib/pkp/classes/core/PKPComponentRouter.php(291): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest()\n#14 /srv/http/ojs-3.4.0-1/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPComponentRouter->route()\n#15 /srv/http/ojs-3.4.0-1/lib/pkp/classes/core/PKPApplication.php(373): PKP\core\Dispatcher->dispatch()\n#16 /srv/http/ojs-3.4.0-1/index.php(21): PKP\core\PKPApplication->execute()\n#17 {main}\n thrown in /srv/http/ojs-3.4.0-1/lib/pkp/classes/i18n/Locale.php on line 278, referer: http://ojs3.unict.it/ojs-3.4.0-1/index.php/index/admin/contexts

I have php 8.2.9 and apache 2.4.57

Angelo

Hi @angelo.venera,

What language are you using? What is the locale setting in the i18n section of your config.inc.php set to?

This thread appears to be relevant:

Regards,
Alec Smecher
Public Knowledge Project Team

Hi Alec,

thank you for you answer, my setting is:

;;;;;;;;;;;;;;;;;;;;;;;;;
; Localization Settings ;
;;;;;;;;;;;;;;;;;;;;;;;;;

[i18n]

; Default locale
locale = en

Ciao Angelo

Hi @angelo.venera,

Thanks – can you also answer the questions I posted here? I think you’re encountering a related problem.

Regards,
Alec Smecher
Public Knowledge Project Team

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