TypeError: Cannot read properties of undefined (reading 'latitude')

yanek2 years ago

Hi,

today I installed traccar as standalone on Raspberry Pi and I have problem with generating combined report, after pressing Show button error message appears. I tried everything? New clean database, deleting all logs from tc_positions without (=0) lat/long values.
I've got one tracker connected with less than 10 "pings".
I checked it on Chrome, Edge, Android Traccar dashboard app, allways the same. Generating report with day without data (yesterday) works ok.
Anyone can help?

Full error code:

TypeError: Cannot read properties of undefined (reading 'latitude')
    at [server]static/js/main.6cd3a572.js:178:3303
    at Array.map ()
    at [server]static/js/main.6cd3a572.js:178:3225
    at Array.flatMap ()
    at cw ([server]static/js/main.6cd3a572.js:178:3204)
    at Mo ([server]static/js/main.6cd3a572.js:2:681543)
    at Ds ([server]static/js/main.6cd3a572.js:2:693231)
    at Ml ([server]static/js/main.6cd3a572.js:2:739539)
    at Sc ([server]static/js/main.6cd3a572.js:2:727762)
    at yc ([server]static/js/main.6cd3a572.js:2:727690)

Version 5.8

Anton Tananaev2 years ago

Deleting data from tc_positions is likely whats breaking the report.

Have you tried the preview version?

yanek2 years ago

Deleting data from tc_positions was last step, so before it it was the same (I think that pings with lat long = 0 are problem, but no)

If by preview version you mean demo on demo server, yes I tried first my tracker on demo3 and it's working fine I can make combined report there.

Anton Tananaev2 years ago

No, I meant this preview version:

https://www.traccar.org/preview/

yanek2 years ago

Anton, thanks! I downloaded preview Linux ARM 64, connected to the same DB (postgresql) and now combined reports works fine :)
I hope my donation will be enough for some beer for you.

Anton Tananaev2 years ago

Thanks for the donation :)