Previous Thread
Next Thread
Print Thread
Rate Thread
#212176 10/10/2001 6:03 AM
Joined: Jun 1999
Posts: 77
Journeyman
Journeyman
Joined: Jun 1999
Posts: 77
I had a problem with the time offset in 5.2 and sticky posts.I modified the time and date function and was able to fix it. I upgraded to 5.4.4 and the same problem arises when a forum has a sticky thread. If I change the offset to a positive number the error goes away. With offset at 0 or negative number I get the error below. To see the problem check this board.

http://www.visualbasicforum.com/bbs/postlist.php?Cat=&Board=visbas

You'll see a black table just under the active threads and search box. If you highlight the box you'll see this error
Warning: unexpected error in date() in main.inc.php on line 639

I've messed with for a couple hours and I can't track this bugger down.
In 5.2 I was able to fix it but if I use the code I added to 5.2 the time and date don't function at all. I'd appreciate any help you can give me.

Sponsored Links
Rapt0r #212177 10/10/2001 8:47 AM
Joined: Jun 1999
Posts: 77
Journeyman
Journeyman
Joined: Jun 1999
Posts: 77
I made a change to fix the error, but when you change the time to use an offset you still get the error. To see what I mean, create an account and login, set the time offset to a negative number and then enter the general questions forum. You'll see the error.

Rapt0r #212178 10/10/2001 8:01 PM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Which forum is giving the error? I registered and changed my offset but don't see a General questions forum. Tried the visual basic help forum and didn't get any errors there.


UBB.threads Developer
Rapt0r #212179 10/10/2001 8:04 PM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
I'm not real sure why it would error out. It only seems to do it when you have a negative offset. How did you change it before to fix it?


UBB.threads Developer
Sally #212180 10/11/2001 5:18 PM
Joined: Jun 1999
Posts: 77
Journeyman
Journeyman
Joined: Jun 1999
Posts: 77
Thats the thing I don't remember how I fixed it. When I uploaded the new files I overwrote them all and forgot to download the old files just in case the upgrade went bad. When I first uploaded the date function gave the error no matter what the offset was. I added in an elseif and it got rid of the error except for negative offset. I know I had the problem with it before and fixed it. All I have to do is find the fix again. The error is supposed to be at line 639 but I actually changed the code up about line 600. When I track it down I'll post the fix. Thanks for taking a look at it.

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)