https://www.icyphoenix.com/viewtopic.php?f=35&t=454
-----------------------------------
toniobr
Mon 02 Oct, 2006 10:09

Help Home Page Debug String
-----------------------------------
What is this?

Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in D:Inetpubwebskiteforumpugliaitpublicincludesfunctions.php on line 847

Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in D:Inetpubwebskiteforumpugliaitpublicincludesfunctions.php on line 847

Warning: Cannot modify header information - headers already sent by (output started at D:Inetpubwebskiteforumpugliaitpublicincludesfunctions.php:847) in D:Inetpubwebskiteforumpugliaitpublicincludespage_header.php on line 1227

Warning: Cannot modify header information - headers already sent by (output started at D:Inetpubwebskiteforumpugliaitpublicincludesfunctions.php:847) in D:Inetpubwebskiteforumpugliaitpublicincludespage_header.php on line 1229

Warning: Cannot modify header information - headers already sent by (output started at D:Inetpubwebskiteforumpugliaitpublicincludesfunctions.php:847) in D:Inetpubwebskiteforumpugliaitpublicincludespage_header.php on line 1230


-----------------------------------
Mighty Gorgon
Mon 16 Oct, 2006 01:40

Re: Help Home Page Debug String
-----------------------------------
The problem is simple... your server is Windows based. :lol:

Try to use another PHP package to test XS on a local PC.


-----------------------------------
BisKyt
Tue 17 Oct, 2006 13:54

Re: Help Home Page Debug String
-----------------------------------
I'm also getting this problem. I don't have the option of using a different OS or web server package, is there any fix for this error? It's only started happening recently!

Regards,
T


-----------------------------------
difus
Tue 17 Oct, 2006 14:50

Re: Help Home Page Debug String
-----------------------------------
[quote user="BisKyt" post="3897"]I'm also getting this problem. I don't have the option of using a different OS or web server package, is there any fix for this error? It's only started happening recently!

Regards,
T[/quote]

what web server package you using ?


-----------------------------------
BisKyt
Mon 06 Nov, 2006 13:33

Re: Help Home Page Debug String
-----------------------------------
[quote]what web server package you using ?[/quote]

Hi difus,

I'm using the following: plesk 7.6, IIS6. MYSQL 4.x, windows server 2003.

Any help greatly appreciated.

BisKyt


-----------------------------------
difus
Mon 06 Nov, 2006 14:36

Re: Help Home Page Debug String
-----------------------------------
download and install XAMPP or Wamp for win.it is free


-----------------------------------
BisKyt
Tue 14 Nov, 2006 19:32

Re: Help Home Page Debug String
-----------------------------------
That is not an option for me, as it is not my web server. It is a hosted site


-----------------------------------
difus
Wed 15 Nov, 2006 20:45

Re: Help Home Page Debug String
-----------------------------------
change the host.
is it free hosting ?


-----------------------------------
Skorpion
Thu 16 Nov, 2006 06:49

Re: Help Home Page Debug String
-----------------------------------
I think it's Aruba...


-----------------------------------
BisKyt
Tue 12 Dec, 2006 14:01

Re: Help Home Page Debug String
-----------------------------------
It's been a while since I had a chance to look in to this anymore...

I've found the problem (I think). It occurs when a user tries to enter their date of birth as a date before 1st January 1970.

Any page where the users age is used has the error and shows the debug string. The age field in the users posts show as 'Age: 2006'!

Is this likely to be caused by PHP, or by MySQL?

Thanks,
BisKyt


-----------------------------------
BisKyt
Tue 12 Dec, 2006 18:40

Possibly Found A Solution
-----------------------------------
I've done a little more research, and it seems to be a problem with PHP. Because the standard date functions in PHP use integers to calculate dates it seriously limits the date range that can be used.

In windows this range is 1970 - 2038. In Linux it is 1900 - 2038.  :evil: 

I'm not sure if this has been fixed in PHP 5.2. Does anybody know? My server is currently running PHP 4.3.1 and MySQL 4.1.7.

It looks as though using the ADOdb Date Library to replace the standard functions should fix the problem. Would it be possible to get this into a future release of phpbbXS/A69?

There are also some other possible solutions floating around.

Information can be found at the following links:

http://phplens.com/phpeverywhere/adodb_date_library

http://www.osticket.com/forums/showthread.php?t=2116&goto=nextnewest

http://www.bluehostforum.com/archive/index.php/t-414.html

BisKyt


-----------------------------------
Mighty Gorgon
Sun 24 Dec, 2006 21:43

Re: Help Home Page Debug String
-----------------------------------
Sorry, but I cannot add external libraries to the project... :roll:

Anyway it is really strange that dates are interpreted by Windows and not by PHP... :roll:

If you can get a solution for this, let us know.


