Skip to content

All Websites Dashboard doesn't list websites if one has the group field filled (Piwik 2.2.0) #5038

@albig

Description

@albig

We just upgraded our Piwik from 2.1.0 to 2.2.0.

After Upgrade the "All Websites Dashboard" doesn't list any website. A javascript error is thrown. Firebug stopps with Message "revenue is null" in plugins/MultiSites/angularjs/dashboard/dashboard-model.js:75 (see screenshot).

Chromium Console reports the following:

TypeError: Cannot read property 'length' of null
    at http://mypiwik/index.php?module=Proxy&action=getCoreJs&cb=51c3b0643d6faafd63f78ae7ea23db85:1632:241
    at Array.forEach (native)
    at Object.r [as forEach] (http://mypiwik/index.php?module=Proxy&action=getCoreJs&cb=51c3b0643d6faafd63f78ae7ea23db85:223:280)
    at http://mypiwik/index.php?module=Proxy&action=getCoreJs&cb=51c3b0643d6faafd63f78ae7ea23db85:1632:49
    at Object.r [as forEach] (http://mypiwik/index.php?module=Proxy&action=getCoreJs&cb=51c3b0643d6faafd63f78ae7ea23db85:223:386)
    at calculateMetricsForEachGroup (http://mypiwik/index.php?module=Proxy&action=getCoreJs&cb=51c3b0643d6faafd63f78ae7ea23db85:1632:10)
    at createGroupsAndMoveSitesIntoRelatedGroup (http://mypiwik/index.php?module=Proxy&action=getCoreJs&cb=51c3b0643d6faafd63f78ae7ea23db85:1635:71)
    at Object.model.updateWebsitesList (http://mypiwik/index.php?module=Proxy&action=getCoreJs&cb=51c3b0643d6faafd63f78ae7ea23db85:1637:235)
    at http://mypiwik/index.php?module=Proxy&action=getCoreJs&cb=51c3b0643d6faafd63f78ae7ea23db85:1646:346
    at B (http://mypiwik/index.php?module=Proxy&action=getCoreJs&cb=51c3b0643d6faafd63f78ae7ea23db85:310:5) index.php?module=Proxy&action=getCoreJs&cb=51c3b0643d6faafd63f78ae7ea23db85:301

This happens only, if one website has the piwik_site.group-field filled! Don't ask me why and where we use this field. I don't know it ;-) We have not one website using the ecommerce functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFor errors / faults / flaws / inconsistencies etc.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions