On Wed, Sep 23, 2009 at 4:46 PM, Chris Fanning < [email protected]> wrote:
> > > On Tue, Sep 22, 2009 at 5:17 PM, Craig Andrews > <[email protected]>wrote: > >> > Hi, >> > >> > I'm in the process of setting up a statusNet site on my server. I hope >> > this >> > is the right place to post my questions. >> > I've installed 0.8.1 on a debian etch with php5.2.0 (is php5.2.3 a >> must?) >> >> I don't know if this is what's causing your problem, but yes - 5.2.3 is a >> must. >> > > right. I'm now running 5.2.6, but I've still got the same error.. :( > > Hi, If I edit actions/recoverpassword.php and comment out // if ((time() - $touched) > MAX_RECOVERY_TIME) { //... //} it works. But that isn't a fix, right? Looking at the log I see that $touched doesn't have any value. $touched = strtotime($confirm->modified); the contents of 'confirm' are set here in actions/recoverpassword.php # Success! We have a valid user and a confirmed or unconfirmed email address $confirm = new Confirm_address(); $confirm->code = common_confirmation_code(128); ... Should there be a line here to set modify, something like? $confirm->modify = time(); I tried it but browsing the database I see the 'modified' column is set to NULL. Then I tried $confirm->sent = time(); and got an error. UTC ERROR: invalid input syntax for type timestamp: "1253883625" I don't understand that becuase both 'sent' and 'modified' are of type 'timestamp without time zone' $confirm->address_extra = 'hello'; I can see that gets saved in the database. I'm running postgresql 8.3 and I'm definitely no database wizz. :( Any pointers please? Chris. .... looking a /lib/utlis.php function common_confirmation_code($bits) doesn't add any time information there. > Thanks. > Chris. > > >
_______________________________________________ StatusNet-dev mailing list [email protected] http://lists.status.net/mailman/listinfo/statusnet-dev
