Bug à l'inscription (French / Français)
Hello
Quand je tente de créer un nouveau membre pour tests, les erreurs suivantes apparaissent (when i try to register a new member, the error message is:)
Warning: mb_strlen() expects parameter 2 to be string, array given in /homepages/26/d364731964/htdocs/forum/includes/functions.inc.php on line 2147
The function itself defines the second parameter for the function my_strlen
as string. The only exception is an overwritten default ($encoding='utf-8'
). See the following source code from functions.inc.php
.
/** * determine string length using mb_strlen if available or strlen if not * * @param string $string * @param string $encoding * @return int */ function my_strlen($string, $encoding='utf-8') { if(function_exists('mb_strlen')) { return mb_strlen($string, $encoding); // this is line 2147 } else { return strlen($string); } }
Warning: mb_strtolower() expects parameter 2 to be string, array given in /homepages/26/d364731964/htdocs/forum/includes/functions.inc.php on line 2167
Same case as above for the function my_strtolower
. Did you change anything anywhere in the code? Especially any change of the variable $encoding
is meant.
Warning: Cannot modify header information - headers already sent by (output started at /homepages/26/d364731964/htdocs/forum/includes/functions.inc.php:2147) in /homepages/26/d364731964/htdocs/forum/index.php on line 206 Warning: Cannot modify header information - headers already sent by (output started at /homepages/26/d364731964/htdocs/forum/includes/functions.inc.php:2147) in /homepages/26/d364731964/htdocs/forum/index.php on line 208
These are subsequent errors. The previous warnings about strings and arrays triggers the warning output. Thatswhy the header informations can not be sent afterwards.
Tschö, Auge
--
Trenne niemals Müll, denn er hat nur eine Silbe!