Smarty error after upgrade to ojs 3.1.2

Dear all,

after successfully upgrading vom ojs 3.1.1-4 to ojs 3.1.2, I get an 500 error message due to this error:

[Mon Mar 11 15:23:42.199021 2019] [:error] [pid 20730] [client 10.153.124.104:55025] PHP Fatal error: Uncaught Error: Call to undefined function mb_split() in /opt/ojs-gthj/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php:47\nStack trace:\n#0 /opt/ojs-gthj/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.replace.php(34): smarty_mb_str_replace(’’, ‘-’, ‘de_DE’)\n#1 /opt/ojs-gthj/cache/t_compile/848732f29c33e03602e7b02bd392634c9ec5c88b^10ae5578a0959129b8d4ceeb9f99c1bb2a9cbd65_0.app.frontendcomponentsheader…php(35): smarty_modifier_replace(‘de_DE’, '’, ‘-’)\n#2 /opt/ojs-gthj/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_5c8657e1c087b9_64599088(Object(Smarty_Internal_Template))\n#3 /opt/ojs-gthj/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))\n#4 /opt/ojs-gthj/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))\n#5 /op in /opt/ojs-gthj/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php on line 47

We use ubuntu 16, php v7

Do you have any idea, how to solve this problem?

Thanks,
Anna

Dear all,

running

sudo apt-get install php-mbstring

solved the problem, as described here: Call to undefined function mb_split throws fatal error · Issue #8 · pkp/vagrant · GitHub

2 Likes