Hi all,
I downloaded the latest OJS 3.4.0-7 and execute all the required information for installation and hitting the http://localhost:8000 on the browser I got the following error (stacktrace):
#15 /home/vboxuser/ojs/tarball/ojs-3.4.0-7/index.php(21): PKP\core\PKPApplication->execute()
#16 {main}
thrown in /home/vboxuser/ojs/tarball/ojs-3.4.0-7/lib/pkp/classes/i18n/Locale.php on line 148
[Thu Sep 19 22:18:31 2024] [::1]:51542 [200]: GET / - Uncaught Error: Class "Locale" not found in /home/vboxuser/ojs/tarball/ojs-3.4.0-7/lib/pkp/classes/i18n/Locale.php:148
Stack trace:
#0 /home/vboxuser/ojs/tarball/ojs-3.4.0-7/lib/pkp/classes/i18n/Locale.php(130): PKP\i18n\Locale->setLocale()
#1 /home/vboxuser/ojs/tarball/ojs-3.4.0-7/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): PKP\i18n\Locale->getLocale()
#2 /home/vboxuser/ojs/tarball/ojs-3.4.0-7/lib/pkp/classes/template/PKPTemplateManager.php(161): Illuminate\Support\Facades\Facade::__callStatic()
#3 /home/vboxuser/ojs/tarball/ojs-3.4.0-7/classes/template/TemplateManager.php(40): PKP\template\PKPTemplateManager->initialize()
#4 /home/vboxuser/ojs/tarball/ojs-3.4.0-7/lib/pkp/classes/template/PKPTemplateManager.php(1438): APP\template\TemplateManager->initialize()
#5 /home/vboxuser/ojs/tarball/ojs-3.4.0-7/lib/pkp/classes/plugins/Plugin.php(403): PKP\template\PKPTemplateManager::getManager()
#6 /home/vboxuser/ojs/tarball/ojs-3.4.0-7/lib/pkp/classes/plugins/Plugin.php(137): PKP\plugins\Plugin->_registerTemplateResource()
#7 /home/vboxuser/ojs/tarball/ojs-3.4.0-7/lib/pkp/classes/plugins/LazyLoadPlugin.php(34): PKP\plugins\Plugin->register()
#8 /home/vboxuser/ojs/tarball/ojs-3.4.0-7/plugins/generic/googleAnalytics/GoogleAnalyticsPlugin.php(36): PKP\plugins\LazyLoadPlugin->register()
#9 /home/vboxuser/ojs/tarball/ojs-3.4.0-7/lib/pkp/classes/plugins/PluginRegistry.php(76): APP\plugins\generic\googleAnalytics\GoogleAnalyticsPlugin->register()
#10 /home/vboxuser/ojs/tarball/ojs-3.4.0-7/lib/pkp/classes/plugins/PluginRegistry.php(121): PKP\plugins\PluginRegistry::register()
#11 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins\{closure}()
#12 /home/vboxuser/ojs/tarball/ojs-3.4.0-7/lib/pkp/classes/plugins/PluginRegistry.php(121): array_walk_recursive()
#13 /home/vboxuser/ojs/tarball/ojs-3.4.0-7/lib/pkp/classes/core/Dispatcher.php(155): PKP\plugins\PluginRegistry::loadCategory()
#14 /home/vboxuser/ojs/tarball/ojs-3.4.0-7/lib/pkp/classes/core/PKPApplication.php(395): PKP\core\Dispatcher->dispatch()
#15 /home/vboxuser/ojs/tarball/ojs-3.4.0-7/index.php(21): PKP\core\PKPApplication->execute()
#16 {main}
thrown in /home/vboxuser/ojs/tarball/ojs-3.4.0-7/lib/pkp/classes/i18n/Locale.php on line 148
I also got the same configuration as @Alfredo_Cosco . Any suggestion on how to solve the issue?
Thanks for the prompt reply, I confirm that by installing some necessary php extensions (intl, xml, mbr-string) the issue was resolved.
Regards,
Jehu Njikonga
@asmecher
I can enter into the admin area, so I suppose that the error is in the template for the journal
Moreover, looking into the db I see that there are some tables with locale settings unchanged (i.e. en_US),
like:
group_settings
deposit_point_settings
journal_settings
what if I try to change those values to “en” in the db?
Thanks
Alfredo
SELECT * FROM public.journal_settings
WHERE setting_name LIKE '%Locales%'
ORDER BY journal_setting_id ASC
I found some setting_value not in an array like form, simply a string:
default
so I changed the setting_value to:
[“en”]
and the error disappeared.
Now I have an other-one:
<b>Fatal error</b>: Uncaught Error: Call to a member function getOption() on null in my_ojs/cache/t_compile/6b3184cb43debd008d31211f777bad58e1ae511b^e64e579388e5615e11e939b12134d6ae8679eba6_0.app.frontendpagesindexJournal.tpl.php:36
Stack trace:
#0 my_ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_670e649e5db7b9_56101893()
#1 my_ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#2 my_ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#3 my_ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render()
#4 my_ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute()
#5 my_ojs/lib/pkp/classes/template/PKPTemplateManager.php(1369): Smarty_Internal_TemplateBase->display()
#6 my_ojs/pages/index/IndexHandler.php(83): PKP\template\PKPTemplateManager->display()
#7 [internal function]: APP\pages\index\IndexHandler->index()
#8 my_ojs/lib/pkp/classes/core/PKPRouter.php(334): call_user_func()
#9 my_ojs/lib/pkp/classes/core/PKPPageRouter.php(278): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest()
#10 my_ojs/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPPageRouter->route()
#11 my_ojs/lib/pkp/classes/core/PKPApplication.php(395): PKP\core\Dispatcher->dispatch()
#12 my_ojs/index.php(21): PKP\core\PKPApplication->execute()
#13 {main}
thrown in <b>my_ojs/cache/t_compile/6b3184cb43debd008d31211f777bad58e1ae511b^e64e579388e5615e11e939b12134d6ae8679eba6_0.app.frontendpagesindexJournal.tpl.php</b> on line <b>36</b><br />
Even if I delete ALL the caches (data and temples) the error comes back.
Another strange issue is that:
keep in mind that this is a single journal installation without a press level. There’s only the main journal, along with two test journals that aren’t public.
I can access certain pages of the admin area, but all data related to the main journal coniguration seems to be lost, and all the configuration fields show the word “default.”
It’s intentional that some journal_settings entries are scalar values (e.g. default) and others are JSON-formatted strings (e.g. ['en']); it depends on the setting_name what the format of the value should be. I think your modifications to the table have probably caused the issues you encountered later.
Regards,
Alec Smecher
Public Knowledge Project Team
Hi everyone, I was able to solve the issue and upgrade to the latest version of branch 3.4.
How did I do it?
I analyzed the installation and found that:
a test journal and a non-public journal had fields marked as “required” that were not filled out. For the test journal, some fields were not able to be completed.
I inserted “lorem ipsum” into the unfilled fields of the “non-public” journal.
I deleted the test journal.
I disabled all custom themes, assigning the default theme to all journals.