Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Question Warnings in search

More
16 years 11 months ago #16708 by jerry
Warnings in search was created by jerry
Joomla 1.5.10, PHP 5.2.0, MYSQL 5.0.32
Warning: mb_substr() [function.mb-substr]: Unknown encoding "" in components/com_kunena/class.kunena.php on line 1292

Please Log in or Create an account to join the conversation.

More
16 years 11 months ago #16717 by xillibit
Replied by xillibit on topic Re:Warnings in search
Hello,

what do you have searched for obtain this error ?

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
16 years 11 months ago #16719 by jerry
Replied by jerry on topic Re:Warnings in search
xillibit wrote:

Hello,

what do you have searched for obtain this error ?

Whatever which return results. Reproducible always.

Please Log in or Create an account to join the conversation.

More
16 years 11 months ago #16721 by xillibit
Replied by xillibit on topic Re:Warnings in search
I have reported this to the DEVs, thanks for the report.

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
16 years 11 months ago #16735 by jerry
Replied by jerry on topic Re:Warnings in search
xillibit wrote:

I have reported this to the DEVs, thanks for the report.


mb_substr($str, $start, $lenght, $encoding); doesn't work with encoding set to NULL in PHP 5. You need to check if $encoding is not NULL to use it and call mb_substr($str, $start, $length) if it is NULL or "".

HaND

Please Log in or Create an account to join the conversation.

More
16 years 11 months ago - 16 years 11 months ago #16736 by jerry
Replied by jerry on topic Re:Warnings in search
I patched it this way
components/class.kunena.php line 1292
before
Code:
return mb_substr($str, $start, $lenght, $encoding);
after
Code:
if ($encoding === NULL) { return mb_substr($str, $start, $lenght); } else { return mb_substr($str, $start, $lenght, $encoding); }
Last edit: 16 years 11 months ago by jerry.

Please Log in or Create an account to join the conversation.

Time to create page: 0.254 seconds