Warning: preg_match() expects parameter 2 to be string, array given in /***/modules/logintoboggan/logintoboggan.module on line 732
I am looking into this later in the dev. process, but I'd like to report this, in case others have seen and solved this.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 101660_pass_send_as_array.patch | 731 bytes | Bèr Kessels |
Comments
Comment #1
hunmonk commentedthis means the password from $form_values is being passed as an array? weird. i cannot reproduce during registration or user edits. what are the steps to reproduce?
Comment #2
Gary Feldman commentedComment #3
MattKelly commentedI'm experiencing the same problem and I'm working on a fix.
Comment #4
MattKelly commentedLogintoboggan only expects one password in function logintoboggan_validate_pass($pass). Drupal passes two.
For my sake, I've done a quick fix by just putting this at the top of that function:
$pass = $pass['pass1'];
I'm positive this isn't the best solution, but it seems to be working for the time being.
Comment #5
MattKelly commentedThat last fix breaks registration. So, I've changed it to this:
if (arg(2) == 'edit') {
$pass = $pass['pass1'];
}
Comment #6
Bèr Kessels commentedReproduce:
install $Id: logintoboggan.module,v 1.7.2.60 2006/12/17 19:11:26 thehunmonkgroup Exp
on latest Drupal 4.7
Then visit any user/X/edit form and 'submit'.
Bèr
Comment #7
Bèr Kessels commentedChanged the title to reflect the problem.
Comment #8
Bèr Kessels commentedHere is a patch that should ix this problem. Somehow on validate the $form_values#pass contained an array. We now only validates the first of the two (they are similar anyway).
Comment #9
Bèr Kessels commentedComment #10
hunmonk commentedi am unable to reproduce this problem -- can you please re-test w/ the latest version of the module, and mark this issue as closed if you can't reproduce? thanks
Comment #11
hunmonk commentedi'm guessing this is no longer a problem.