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
in realtime map, display warning if there are no visits because of missing latitude/longitude #6704
Comments
Hi @alphaonex86 which version do you use? does it work for you on the http://demo.piwik.org ? |
Hello, |
I presume it's based ont this query, at the end the exact reply to replay and reproduct the bug: The reply show more than 80+ entry: |
Hi @alphaonex86 do you still have the issue in the latest Piwik release? (if so would you mind posting a screenshot) |
Yes the issue remain active :( |
i'm wondering if it's same bug as in: #6703 Does it maybe work when you load Piwik over HTTP? |
Don't work in https and http. |
@alphaonex86 would it be possible to get access to your PIwik server? if you can email me matt att piwik.org your piwik URL + login + password + link to this issue, it would really help. Thanks |
Send by email |
@alphaonex86 thanks for sending the access. Reproduced that the real time map doesn't work. it's strange because the data received by the API looks correct and works. So there is a problem in the JS somewhere. there is no error logged... the normal non-real time map works well too. If anyone has also this issue of Real time map does not work while the other maps in |
It's the seconds hurge and problematic bug in my case. Hardened and stabilise the code is very usefull for large scale usage. And don't keep years/months the bug open without any work on it. |
Same with 2.13 |
Any way to have priority for this bug? |
@alphaonex86 I took a look at your Piwik using the credentials you sent to matt. The problem is that the realtime map requires visits to have latitude/longitude data, but none of them do. I looked at your geolocation settings, and it looks like you only have the country database. Can you use the city database? |
Then the first step is do a warning on realtime map. I will try that's. |
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/. |
👍 When we detect that the user is not using the city database, we could display a warning notification above the real time map eg. |
Yes, and like you do when only have country but not city, resolv from country database. |
if(removeOldVisits){visitSymbols.remove(function(r){if(r.lastActionTimestamp<oldest)_removed++;return r.lastActionTimestamp<oldest;});} |
@alphaonex86 I checked your realtime map (using the credentials you provided to @mattab) and it looks fine (viewed on Chrome). I can email you a screenshot if you'd like. |
@diosmosis it's the problem, sometime work, other time don't work. |
To try and diagnose the issue, you'll have to find the result of a specific XHR request when the map isn't working. To do this when you see the error, do the following:
If there's no error in the response, then look at your webserver logs & the Piwik log file (if you've got logging enabled). Hopefully there will be an error somewhere. |
[28-May-2015 01:26:31 UTC] PHP Fatal error: Call to undefined method Piwik\DataTable\Map::getMetadata() in /home/first-world.info/stat/plugins/Bandwidth/Bandwidth.php on line 117 On the log I see only that's. |
That error is unrelated. Please follow the steps in my comment when the realtime map is not working. |
Ok. Can you at least put and if fonction undefined where mentionned skip the code part to prevent error? |
You can add this yourself if you don't want to investigate the random issue, but we won't hide a possible bug in an actual release. |
issue was renamed and scope reduced to: The notification would be displayed when the wrong Geo ip database is used, and would suggest user to setup the right geoip database instead (with a link to Administration > Geo location settings). |
My case Switched to Reason
And Ajax Response with "Default" Location Provider
|
Hello,
My real time map don't work since lot of version (only the first implementation work).
There is no data for this report but live visitor work.
https://WWWWW/index.php?period=range&idSite=9&segment=&date=last30&format=json&showRawMetrics=1&module=API&method=Live.getLastVisitsDetails&filter_limit=100&showColumns=latitude%2Clongitude%2Cactions%2ClastActionTimestamp%2CvisitLocalTime%2Ccity%2Ccountry%2CreferrerType%2CreferrerName%2CreferrerTypeName%2CbrowserIcon%2CoperatingSystemIcon%2CcountryFlag%2CidVisit%2CactionDetails%2CcontinentCode%2Cactions%2Csearches%2CgoalConversions%2CvisitorId%2CuserId&minTimestamp=-1
Have content.
Cheers,
The text was updated successfully, but these errors were encountered: