Bug à l'inscription (French / Français)

by antoine @, nevers, france, Thursday, September 05, 2013, 21:04 (3876 days ago)

Bonjour


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

Warning: mb_strlen() expects parameter 2 to be string, array given in /homepages/26/d364731964/htdocs/forum/includes/functions.inc.php on line 2147

Warning: mb_strlen() expects parameter 2 to be string, array given in /homepages/26/d364731964/htdocs/forum/includes/functions.inc.php on line 2147

Warning: mb_strtolower() expects parameter 2 to be string, array given in /homepages/26/d364731964/htdocs/forum/includes/functions.inc.php on line 2167

Warning: mb_strtolower() expects parameter 2 to be string, array given in /homepages/26/d364731964/htdocs/forum/includes/functions.inc.php on line 2167

Warning: mb_strtolower() expects parameter 2 to be string, array given in /homepages/26/d364731964/htdocs/forum/includes/functions.inc.php on line 2167

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

Et le forum me dit que le mot de passe dot fait plus de 8 caractère..

Une idée de la solution ?

Merci (thanks fo solution !)

Avatar

Bug à l'inscription

by Auge ⌂, Thursday, September 05, 2013, 22:01 (3876 days ago) @ antoine

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!

Bug à l'inscription

by Antoine @, Friday, September 06, 2013, 18:43 (3875 days ago) @ Auge

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.

je n'ai rien changé. J'ai installé la dernière version présentée sur votre site comme étant stable. Je vais aller regarder cette partie du code (et aussi la version php de mon hébergeur.... ) on ne sait jamais... Merci de votre réactivité :-)

I haven't changed anything. I installed the latest version on your site . I'm going to look at this part of the code (and the php version of my host ....) Thank you for your response

Bug à l'inscription

by Antoine @, Saturday, September 07, 2013, 08:38 (3874 days ago) @ Antoine

Bonjour


Je n'ai pas les messages d'erreur quand le forum est configuré en anglais. Le problème ne se pose à priori qu'avec le forum configuré en français.

Toujours pas résolu le problème, j'ai donc configuré le forum en anglais :-(
Cordialement

Avatar

Bug à l'inscription

by Auge ⌂, Wednesday, September 11, 2013, 11:58 (3870 days ago) @ Antoine

Hello

Je n'ai pas les messages d'erreur quand le forum est configuré en anglais. Le problème ne se pose à priori qu'avec le forum configuré en français.

Toujours pas résolu le problème, j'ai donc configuré le forum en anglais :-(

If I understand the google translation, the error occurs only when the forum is configured to french language but not when configured to english. So I compared the both translations because the program code itself is always the same.

There are – aside the translation itself – only two differences.

1. the first section about language settings (locale, date and time format, etc.) starts in the english language file (like the german one and all others) with the keyword [default]. The french file is the only one, that lacks this keyword.

english.lang:

################################################################################
 
[default]
language =                        en
charset =                         utf-8
locale =                          en_US.utf8
locale =                          en_US
locale =                          en
locale_charset =                  utf-8
dir =                             ltr
time_format =                     %Y-%m-%d, %H:%M
time_format_full =                %A, %B %d, %Y, %H:%M
forum_time =                      Forum time: [time]
forum_time_with_time_zone =       Forum time: [time] ([time_zone])
...

french.lang:

################################################################################
 
language =                        fr
charset =                         utf-8
locale =                          fr_FR.utf8
locale =                          fr_FR@euro
locale =                          fr
locale_charset =                  utf-8
dir =                             ltr
time_format =                     %d/%m/%Y, %H:%M
time_format_full =                %A %d %B %Y, %H:%M
forum_time =                      Temps actuel sur le forum : [time]
forum_time_with_time_zone =       Temps actuel sur le forum : [time] ([time_zone])
...

2. The second difference is a sentence in the text of an email (keyword: pwf_activating_email_txt, difference: "Link to confirm your request:")

english.lang (line 1034):

pwf_activating_email_txt =        """Hi [name],
this e-mail has been sent by the forum on [forum_address] because a new password has been requested. Please click the link below to confirm your request. By following the link a new password will be generated and sent to you. If this e-mail has been sent in error (either by you or someone else) please ignore this e-mail.
 
Link to confirm your request:
[activating_link]"""

french.lang (line 1024):

pwf_activating_email_txt =        """Bonjour [name],
Cet email a été envoyé par le forum ([forum_address]) car un nouveau mot de passe a été demandé. Veuillez cliquer sur le lien ci-dessous pour confirmer votre demande. Cette action générera un nouveau mot de passe qui vous sera envoyé. Si cet email a été envoyé par erreur (que ce soit par vous ou par d'autres) veuillez ignorer cet email.
 
[activating_link]"""

If I'm right and the language file causes the error, the first difference (keyword [default]) is the reason for the error.

Add [default] on top of line 8 (language = fr) and try to choose french language again. Please report afterwards.

Tschö, Auge

--
Trenne niemals Müll, denn er hat nur eine Silbe!

Registering user - problem with password

