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

Home » FUDforum Development » Bug Reports » search forums error (cannot search forums)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
search forums error [message #162533] Fri, 04 June 2010 20:30 Go to next message
lbrigman124 is currently offline  lbrigman124   United States
Messages: 26
Registered: March 2010
Karma: 0
Junior Member
I have a large message in the forums and I am running 3.0.1.

When I search for anything I get the following message:

Fatal error: Call to undefined function mb_substr() in
/var/www/html/forums/theme/default/search.php on line 1165

My searching does not find the function. Is this something
that was implement in development but didn't get pushed
to the released versions?

Re: search forums error [message #162534 is a reply to message #162533] Fri, 04 June 2010 21:00 Go to previous messageGo to next message
lbrigman124 is currently offline  lbrigman124   United States
Messages: 26
Registered: March 2010
Karma: 0
Junior Member
It seems that posting a large message also breaks the search.
Even the topic search on my instance is broken.
I have a number as part of the topic. If I search on that it fails.
Re: search forums error [message #162535 is a reply to message #162534] Sat, 05 June 2010 06:35 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
Google to the rescue: You need to install or recompile PHP with mb_string support.

I didn't realize that you can still get PHP without it. Running a very old release maybe?
Re: search forums error [message #162536 is a reply to message #162535] Sat, 05 June 2010 06:58 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
http://www.php.net/manual/en/mbstring.installation.php
mbstring is a non-default extension. This means it is not enabled by default. You must explicitly enable the module with the configure option. See the Install section for details.


You're right! We need to double up the code to cater for both or explicitly tell people that they need mb_string support.
Re: search forums error [message #162537 is a reply to message #162535] Sun, 06 June 2010 05:35 Go to previous messageGo to next message
lbrigman124 is currently offline  lbrigman124   
Messages: 26
Registered: March 2010
Karma: 0
Junior Member
Not that old.
PHP 5.1.6 (cli) (built: Jan 4 2010 10:45:55)
Re: search forums error [message #162538 is a reply to message #162537] Sun, 06 June 2010 05:37 Go to previous message
lbrigman124 is currently offline  lbrigman124   
Messages: 26
Registered: March 2010
Karma: 0
Junior Member
Turns out I only needed to install the php-mbstring rpm.

I want a better list of dependencies.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: New registrations - login name - first letter gets drop
Next Topic: post message fails
Goto Forum:
  

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

Current Time: Thu Nov 21 14:36:31 GMT 2024

Total time taken to generate the page: 0.03237 seconds