systemart / rtgui

Automatically exported from code.google.com/p/rtgui
0 stars 0 forks source link

Call to undefined function mb_strlen() in functions.php line 330 #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Clicking on the name of a seeding torrent in the main page

What is the expected output? What do you see instead?
Expected to see detailed info on the torrent (files, trackers etc)
I see: Fatal error: Call to undefined function mb_strlen() in 
/usr/local/www/data 
dist/rtgui/functions.php on line 330

What version of the product are you using? On what operating system?
rtGui v0.2.7
FreeBSD 7.1
apache 1.3
php5

Please provide any additional information below.
Possibly related to: http://code.google.com/p/rtgui/issues/detail?id=71

Original issue reported on code.google.com by norm...@gmail.com on 12 Apr 2009 at 8:04

GoogleCodeExporter commented 9 years ago
I am guessing you do not have PHP compiled with multibyte support?  You can 
check
phpinfo() for the "mbstring" extension.  Regardless, you can work around it by
wrapping it in a function check.

    if (function_exists('mb_strlen')) $string_length = mb_strlen($string,'UTF-8');
    else $string_length = strlen($string);

Or so I would assume.  Not going to compile another copy of PHP to find out.

Original comment by llamaXxX@gmail.com on 12 Apr 2009 at 2:45

GoogleCodeExporter commented 9 years ago
Re-compiled php5-extensions with MBSTRING and restarted apache, now it works.

Thank you.

Original comment by norm...@gmail.com on 13 Apr 2009 at 3:09

GoogleCodeExporter commented 9 years ago

Original comment by lemonbe...@gmail.com on 15 Apr 2009 at 8:05