Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-2372 now.

(Minor) Search removes "å ä l" sometimes in error messages (fix completed in vcs)

If I search for a word containing a Swedish letter like å ä or ö (this is probably true for all non-English letters), like if I use this search query:

"Går även att"

That returns this error:

Code: Select all
The following words in your search query were ignored: G r ven att


See? The letters were just taken out. I don't know if it actually removed them from the actual search or it's just from the HTML display.

Apache version 1.3.37 (Unix)
PHP version 4.4.4
MySQL version 4.0.27-standard

Comments / History

Posted by John Hjorth (QA Team) on Nov 30th 2006, 00:20

Using Swedish or English language package? If using Swedish, no corrupt common.php in language root about encoding ?

Posted by Virtuality (QA Team) on Nov 30th 2006, 00:23

Same error for both Swedish and English language pack.

Thanks a lot for the help in my topic about BOM too! Gonna reply there soon.

Posted by Virtuality (QA Team) on Nov 30th 2006, 00:41

Addition to this report!

If a word containing any of these characters are searched for, and the search is instead <b>successful</b>, and returns correct results, an incorrect "Recent search" entry is made.

For example, I search my board for "omöjligt". I get one result.
I go back to the search page, and look at Recent searches. On the top it says "jligt". Everything in front of the bad character is removed.

Posted by naderman (Development Team Leader) on Dec 1st 2006, 22:14

Sounds like a problem with the normalizer to me

Posted by naderman (Development Team Leader) on Dec 3rd 2006, 16:49

Do you have the mbstring extension installed?

Posted by Virtuality (QA Team) on Dec 3rd 2006, 17:01

Yeah, I have it installed. The new installation checks gives the following:

mbstring Extension Check
mbstring is a PHP extension that provides multibyte string functions. Certain features of mbstring are not compatible with phpBB and must be disabled

Function overloading:
mbstring.func_overload must be set to either 0 or 4 Yes

Transparent character encoding:
mbstring.encoding_translation must be set to either 0 Yes

HTTP input character conversion:
mbstring.http_input must be set to pass Yes

HTTP output character conversion:
mbstring.http_output must be set to pass Yes

Posted by naderman (Development Team Leader) on Dec 3rd 2006, 17:02

Well I'm not able to reproduce this problem on mysql 4.0 so I suspect it's mbstring doing something to the data it's not supposed to do, but apart from that no idea.

Posted by Virtuality (QA Team) on Dec 3rd 2006, 17:03

Oh, phpinfo about mbstring:

mbstring
Multibyte Support enabled
Japanese support enabled
Simplified chinese support enabled
Traditional chinese support enabled
Korean support enabled
Russian support enabled
Multibyte (japanese) regex support enabled

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input pass pass
mbstring.http_output pass pass
mbstring.internal_encoding ISO-8859-1 no value
mbstring.language neutral neutral
mbstring.substitute_character no value no value

Ticket details

Related SVN changesets