Closed (fixed)
Project:
Drupal core
Version:
4.7.0-beta4
Component:
user system
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
27 Jan 2006 at 21:34 UTC
Updated:
15 Feb 2006 at 19:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
quibus commentedchanging line 180 in /includes/form.inc
Fixes the bug
Comment #2
cosmicdreams commentedlunatix suggested to try this. here's the text of his post:
To fix this quick and dirty:
Change line 180 in /includes/form.inc from:
$args = array_merge(array($elements), $args);
into
$args = array_merge(array($elements), array($args));
This removes the error!
Note 1: I have no experience in drupal development, just php hacking.
Note 2: This is NOT an official fix!!
After trying this i have additional issues. Try this out and let me know if you have additional issues too.
Comment #3
cosmicdreams commentedquibus or anyone. After modifiying the code as above, I get these warnings:
Sorry. Unrecognized username or password. Have you forgotten your password?
warning: array_keys(): The first argument should be an array in /home/spatials/public_html/drupal/modules/user.module on line 341.
warning: implode(): Bad arguments. in /home/spatials/public_html/drupal/modules/user.module on line 341.
user warning: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /home/spatials/public_html/drupal/includes/database.mysql.inc on line 124.
Comment #4
cosmicdreams commentedComment #5
jsaints commentedchange title back to original
Comment #6
chx commentedComment #7
chx commentedI am way too tired to dare to set to PRTbC.
Comment #8
jsaints commentedPatch fixes the problem. And doesnt seem to cause new ones.
Comment #9
chx commentedThen I set it back. I know it fixes the problem, I just fucked up #validate arguments when writing the #submit patch. But I do not have bloody PHP5 so it did not fire.
Comment #10
tfejos commentedI confirm, patch works well. "The changes have been saved."
Comment #11
chrisd commented6 submitted by chx on January 27, 2006 - 14:55
Corrected the problem. I can now login to my Beta 4 system.
Comment #12
kvarnelis commentedthis didn't work for me.
i never got any errors, and i do get "changes saved" after changing my password, but login results in "Sorry. Unrecognized username or password"
patch or no patch.
user history for me reads as "array"
Comment #13
drewish commented+1 chx's patch works. i think kvarnelis's problem is related to http://drupal.org/node/40200
Comment #14
dries commentedThanks. Committed.
Comment #15
nathandigriz commentedHas this patch really been committed? I just downloaded a compressed file and got
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /includes/form.inc on line 180.
* warning: Missing argument 1 for password_confirm_validate() in /includes/form.inc on line 595.
Or is it that the file compression script has not run for the latest changes? Should I be using CVS?
Comment #16
chx commentedcvs you want.
Comment #17
(not verified) commented