Help Home Page Debug String


Subject: 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

Profile PM  
Subject: 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.

Subject: 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

Profile PM  
Subject: Re: Help Home Page Debug String
BisKyt wrote: [View Post]
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


what web server package you using ?

Subject: Re: Help Home Page Debug String
Quote:
what web server package you using ?


Hi difus,

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

Any help greatly appreciated.

BisKyt

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

Subject: 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

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

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

Subject: 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

Profile PM  
Subject: 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/show...goto=nextnewest

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

BisKyt

Profile PM  
Subject: 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.


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.4575s (PHP: 33% SQL: 67%)
SQL queries: 29 - Debug Off - GZIP Enabled