Loading...
 
Skip to main content

mb_split php function not available

Status
Closed
Subject
mb_split php function not available
Version
9.x
Category
  • Regression
Resolution status
Invalid
Submitted by
Yannick Charton
Lastmod by
Marc Laporte
Rating
(0)
Description

Hi,

After upgrading my tiki install to 9.0, going to my website produced a blank page with the following error:
Fatal error: Call to undefined function mb_split() in /bla/bla/bla/tiki/lib/smarty/libs/plugins/shared.mb_str_replace.php on line 47

Apparently, my hoster planethoster doesn't provide a php install including the mb_split() function.

Regards,
Yannick

Solution

I solved that problem by changing the line 47 of the file lib/smarty/libs/plugins/shared.mb_str_replace.php
from
$parts = mb_split(...
to
$parts = explode(preg_quote($search), $subject);

Hope that it won't produce unexpected behaviors.

Regards,
Yannick

Importance
5
Easy to solve?
9
Priority
45
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4266
Created
Wednesday 18 July, 2012 12:00:50 UTC
by Yannick Charton
LastModif
Wednesday 05 June, 2013 17:41:55 UTC


Show PHP error messages