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

"Page URL not defined" message in Visitor Log #11257

Closed
Amenel opened this issue Jan 22, 2017 · 7 comments
Closed

"Page URL not defined" message in Visitor Log #11257

Amenel opened this issue Jan 22, 2017 · 7 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

@Amenel
Copy link

Amenel commented Jan 22, 2017

I have been seeing some "Page URL not defined" in the Visitor Log in the past few versions of Piwik.

I have not been able to identify the reasons why this happens nor the circumstances in which it happens, all the more since the same page may lead to that message and, at other times, yield a "normal" URL (see the attached image).

image 140

For all page visits for which the URL appears as not defined, the "Visitors in Real-time" widget will show the URL of the current page URL (e.g. "https://analytics.khalemy.com/index.php?module=CoreHome&action=index&idSite=1&period=range&date=last30#") as the URL of the page that has been visited, which is of course totally wrong.

I don't know whether the page protocol (HTTP vs HTTPS) has something to do with the issue or not.

Maybe that it's a configuration issue on my part, but I'm positive that this issue did not present itself earlier, for instance two or four years ago.

@collinbarrett
Copy link

I'm currently trying to debug this myself, and I ran across this article. All my sites and my Piwik install are only accessible via https, so I am trying to change from protocol-agnostic urls to specifying https as that author recommend. Will see if that helps...

@collinbarrett
Copy link

Update: changing my javascript and image tracker Piwik urls to "https://" instead of just "//" does not (at least fully) resolve it. I still see many "Page URL not defined"s.

@mattab
Copy link
Member

mattab commented Feb 20, 2017

It's possible to find out the cause, and we would love to know as well / fully understand this issue.

In your visitor log for those "Page URL not defined" look at the date & time of those requests. Then look in your web server access log files for the piwik server. Look for lines containing "piwik.php" and containing the same IP address or visitor id that had this page url not defined. What are those log lines? please post them here. we'll investigate and maybe we can make this better

@mattab mattab added 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. labels Feb 20, 2017
@mattab mattab added this to the Priority Backlog (Help wanted) milestone Feb 20, 2017
@collinbarrett
Copy link

I'll try to trace this info down per your instructions. It'll probably take me a few days before I have a chance, though. Thanks!

@collinbarrett
Copy link

collinbarrett commented Feb 24, 2017

As an example, I had one visitor that had 72 actions on my site. Of those, about 64 of them show "Page URL not defined" in the Visitor Log. Here's a snapshot of their first five actions:

image

I traced the IP address and the exact time of those first five actions to the following nginx log entries. Note that I renamed "piwik.php" to "s.php" for my public site. Also note that I am using the proxy method to hide the url of my Piwik install which is why (I think) there are two records in the log for each action. The last bytes of the IPs are replaced with "0"s. My auth tokens are replaced with "MYTOKEN". I hope I have anonymized this enough... I recognize that my setup is somewhat complex, so it might not be a good use case for debugging. And the issue I am seeing might be due to my complex setup and not Piwik itself.

Here's the format of the nginx log entries:
log_format main '$remote_addr - $remote_user - $upstream_cache_status [$time_local] ' '"$request" $status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"';

And the log entries themselves:

