Error at IE7

When visiting a site with included piwik.js I got the following error (translated):

"A runtime error occured.
Do you want to start debug mode?

Line: 13
Error: The object doesn’t support this property or method."

Debugging tells me it’s the following part:
if(a(h.javaEnabled)&&h.javaEnabled())

I think there are the brackets missing, aren’t they?

This error does not occure with FF or IE8 or Chrome.

Header of the piwik.js file:
/*

Anyone with the same behavior?

use this version of piwik.js: http://dev.piwik.org/trac/export/3717/trunk/piwik.js

Thanks vipsoft, this fixed it!

I encountered the very same problem and vipsoft solution did work indeed…

For those that might not completely get it, the piwik tracking code that you place in tracked pages looks like this:


<!-- Piwik --> 
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://stats.domain.com/" : "http://stats.domain.com/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://stats.domain.com/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Tag -->

In red, you see it calls the piwik.js file located in you piwik solution, so, the easiest way to fix the problem (I assumed) is to download the .js file referenced in above vipsoft comment and place it in your piwik deployement directory, replacing the existing piwik.js file out there…

Thank vipsoft !

One question though: will it be fixed in the next Piwik release ?

yes