Frontend Users - can't modify user expiration date

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
pgoneill

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

Post 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???
Last edited by pgoneill on Thu Jun 01, 2006 7:10 pm, edited 1 time in total.
pgoneill

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

Post 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"?
Last edited by pgoneill on Thu Jun 01, 2006 9:08 pm, edited 1 time in total.
pgoneill

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

Post by pgoneill »

No one?

Oh, well.  I just hope I don't get fired. :-\
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

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

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
pgoneill

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

Post by pgoneill »

Thanks for the effort. ;)

edit: found the function...
Last edited by pgoneill on Fri Jun 02, 2006 3:07 pm, edited 1 time in total.
pgoneill

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

Post 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.
Locked

Return to “Modules/Add-Ons”