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

Test button in segment editor might throw an error #20532

Closed
tdrzewosz opened this issue Mar 30, 2023 · 7 comments · Fixed by #20542
Closed

Test button in segment editor might throw an error #20532

tdrzewosz opened this issue Mar 30, 2023 · 7 comments · Fixed by #20542
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@tdrzewosz
Copy link

Hello,

I can't test a segment. If I click the test button, I get this error

Error: Action 'getLastVisitsDetails' not found in the module 'CoreHome'

Can you help me, please? Thanks

@sgiehl
Copy link
Member

sgiehl commented Mar 30, 2023

Hi @tdrzewosz.
Does that fail on any page, or does this maybe only not work when you are currently on a specific reporting page?
If so might be good to past the url/hash here, so we are easier able to reproduce and fix the issue.
Thanks.

@tdrzewosz
Copy link
Author

Hi, it does fail on any page. I click the "Test" Button and I get the error.

For example... /index.php?module=CoreHome&action=index&date=yesterday&period=day&idSite=5#?idSite=5&period=day&date=yesterday&category=General_Visitors&subcategory=General_RealTime

Bildschirmfoto 2023-03-30 um 12 01 09

@sgiehl
Copy link
Member

sgiehl commented Mar 30, 2023

Are you maybe able to look up the url that is requested after you click the test button in the browser console? There might be a problem with the method that generates the test url.

@tdrzewosz
Copy link
Author

Bildschirmfoto 2023-03-30 um 13 17 15

@sgiehl
Copy link
Member

sgiehl commented Mar 30, 2023

The method for generating this url, looks a bit weird to me. I've created a change here: https://github.com/matomo-org/matomo/compare/m20532
As I'm not able to reproduce your problem yet, I'm unable to say if it will fix it. If you are able to do it you can try to apply the changes in your installation to test if it works. After updating the file, it might be needed to clear the cache of Matomo as well as your browser cache.

@tdrzewosz
Copy link
Author

It's working now. Thanks

@sgiehl
Copy link
Member

sgiehl commented Mar 31, 2023

Thanks for the feedback. I'll create a PR so this gets fixed for everyone in Matomo 5.

@sgiehl sgiehl reopened this Mar 31, 2023
@sgiehl sgiehl added the Bug For errors / faults / flaws / inconsistencies etc. label Mar 31, 2023
@sgiehl sgiehl added this to the 5.0.0 milestone Mar 31, 2023
@sgiehl sgiehl self-assigned this Mar 31, 2023
@sgiehl sgiehl changed the title Error: Action 'getLastVisitsDetails' not found in the module 'CoreHome' Test button in segment editor might throw an error May 16, 2023
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.

2 participants