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

going to 'All Websites' dashboard and selecting a date range and clicking a site results in error message #15238

Closed
tsuibin opened this issue Dec 5, 2019 · 5 comments · Fixed by #16784
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@tsuibin
Copy link

tsuibin commented Dec 5, 2019

Preface
The system version is 3.13.0, and the update time is 2019.11.26-27. The system has been updated and the server has been migrated

After selecting a date range from all websites dashboard, clicking on a site in the list of sites will report a time period or an incoming time parameter error"error: date format must be: yyyy-mm-dd, or 'today' or 'yesterday' or any keyword supported by the strtotime function (see http://php.net/strtotime for more information):" , Data can only be displayed if the date range is re-selected;

图片1
图片2

@tsteur
Copy link
Member

tsteur commented Dec 5, 2019

@tsuibin I can't reproduce this issue. Can you reproduce this issue on https://demo.matomo.org/ ?

Any chance, that the selected date range includes a date before you created the website in Matomo?

Say you created the website in Matomo on 25 Oct 2019, and you select a date range starting from 10 January 2019. Unfortunately, I think it is only possible to see when a site was created in the database in the site table. We could maybe test this another way... can you reproduce the same issue if you select a date range only for the last 2 or 3 days for example (assuming your site was created more than 2 or 3 days ago). So basically try to select a date range eg 5 Dec 2019 - 6 Dec 2019

@nztim
Copy link

nztim commented Dec 19, 2019

I have this problem too and it occurs when the date range is valid. The query string created is as follows:

module=CoreHome&action=index&date=2019-11-13%2C2019-12-20&period=range&idSite=6#?idSite=6&period=range&date=2019-11-13%252C2019-12-20&segment=&category=Dashboard_Dashboard&subcategory=1

When I replace the %2C and %252C with commas it appears to work correctly, so I guess there is some double and triple URL-encoding somewhere.

Edit: and I can't reproduce it on the Matomo demo site :(

@tsteur
Copy link
Member

tsteur commented Dec 19, 2019

@nztim are you using the latest version of Matomo? Can you reproduce this on https://demo.matomo.org/ ?

@nztim
Copy link

nztim commented Dec 19, 2019

Matomo v3.13.0 and I found out how to reproduce it on the demo site.

If you go to the 'All Websites' page and select a date range you'll see the problematic query string is produced. When you then select a website the query fails and the error is shown.

@tsteur
Copy link
Member

tsteur commented Dec 19, 2019

Thanks for that!

@tsteur tsteur added the Bug For errors / faults / flaws / inconsistencies etc. label Dec 19, 2019
@tsteur tsteur added this to the 4.1.0 milestone Dec 19, 2019
@mattab mattab changed the title after selecting the date range in "all websites dashboard", click a website reposrt an error going to 'All Websites' dashboard and selecting a date range and clicking a site results in error message Jan 21, 2020
@sgiehl sgiehl self-assigned this Nov 24, 2020
@mattab mattab modified the milestones: 4.1.0, 4.2.0 Dec 21, 2020
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

Successfully merging a pull request may close this issue.

5 participants