Forum: Javascript error
mphills 3689 days ago | Hi,
Ive installed php on a windows 2003 sp2 server with iis 6 and all works fine for a while. Then for some strange reason i get a javascript error Message: Syntax error Line: 21 Char: 19 Code: 0 URI: http://abcweb:8085/ Message: 'g_sCurrentView' is undefined Line: 33 Char: 2 Code: 0 URI: http://abcweb:8085/js/jawstats.js? Can anyone help me at all as its driving me NUTS!!! Thanks in advance |
joncombe 3689 days ago | Can you email me your JAWStats config.php file please? (jon@jaws....) |
joncombe 3689 days ago | I think I've found the problem and it's my fault. I will make sure it is fixed in the next release which is only a few days away, but in the mean time here is my solution. It is being caused by me using PHPs "short" opening tags in places, eg. "<?=". To use these, a flag needs to be set within the php.ini file. Solution 1) Change the php.ini file to allow short tags. See: http://uk3.php.net/manual/en/ini.core.php#ini.short-open-tag Solution 2) Open the JAWStats index.php file and do a search and replace. Look for: "<?=" (minus the quotes) Replace with: "<?php echo " (minus the quotes, keep the trailing space) Solution #2 seems easier to me. Please let me know how you get on. |
tehprince 3689 days ago | I went nutty trying to figure this out, I wound up changing all the short tags to include "echo", which seemed to solve the problem.
I'll try this solution, thanks joncombe! |
Participate in this discussion
You must be logged in to post in this thread.
Version 0.7 beta available now
Released 25th Janury 2009Try 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!