DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • April 19, 2019, 07:21:24 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: error message  (Read 5434 times)
0 Members and 1 Guest are viewing this topic.
robert
Old Dog
Mod God
*****
Offline Offline

Posts: 1047


LoGD Buff!


View Profile WWW
« on: March 10, 2004, 06:53:09 PM »

Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in H:\HtDocs\logd-0.9.7-php\common.php on line 1489


[OOOPS]
Sorry, hit edit instead of quote Embarrassed Embarrassed
anpera
« Last Edit: March 11, 2004, 10:37:13 AM by anpera » Logged

lonnyl
Guest
« Reply #1 on: March 10, 2004, 06:56:15 PM »

Have you checked the clock on your server?
Logged
robert
Old Dog
Mod God
*****
Offline Offline

Posts: 1047


LoGD Buff!


View Profile WWW
« Reply #2 on: March 10, 2004, 07:28:36 PM »

I think I made it worst?

Here is the current info:
Useful Information  
Last new day: 05:30:00 pm  
Next new day: 11:30:00 pm  
Current game time: 3:40 pm  
Day Duration: 6 hours  
Current Server Time: 2004-03-10 09:25:09 pm  
Real time to offset new day  < what should this be??? >
Logged

Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #3 on: March 10, 2004, 07:33:23 PM »

I have no offset set.

Seriously odd that its doing that, if you have no space or blank line in common.php or dbwrapper.php

hmmm,
I'd try rebooting, making sure the time is correct.

Nothing else I'd know of, course I run linux...so its completely different.
Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #4 on: March 10, 2004, 08:30:29 PM »

Undecided  i should have said something to you earlier Robert.  I have tried to sign into your server twice in the past month and i got that error.  i just assumed you were working on something.  Embarrassed
Logged

anpera
Guest
« Reply #5 on: March 11, 2004, 10:38:16 AM »

It is what it says: Windows does not support such date.

Change every 1970 into 1980 and every 1971 into 1981 and the problem will disappear. It is fixed in 0.9.8.

about.php, common.php, configuration.php, index.php
Logged
robert
Old Dog
Mod God
*****
Offline Offline

Posts: 1047


LoGD Buff!


View Profile WWW
« Reply #6 on: March 11, 2004, 12:07:51 PM »

Thanx - did all the date changes to all 4 files, and a search on all four files to find 1970 and 1971 = none are found AND a server reboot - yet the error message still appears?

Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in H:\HtDocs\logd-0.9.7-php\common.php on line 1486

THIS IS LINE 1486:

$sql = "DELETE from debuglog WHERE date<'".date("Y-m-d H:i:s",strtotime("-".(getsetting("expirecontent",21)/10)."days"))."'";

These messages are starting to annoy the players now.
Please help find a solution.
Logged

Zanzaras
Captain of the Guard
***
Offline Offline

Posts: 220


*Snipe*


View Profile
« Reply #7 on: March 11, 2004, 12:15:07 PM »

If you're running Apache/PHP, you can suppress these warning messages. I had the same problem with my server. Let me see if I can remember what I did and I'll post it for you.
.
.
.
.
Ok, found it... To suppress ALL PHP warnings and errors change the following lines in your PHP.INI and restart apache:

Change these:
----------------------------------------
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
display_startup_errors = On

to

This:
----------------------------
error_reporting = E_ERROR
display_errors = Off
display_startup_errors = Off


While I'm hesitant to supress warnings and errors, you can still set them to accumulate into a log file. At least this way, you don't annoy your players to death.
« Last Edit: March 11, 2004, 12:23:05 PM by Zanzaras » Logged

"Intelligence is like a river, the deeper it is the less noise it makes."
anpera
Guest
« Reply #8 on: March 11, 2004, 12:26:30 PM »

THIS IS LINE 1486:

$sql = "DELETE from debuglog WHERE date<'".date("Y-m-d H:i:s",strtotime("-".(getsetting("expirecontent",21)/10)."days"))."'";

Well ... the original line "1486" is:

$sql = "DELETE from debuglog WHERE date <'".date("Y-m-d H:i:s",strtotime("-".(getsetting("expirecontent",180)/10)." days"))."'";

What is your setting for content expiration in game settings? Try changing it.
Logged
robert
Old Dog
Mod God
*****
Offline Offline

Posts: 1047


LoGD Buff!


View Profile WWW
« Reply #9 on: March 11, 2004, 12:36:16 PM »

 Shocked
That did it! Anpera once again you did it - thank you!
Changing the game setting and common back to 180 from 21 did the trick - no more error message!
Thank you so much!
Logged

joe_smith
Guest
« Reply #10 on: April 15, 2005, 12:13:17 PM »

i know what this error means:
Fatal error: Call to undefined function: db_insert() in /home/jdm3420/public_html/testserver97/guildclanfuncs.php on line 387

but i cant find the function to add to the file please help i have searched the other threads for guilds and clans
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
84 Guests, 1 User
tnyguy
Home Forums News Downloads Login Register Advanced Search