Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
albig opened this issue Apr 24, 2014 · 7 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@albig
Copy link

albig commented Apr 24, 2014

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.

@albig
Copy link
Author

albig commented Apr 24, 2014

Attachment: Screenshot of All Websites Dashboard
piwik_bug_multisite_empty.jpg

@tsteur
Copy link
Member

tsteur commented May 5, 2014

In 39f8fe5: refs #5038 could not reproduce your issue so far but this might fix the revenue error

@albig
Copy link
Author

albig commented May 5, 2014

Replying to Thomas Steur:

In 39f8fe5: >> refs #5038 could not reproduce your issue so far but this might fix the revenue error

Yes, this fix my issue. Thank you.

I still don't understand what this has to do with the group field, but anyhow.

@tsteur
Copy link
Member

tsteur commented May 5, 2014

Thx for the fast feedback! We sum the revenue of all websites having the same group to display an aggregated result for each group... There was already a fallback in case there is no revenue for a site but apparently it didn't work...

@anonymous-matomo-user
Copy link

I have this same issue, a blank page for "All Websites". Not sure if this started after the upgrade to 2.2.0 or just now with the upgrade to 2.2.1.

I have tried changing the setting for the main site to "Not an ecommerce site" but this hasn't made a difference.

I have tried manually editing the site ID in the URL but this doesn't make a difference:

/index.php?module=MultiSites&action=index&idSite=1&period=day&date=today

I don't have any Javascript errors, this is the last part of the page:

<div class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" id="ui-datepicker-div"></div>

Not sure if this ticket is best re-opened or if I should open a new ticket for this issue?

@mattab
Copy link
Member

mattab commented May 6, 2014

@chris please create a new ticket

@anonymous-matomo-user
Copy link

Replying to matt:

@chris please create a new ticket

Thanks, have done, ticket:5102

@albig albig added this to the 2.2.1 - Piwik 2.2.1 milestone Jul 8, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

4 participants