Error at IE7

(haggis) #1

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:

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?

(vipsoft) #2

use this version of piwik.js:

(haggis) #3

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) ? "" : "");
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);
} catch( err ) {}
</script><noscript><p><img src="" 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 ?

(vipsoft) #5