Page 2 of 2

Re: Frontend Users - can't modify user expiration date

Posted: Thu Jun 01, 2006 6:30 pm
by pgoneill
Hm.

Well, I just reinstalled everything.  Completely fresh start.  Newest versions of everything.  Same problem - a user changes their password, expiration date gets set to 0000-00-00 00:00:00.

Anyone out there have the same problem???

Re: Frontend Users - can't modify user expiration date

Posted: Thu Jun 01, 2006 9:04 pm
by pgoneill
OK I've made some form of progress.

Instead of going on localhost, I've installed the modules and a test page on our live server.  When I go to change the password on the live server, it spits out:

"Incorrect datetime value: ''2016-06-01 00:00:00'' for column 'expires' at row 1"

Only thing is there's no form control for that...I'm guessing this is somehow related to the expiration date being reset.

Why, on the user's change settings page would it care if there were a correct "datetime value for column 'expires' at row 1"?

Re: Frontend Users - can't modify user expiration date

Posted: Fri Jun 02, 2006 2:15 pm
by pgoneill
No one?

Oh, well.  I just hope I don't get fired. :-\

Re: Frontend Users - can't modify user expiration date

Posted: Fri Jun 02, 2006 2:21 pm
by calguy1000
I made a one line change in feusers last night, that should solve the problem.  Essentially, you take the last parameter out of the call to SetUser(...) in the _DoChangeUserSettings function.

it's checked into svn and will be available with the next release of feusers for the 0.14 series.

Re: Frontend Users - can't modify user expiration date

Posted: Fri Jun 02, 2006 2:59 pm
by pgoneill
Thanks for the effort. ;)

edit: found the function...

Re: Frontend Users - can't modify user expiration date

Posted: Fri Jun 02, 2006 3:19 pm
by pgoneill
Huzzah, it works! ;D

FYI, in the interim, for anyone else experiencing the same problem I detailed above open your FrontEndUsers.module.php, and remove the highlighted from line 2193:

$result = $this->SetUser( $uid, $uinfo['username'], $password, $uinfo['expires'] );

Big thanks to calguy, as always.