Ticket #800 (closed Bug: invalid)

Opened 3 years ago

Last modified 3 years ago

Components is not defined

Reported by: hass Owned by:
Priority: critical Milestone: Piwik 0.4.1
Component: Core Keywords:
Cc: Sensitive:

Description

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

Attachments

piwik_component_not_defined.png Download (24.5 KB) - added by hass 3 years ago.
Screenshot with error

Change History

Changed 3 years ago by vipsoft

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-1.9.0.11/components/nsLoginManager.js :: anonymous :: line 282"  data: no]
file:///usr/lib/xulrunner-1.9.0.11/components/nsLoginManager.js
Line 282

The reduced test case is so trivial that it's clearly an interaction bug with the extensions.

<html><head><script type="text/javascript">
var Piwik = (function () {
        return {
                getTracker : function () {
                        return {
                                trackPageView : function () {},
                        };
                }
        };
})();
</script></head><body></body></html>

Changed 3 years ago by vipsoft

Changed 3 years ago by hass

Firefox 3.0.11 with Firebug and Web Developer and others...

Changed 3 years ago by hass

Screenshot with error

Changed 3 years ago by vipsoft

Unless the tracking is broken, can we close this ticket? Your site otherwise loads fine with IE7, Opera, Safari, and FF3.

Changed 3 years ago by hass

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?

Changed 3 years ago by matt

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..

Changed 3 years ago by vipsoft

  • status changed from new to closed
  • resolution set to invalid

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.

Changed 3 years ago by hass

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?

Changed 3 years ago by hass

The patch in  http://dev.piwik.org/trac/changeset/1217/trunk/js/piwik.js seem to have this issue fixed. thx.

Note: See TracTickets for help on using tickets.