althought I'm not sure its related i though I should share the problems I haveing with drupal.

I can't login with my superuser account. I know I didn't change the password. and I've been rearranging a lot of blocks. Maybe that did it. Anyway, I need to login with my super user account at some point. Does anyone know how I can redeem it.

When i tell the system to give me a new password. I get an email telling me my new password is "%password". That can't be right.

Thanks

Comments

graggrag’s picture

On submitting a password set, I get two untidy red warnings
* 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.
Even so, you get 'The changes have been saved'.
Then, you can only login from a 'forgotten password' email link.

lunatix’s picture

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!!

graggrag’s picture

Warnings are gone, and you can log in. That has to be close to a fix.

fgm’s picture

Same problem here. Your fix works too.

Running: PHP Version 5.1.1-Debian-0.1~breezy1 (Debian GNU/Linux)

cosmicdreams’s picture

...but more verbose. i get these errors now:

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.

cosmicdreams’s picture

I have no idea what to do. Please refer my previous messages. Can someone please help?

cosmicdreams’s picture

I have no idea what to do. Please refer my previous messages. Can someone please help?

cosmicdreams’s picture

I just removed all the CVS code and uploaded the drupal-beta4 code. then applied the form.inc fix.

It works for me now.

ToddZ-1’s picture

Thanks - worked for me too.