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

"No data has been recorded yet" when no data from the day #9636

Closed
candaj opened this issue Jan 26, 2016 · 10 comments
Closed

"No data has been recorded yet" when no data from the day #9636

candaj opened this issue Jan 26, 2016 · 10 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. worksforme The issue cannot be reproduced and things work as intended.

Comments

@candaj
Copy link

candaj commented Jan 26, 2016

I've noticed that when i upgrade piwik from 2.3.0 to 2.15.0 (and after on 2.16.0b6).

When i open the default page of piwik (i.e. just index.php) if a site have no visit, the is no more an empty dashboard but just the page with "No data has been recorded yet" with no option to choose the range date for example. But if i inject data (with VisitorGenerator plugin for example) the dashboard will be back.

I don't know if it's a bug or not but i think it's more user friendly if we have an empty dashboard and if we can pick the range.

Is there a workaround for avoid this problem ?

Regards,

@sgiehl
Copy link
Member

sgiehl commented Jan 26, 2016

This page should only be displayed as long as there wasn't any data tracked at all for the current selected website. As soon as the first data was tracked, that page automatically disappears.

@sgiehl sgiehl closed this as completed Jan 26, 2016
@sgiehl sgiehl added the answered For when a question was asked and we referred to forum or answered it. label Jan 26, 2016
@candaj
Copy link
Author

candaj commented Jan 26, 2016

@sgiehl , thanks for your answer. The problem is that i've data tracked for the selected website.
Lets me explain : for the range last90 i've that page on the index.php. BUT i've data if in database, i've data if i use the API and i've my dashboard if i use the plugin dashboard directly.

@sgiehl
Copy link
Member

sgiehl commented Jan 26, 2016

are you using javascript tracking or the log importer?

@candaj
Copy link
Author

candaj commented Jan 26, 2016

javascript tracking

@sgiehl
Copy link
Member

sgiehl commented Jan 26, 2016

Had a small look at the code. The query used to check if a site has no data is here:
https://github.com/piwik/piwik/blob/master/core/Tracker/Model.php#L420
I can't see a reason why it should return nothing if there is data in the log_visit table.

@candaj
Copy link
Author

candaj commented Jan 26, 2016

Interresting. When I execute the sql request on my db, I've empty row. But I've still data tracked on the "all websites dashboard" for a range of last90. The log_visit table is archived, isn't it ?

@sgiehl
Copy link
Member

sgiehl commented Jan 26, 2016

Have you enabled the option to remove old log data? By default the data won't be removed. But if so, it might be possible that there are no entries in the log tables for website that don't have recent data tracked. Guess we would need to extend the check for already archived data

@sgiehl sgiehl reopened this Jan 26, 2016
@sgiehl sgiehl added Bug For errors / faults / flaws / inconsistencies etc. and removed answered For when a question was asked and we referred to forum or answered it. labels Jan 26, 2016
@candaj
Copy link
Author

candaj commented Jan 26, 2016

Hum, no, the option to remove old log data is disabled.. I don't know the code, but maybe the core:update do a archive of current log in order to speedup or something ?

@tsteur
Copy link
Member

tsteur commented Jan 26, 2016

When you request the API to fetch data, can you make sure you fetch the correct idSite?

@mattab
Copy link
Member

mattab commented Mar 31, 2016

@candaj please re-open if you still experience this issue with Piwik 2.16.0

@mattab mattab closed this as completed Mar 31, 2016
@mattab mattab added worksforme The issue cannot be reproduced and things work as intended. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. labels Mar 31, 2016
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. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

4 participants