FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Call to undefined function mb_substr() (Whenever i search for anything then it seeing the "Call to undefined function mb_substr()" erro)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Call to undefined function mb_substr() [message #162973] Mon, 13 September 2010 12:39 Go to next message
tinkuforyou is currently offline  tinkuforyou   India
Messages: 16
Registered: February 2010
Location: India
Karma: 0
Junior Member
Hi,

I am seeing the following error whever user searches for any thinkg in my forum.

Fatal error: Call to undefined function mb_substr() in apache-2.2.15/htdocs/messageboardappl/FudForum/theme/default/search.php on line 1165

I have default php.ini properities, pelase let me know what are the i need to chagne to enable mb-string .

following are the php.ini values :-
[mbstring]
; language for internal character representation.
;mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
;mbstring.internal_encoding = EUC-JP

; http input encoding.
;mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
;mbstring.http_output = SJIS

; enable automatic encoding translation accoding to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
; portable libs/applications.
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; auto means
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
;mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
;mbstring.func_overload = 0

Please let me know what are the values i need to change , so that it enables the mb_string lib.

Note :- I chagned the mbstring.func_overload = 0 to mbstring.func_overload = 2 and restarted the apache but no luck and i installed the mb_string also.

Could any one let me know where mb_string related files will be stored after installing ?


Thanks
Manoj
Re: Call to undefined function mb_substr() [message #162975 is a reply to message #162973] Mon, 13 September 2010 15:22 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Looks like you are running on Linux. Please check if you have the "php-mbstring" package installed.
Re: Call to undefined function mb_substr() [message #162978 is a reply to message #162975] Tue, 14 September 2010 07:40 Go to previous messageGo to next message
tinkuforyou is currently offline  tinkuforyou   India
Messages: 16
Registered: February 2010
Location: India
Karma: 0
Junior Member
I checked the installed the php-mbstring package also.

Thanks
Manoj
Re: Call to undefined function mb_substr() [message #162979 is a reply to message #162973] Tue, 14 September 2010 07:43 Go to previous messageGo to next message
tinkuforyou is currently offline  tinkuforyou   India
Messages: 16
Registered: February 2010
Location: India
Karma: 0
Junior Member
tinkuforyou wrote on Mon, 13 September 2010 08:39

Note :- I chagned the mbstring.func_overload = 0 to mbstring.func_overload = 2 and restarted the apache but no luck and i installed the mb_string also.

Could any one let me know where mb_string related files will be stored after installing ?



Could you please let me know ,after installing mb_string where the files will be located.


Thanks
Manoj
Re: Call to undefined function mb_substr() [message #162984 is a reply to message #162979] Tue, 14 September 2010 19:40 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
To be honest, I have no idea. As far as I'm concerned you just need to install php-mbstring (which will probably require mb_string) and restart Apache. If you then do a phpinfo() you should see that it is enabled. There is no need to set or uncomment any of the mbstring parameters in php.ini.

Best of luck!

Frank
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Not able to select the different database
Next Topic: trying to upgrade my fudforum
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 22:22:08 GMT 2024

Total time taken to generate the page: 0.04031 seconds