Forum: dtMaxDate undefined - Causes IE6-8 Error


« Back To Thread List

3905 days ago
This is a recap of my previous post because it did not have an informative title. I installed JAWStats on my server. Everything works on Chrome and FF. When I attempt to check the site with IE6-8 I get the following Error:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Timestamp: Fri, 30 Oct 2009 22:11:13 UTC

Message: 'dtMaxDate' is undefined
Line: 3261
Char: 28
Code: 0

After messing around with the source code I found that the only difference between my site and the jawstat demo site was that the g_bUseStaticXML variable was set to true. Once I manually set this to true the error disappeared but no data showed on my site. This is a big bug, I am surprised no one else has mentioned it when running IE. Please get back to me as soon as possible so that we can resolve this issue.
3905 days ago
Well I figured it out. I am running PHP v5.3 and the function split has been deprecated. As a result clsAWStats.php generates errors when it produces an xml file. While Chrome and Firefox ignore these errors Internet Explorer (IE) does not. On line 208 of the file I changed split to explode and everything was fixed.

« Back To Thread List

Participate in this discussion


You must be logged in to post in this thread.


Version 0.7 beta available now

Released 25th Janury 2009

Try the online demo or download now.

Latest JAWStats News:

Version 0.7 Beta Released

Sprechen Sie Deutsch? Multi-lingual JAWStats v0.7 is finally here.

posted 25th Jan '09. read more »

Help JAWStats

Please donate a dollar (or more!) towards the hosting costs for this site. This money doesn't go anywhere near my pocket, it is purely used against my hosting bill.


Get $50 off your webhosting

You could do far worse than choose Dreamhost. I've used them for 6 years and they're great. Simply enter the promo code: JAWSTATS on signup!