Fatal Error Instaling the OJS 3.4.0-5 on Ubuntu 22.04.4 LST

While i was trying to install the new version of the OJS, the OJS 3.4.0-5, i encounter with the next fatal error:

Fatal error: Uncaught Error: Call to undefined function mb_regex_encoding() in /home/federico/ojs-3.4.0-5/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php:47 Stack trace: #0 /home/federico/ojs-3.4.0-5/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.replace.php(34): smarty_mb_str_replace() #1 /home/federico/ojs-3.4.0-5/cache/t_compile/13376d7934b5f251160733e5e3c8b2ff6a1e1f24^164bd5a4f3891532cf93e9d19911fe9cb3308efd_0.app.layoutsbackend.tpl.php(31): smarty_modifier_replace() #2 /home/federico/ojs-3.4.0-5/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65f333ee0bf7e3_74746933() #3 /home/federico/ojs-3.4.0-5/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #4 /home/federico/ojs-3.4.0-5/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #5 /home/federico/ojs-3.4.0-5/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() #6 /home/federico/ojs-3.4.0-5/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(115): Smarty_Internal_Template->_subTemplateRender() #7 /home/federico/ojs-3.4.0-5/cache/t_compile/13376d7934b5f251160733e5e3c8b2ff6a1e1f24^8e26d4d5b957a6848a96c58ac27d2fddb2c40f9a_0.app.installinstall.tpl.php(34): Smarty_Internal_Runtime_Inheritance->endChild() #8 /home/federico/ojs-3.4.0-5/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65f333ee07d353_00192396() #9 /home/federico/ojs-3.4.0-5/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #10 /home/federico/ojs-3.4.0-5/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #11 /home/federico/ojs-3.4.0-5/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render() #12 /home/federico/ojs-3.4.0-5/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute() #13 /home/federico/ojs-3.4.0-5/lib/pkp/classes/template/PKPTemplateManager.php(1368): Smarty_Internal_TemplateBase->display() #14 /home/federico/ojs-3.4.0-5/lib/pkp/classes/form/Form.php(214): PKP\template\PKPTemplateManager->display() #15 /home/federico/ojs-3.4.0-5/lib/pkp/classes/form/Form.php(156): PKP\form\Form->fetch() #16 /home/federico/ojs-3.4.0-5/lib/pkp/classes/install/form/MaintenanceForm.php(50): PKP\form\Form->display() #17 /home/federico/ojs-3.4.0-5/lib/pkp/classes/install/form/InstallForm.php(122): PKP\install\form\MaintenanceForm->display() #18 /home/federico/ojs-3.4.0-5/lib/pkp/pages/install/InstallHandler.php(58): PKP\install\form\InstallForm->display() #19 [internal function]: PKP\pages\install\InstallHandler->index() #20 /home/federico/ojs-3.4.0-5/lib/pkp/classes/core/PKPRouter.php(334): call_user_func() #21 /home/federico/ojs-3.4.0-5/lib/pkp/classes/core/PKPPageRouter.php(277): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest() #22 /home/federico/ojs-3.4.0-5/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPPageRouter->route() #23 /home/federico/ojs-3.4.0-5/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch() #24 /home/federico/ojs-3.4.0-5/index.php(21): PKP\core\PKPApplication->execute() #25 {main} thrown in /home/federico/ojs-3.4.0-5/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php on line 47

I followed the installation process from the pkp docs, the last step done was

  1. php -S localhost:8000

Hi @SVEIN_ALAM_GONZALEZ

Could you look at that page, it might be related to the server configuration, php mbstring extension might have been disabled.
https://forum.pkp.sfu.ca/t/error-after-upgrade-from-3-3-0-13-to-3-4-0-1/79781
If mbstring extension has been disable on your server configuration, the server administrator should install & enable it for your account and your php version.
Regards,

1 Like

Thanks, it worked!!, thanks for your time.

1 Like