I'm using Piwik on [http://www.yaml-fuer-drupal.de/], but since v0.4 I get the below error. For debugging purposes I copied the uncompressed file in the root folder. Please take a look what's going wrong.
Components is not defined http://example.com/piwik/piwik.js Line 26
Attachment: Screenshot with error
Can you tell us what browser version you're using and provide steps to reproduce the error?
The closest I get to that error is using Firefox 3 with Web Developer and Firebug extensions, and I use Web Developer's "View Generated Source". It reports:
[Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: file:///usr/lib/xulrunner-184.108.40.206/components/nsLoginManager.js :: anonymous :: line 282" data: no] file:///usr/lib/xulrunner-220.127.116.11/components/nsLoginManager.js Line 282
The reduced test case is so trivial that it's clearly an interaction bug with the extensions.
Note to self: https://bugzilla.mozilla.org/show_bug.cgi?id=382075
Firefox 3.0.11 with Firebug and Web Developer and others...
Unless the tracking is broken, can we close this ticket? Your site otherwise loads fine with IE7, Opera, Safari, and FF3.
Don't you think that this bug should be fixed in Piwik? I do not like to see errors in Firebug. Google Analytics also do not have such issue and other Piwik version, too. Should I remove Piwik from the site?
are you sure your browser has the right file in cache? please delete your cache and try again. because when we changed the content of the piwik.js it might not have be forced-reload depending on your server configuration cache settings..
Try the piwik.js in svn.
However, this is technically a bug in Firefox's chrome. If you disable your Firefox extensions, the error shouldn't even appear in Firefox's Error Console.
I'm not sure if the error is related to the above linked bugzilla case. I tested the view generated source on bugzilla page and the error is shown, nevertheless the Piwik error is shown on page load - it have nothing to do with generated source.
If you see the error in Firefox without any add-ons installed you should really fix/workaround it. Until we do not have a valid bug case linked, this is not closed.
For sure I cleared the caches more than once everywhere and clicked shift+reload to make sure all files are latest in the browser. Firebug shows me the new file is downloaded... and I can see the source of the new version JS file.
Have you changed something or why should I try the svn version?
The patch in http://dev.piwik.org/trac/changeset/1217/trunk/js/piwik.js seem to have this issue fixed. thx.