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

Overlay doesn't work when tracking script is ""js/index.php" #7684

Closed
bastibeckr opened this issue Apr 15, 2015 · 2 comments
Closed

Overlay doesn't work when tracking script is ""js/index.php" #7684

bastibeckr opened this issue Apr 15, 2015 · 2 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.

Comments

@bastibeckr
Copy link

It seems that Overlay does only work when tracking-script is /js/piwik.js.

After clicking the overlay button, client.js can not be served (404-error).

After reading /js/README I decided to embed the tracking script via /js/index.php for some reason.
Overlay isn't a feature I use very frequently - it seemed broken, I blamed Apache/nginx-rewriting for this and planned to investigate deeper as soon as i got some spare time.
When the error also appeared on a second installation with completely different environment, i finally wanted to fix the problem.

The first request to overlay mode seems to load a blank page with just minimized Javascript:
/index.php?module=Overlay&action=notifyParentIframe

This script seems to build the framed page and tries to load client.js:

Broken (tracking via /js/index.php): /js/index.phpplugins/Overlay/client/client.js?v=1
Works (tracking via js/piwik.js): /plugins/Overlay/client/client.js?v=1

Hope this save someone else's time - i got mad debugging nginx-redirects in order to find a missing trailing slash or something like that : )

@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Apr 16, 2015
@mattab
Copy link
Member

mattab commented Jul 14, 2015

Thanks for the report @bastibeckr - I tried to reproduce but couldn't, it works for me even when tracking via /js/index.php, as can be seen in screenshot:
works

(the index.php request is /js/index.php)

Works on both firefox and chrome

can you still reproduce this bug with Piwik 2.14.0?

@mattab
Copy link
Member

mattab commented Jul 15, 2015

If you can reproduce this problem in 2.14.0 @bastibeckr please re-open the issue.

@mattab mattab closed this as completed Jul 15, 2015
@mattab mattab added the worksforme The issue cannot be reproduced and things work as intended. label Jul 15, 2015
@mattab mattab modified the milestone: Short term Sep 23, 2015
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. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

2 participants