by Jean-Michel @, Sunday, October 27, 2013, 14:57 (3824 days ago) @ Auge
edited by Jean-Michel, Sunday, October 27, 2013, 15:12

Dear,

I just installed MLF in French and precisely had the same issue. I confirm that placing [default] as you advised makes it work.

Please note that this solves another strange thing : the lang file encodes accentuated letters with symbols, but the result was not always good in the browser.

For instance :
reply_link = Répondre à ce message (for the French Répondre à ce message)
BUT
register_pw_conf = Répéter le mot de passe:
=> I had begun to correct the lang file like that because otherwise the symbols would appear in the browser instead of the accents.

But now, by adding [default], I realise that the browser needs the words with symbols.
So I have to change the fields back hat I had already corrected...:-(

Now another question: does it really takes a day to activate the account as the confirmation message says ???

Cheers,
Jean-Michel

Avatar

Registering user - problem with password

by Auge ⌂, Sunday, October 27, 2013, 16:48 (3824 days ago) @ Jean-Michel

Hello

I just installed MLF in French and precisely had the same issue. I confirm that placing [default] as you advised makes it work.

Thank you for your confirmation.

Please note that this solves another strange thing : the lang file encodes accentuated letters with symbols, but the result was not always good in the browser.

For instance :
reply_link = Répondre à ce message (for the French Répondre à ce message)
BUT
register_pw_conf = Répéter le mot de passe:
=> I had begun to correct the lang file like that because otherwise the symbols would appear in the browser instead of the accents.

But now, by adding [default], I realise that the browser needs the words with symbols.
So I have to change the fields back hat I had already corrected...:-(

That's strange. The forum software is encoded with UTF-8 and so are the language files. UTF-8 contains all chars of rather all actual used letter systems of this planet including french accentuated letters. Did you open and save the file with UTF-8-charset (without BOM)?

Now another question: does it really takes a day to activate the account as the confirmation message says ???

No, the activation of the account can be done within 24 hours after the registration. After 24 hours the registration will be refused. If you activate your account within 5 minutes you can instantly use it.

Tschö, Auge

--
Trenne niemals Müll, denn er hat nur eine Silbe!

Registering user - problem with password

by Jean-Michel @, Sunday, October 27, 2013, 17:28 (3824 days ago) @ Auge

That's strange. The forum software is encoded with UTF-8 and so are the language files. UTF-8 contains all chars of rather all actual used letter systems of this planet including french accentuated letters. Did you open and save the file with UTF-8-charset (without BOM)?

Well, the problem existed from the installation, so the first time I modified and saved the lang file was when I tried to fix this problem. But don't worry, it works perfectly now with [default] added to the file...

Thanks a lot for your time, MLF is exactly what I was searching for :-D

A last question : do you think of adding a clearer way to report a content that's causing trouble? For instance, with a button "Report this message". Right now -correct me if I'm wrong- the only way to report a problematic message is to click to Contact in the footer? The reason why I'm asking this is because I won't moderate the forum beforehand so I would feel more comfortable with such a feature that enables customers to complain easily in case of problem.

KR,
Jean-Michel

Avatar

Reporting spam or litigable content

by Auge ⌂, Saturday, November 02, 2013, 19:25 (3818 days ago) @ Jean-Michel

Hello

A last question : do you think of adding a clearer way to report a content that's causing trouble? For instance, with a button "Report this message".

To clarify: You want reports from users about litigable, spam or similar content in the forum messages?

Right now -correct me if I'm wrong- the only way to report a problematic message is to click to Contact in the footer? The reason why I'm asking this is because I won't moderate the forum beforehand so I would feel more comfortable with such a feature that enables customers to complain easily in case of problem.

As administrator you can activate the feature to be informed in case of a new posting via email. So you should have an overview whats going on. Additionally there is a link named "spam" for reporting a posting. I don't know if this link is accessible to registered users because I'm a moderator in this forum. If it is accessible to registered users, this is IMHO the proper way for reports.

[edit]In that moment I see that the link "spam" is only implemented for the thread opening message. The link should be accessible for every posting.[/edit]

Tschö, Auge

--
Trenne niemals Müll, denn er hat nur eine Silbe!

Reporting spam or litigable content

by Jean-Michel @, Saturday, November 09, 2013, 15:12 (3811 days ago) @ Auge


To clarify: You want reports from users about litigable, spam or similar content in the forum messages?


As administrator you can activate the feature to be informed in case of a new posting via email. So you should have an overview whats going on. Additionally there is a link named "spam" for reporting a posting. I don't know if this link is accessible to registered users because I'm a moderator in this forum. If it is accessible to registered users, this is IMHO the proper way for reports.

[edit]In that moment I see that the link "spam" is only implemented for the thread opening message. The link should be accessible for every posting.[/edit]

Yes. I don't want to moderate the site beforehand (time consuming + potential issue with unconsitutional censorship). But then users should be given the best way to report if they feel the content causes a problem to the community or if it might engage liabilities. In this context, a Report button at post level seems perfect.

RSS Feed of thread