41.35.000.000 - - - BYPASS [24/Feb/2017:12:59:42 -0600] "GET /s.php?ping=1&idsite=3&rec=1&r=933972&h=20&m=59&s=41&url=https%3A%2F%2Ffilterlists.com%2F&urlref=https%3A%2F%2Ffilterlists.com%2F&_id=85aab28741efc426&_idts=1487952165&_idvc=2&_idn=0&_refts=1487962436&_viewts=1487962436&_ref=https%3A%2F%2Fwww.google.com.eg%2F&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=0&gears=0&ag=0&cookie=1&res=1440x900&gt_ms=3&pv_id=B0iPen HTTP/1.1" 200 54 "https://filterlists.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" "41.35.000.000" 2604:a880:0:1010::000:0000 - - - - [24/Feb/2017:12:59:42 -0600] "GET /piwik.php?cip=41.35.000.000&token_auth=MYTOKEN&ping=1&idsite=3&rec=1&r=933972&h=20&m=59&s=41&url=https%3A%2F%2Ffilterlists.com%2F&urlref=https%3A%2F%2Ffilterlists.com%2F&_id=85aab28741efc426&_idts=1487952165&_idvc=2&_idn=0&_refts=1487962436&_viewts=1487962436&_ref=https%3A%2F%2Fwww.google.com.eg%2F&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=0&gears=0&ag=0&cookie=1&res=1440x900&gt_ms=3&pv_id=B0iPen& HTTP/1.1" 200 86 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" "2604:a880:0000:1010:0000:0000:0000:0000" 41.35.000.000 - - - BYPASS [24/Feb/2017:12:59:37 -0600] "GET /s.php?ping=1&idsite=3&rec=1&r=106076&h=20&m=59&s=36&url=https%3A%2F%2Ffilterlists.com%2F&urlref=https%3A%2F%2Ffilterlists.com%2F&_id=85aab28741efc426&_idts=1487952165&_idvc=2&_idn=0&_refts=1487962436&_viewts=1487962436&_ref=https%3A%2F%2Fwww.google.com.eg%2F&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=0&gears=0&ag=0&cookie=1&res=1440x900&gt_ms=3&pv_id=B0iPen HTTP/1.1" 200 54 "https://filterlists.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" "41.35.000.000" 2604:a880:0:1010::000:0000 - - - - [24/Feb/2017:12:59:37 -0600] "GET /piwik.php?cip=41.35.000.000&token_auth=MYTOKEN&ping=1&idsite=3&rec=1&r=106076&h=20&m=59&s=36&url=https%3A%2F%2Ffilterlists.com%2F&urlref=https%3A%2F%2Ffilterlists.com%2F&_id=85aab28741efc426&_idts=1487952165&_idvc=2&_idn=0&_refts=1487962436&_viewts=1487962436&_ref=https%3A%2F%2Fwww.google.com.eg%2F&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=0&gears=0&ag=0&cookie=1&res=1440x900&gt_ms=3&pv_id=B0iPen& HTTP/1.1" 200 86 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" "2604:a880:0000:1010:0000:0000:0000:0000" 41.35.000.000 - - - BYPASS [24/Feb/2017:12:59:28 -0600] "GET /s.php?ping=1&idsite=3&rec=1&r=152003&h=20&m=59&s=27&url=https%3A%2F%2Ffilterlists.com%2F&urlref=https%3A%2F%2Ffilterlists.com%2F&_id=85aab28741efc426&_idts=1487952165&_idvc=2&_idn=0&_refts=1487962436&_viewts=1487962436&_ref=https%3A%2F%2Fwww.google.com.eg%2F&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=0&gears=0&ag=0&cookie=1&res=1440x900&gt_ms=3&pv_id=B0iPen HTTP/1.1" 200 54 "https://filterlists.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" "41.35.000.000" 2604:a880:0:1010::000:0000 - - - - [24/Feb/2017:12:59:28 -0600] "GET /piwik.php?cip=41.35.000.000&token_auth=MYTOKEN&ping=1&idsite=3&rec=1&r=152003&h=20&m=59&s=27&url=https%3A%2F%2Ffilterlists.com%2F&urlref=https%3A%2F%2Ffilterlists.com%2F&_id=85aab28741efc426&_idts=1487952165&_idvc=2&_idn=0&_refts=1487962436&_viewts=1487962436&_ref=https%3A%2F%2Fwww.google.com.eg%2F&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=0&gears=0&ag=0&cookie=1&res=1440x900&gt_ms=3&pv_id=B0iPen& HTTP/1.1" 200 86 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" "2604:a880:0000:1010:0000:0000:0000:0000" 41.35.000.000 - - - BYPASS [24/Feb/2017:12:59:23 -0600] "GET /s.php?ping=1&idsite=3&rec=1&r=620856&h=20&m=59&s=22&url=https%3A%2F%2Ffilterlists.com%2F&urlref=https%3A%2F%2Ffilterlists.com%2F&_id=85aab28741efc426&_idts=1487952165&_idvc=2&_idn=0&_refts=1487962436&_viewts=1487962436&_ref=https%3A%2F%2Fwww.google.com.eg%2F&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=0&gears=0&ag=0&cookie=1&res=1440x900&gt_ms=3&pv_id=B0iPen HTTP/1.1" 200 54 "https://filterlists.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" "41.35.000.000" 2604:a880:0:1010::000:0000 - - - - [24/Feb/2017:12:59:23 -0600] "GET /piwik.php?cip=41.35.000.000&token_auth=MYTOKEN&ping=1&idsite=3&rec=1&r=620856&h=20&m=59&s=22&url=https%3A%2F%2Ffilterlists.com%2F&urlref=https%3A%2F%2Ffilterlists.com%2F&_id=85aab28741efc426&_idts=1487952165&_idvc=2&_idn=0&_refts=1487962436&_viewts=1487962436&_ref=https%3A%2F%2Fwww.google.com.eg%2F&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=0&gears=0&ag=0&cookie=1&res=1440x900&gt_ms=3&pv_id=B0iPen& HTTP/1.1" 200 86 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" "2604:a880:0000:1010:0000:0000:0000:0000" 41.35.000.000 - - - BYPASS [24/Feb/2017:12:59:18 -0600] "GET /s.php?ping=1&idsite=3&rec=1&r=989997&h=20&m=59&s=17&url=https%3A%2F%2Ffilterlists.com%2F&urlref=https%3A%2F%2Ffilterlists.com%2F&_id=85aab28741efc426&_idts=1487952165&_idvc=2&_idn=0&_refts=1487962436&_viewts=1487962436&_ref=https%3A%2F%2Fwww.google.com.eg%2F&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=0&gears=0&ag=0&cookie=1&res=1440x900&gt_ms=3&pv_id=B0iPen HTTP/1.1" 200 54 "https://filterlists.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" "41.35.000.000" 2604:a880:0:1010::000:0000 - - - - [24/Feb/2017:12:59:18 -0600] "GET /piwik.php?cip=41.35.000.000&token_auth=MYTOKEN&ping=1&idsite=3&rec=1&r=989997&h=20&m=59&s=17&url=https%3A%2F%2Ffilterlists.com%2F&urlref=https%3A%2F%2Ffilterlists.com%2F&_id=85aab28741efc426&_idts=1487952165&_idvc=2&_idn=0&_refts=1487962436&_viewts=1487962436&_ref=https%3A%2F%2Fwww.google.com.eg%2F&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=0&gears=0&ag=0&cookie=1&res=1440x900&gt_ms=3&pv_id=B0iPen& HTTP/1.1" 200 86 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" "2604:a880:0000:1010:0000:0000:0000:0000"

@huang0808
Copy link

@mattab @Sija our website display this issues. Have you methods to fix it? thanks.

@mattab
Copy link
Member

mattab commented Jun 12, 2020

Thanks for contributing to this issue. As it has been a few months since the last activity and we believe this is likely not an issue anymore, we will now close this. If that's not the case, please do feel free to either reopen this issue or open a new one. We will gladly take a look again!

@mattab mattab closed this as completed Jun 12, 2020
@mattab mattab added the worksforme The issue cannot be reproduced and things work as intended. label Jun 12, 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. 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