Welcome, Guest. Please Login or Register.
April 18, 2024, 11:12:13 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Can't Update Profiles « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Can't Update Profiles  (Read 1923 times)
dthomas
Noobie
*
Posts: 26


I'm a llama!

Can't Update Profiles
« on: March 21, 2003, 12:21:35 AM »
Reply with quote

Every since I upgraded to version 1.5.1 nobody can update their profile. It has something to do with the birthdate. If you leave it blank it works otherwise whatever you try to update you get this error

2: mktime() [function.mktime]: Windows does not support negative values for this function
(c:\inetpub\wwwroot\yabbse\Sources\Profile.php ln 559)

I am running a windows 2000 advanced server with php 4.30 and the latest mysql
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Can't Update Profiles
« Reply #1 on: March 21, 2003, 01:03:50 AM »
Reply with quote

Profile.php - search for:

      if (mktime(0, 0, 0, $member['bday1'], $member['bday2'], $member['bday3']) > time())


Replace with:
      if (@mktime(0, 0, 0, $member['bday1'], $member['bday2'], $member['bday3']) > time())

I don't know why this causes problems sometimes... hmm...

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Can't Update Profiles « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.032 seconds with 20 queries.