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

controlsat19 days ago

When I select the icon or badge from the list, I get this error. Any ideas?

TypeError: Cannot read properties of undefined (reading 'replace')
    at d2 (ht3.:8082/assets/index-BdbJhsa0.js:239:29222)
    at nL (113.:8082/assets/index-BdbJhsa0.js:38:17031)
    at gK (ht.113.:8082/assets/index-BdbJhsa0.js:40:44104)
    at mK (h113.:8082/assets/index-BdbJhsa0.js:40:39822)
    at Wne (ht.113.:8082/assets/index-BdbJhsa0.js:40:39748)
    at SM (h8.113.:8082/assets/index-BdbJhsa0.js:40:39598)
    at V1 (h48.113.:8082/assets/index-BdbJhsa0.js:40:35960)
    at MB (ht113.:8082/assets/index-BdbJhsa0.js:40:36765)
    at Ap (h8082/assets/index-BdbJhsa0.js:38:3288)
    at h4.:8082/assets/index-BdbJhsa0.js:40:34286
Anton Tananaev19 days ago

Are you using the latest official release without any code modifications?

controlsat19 days ago

I am using official version 6.6 without code modification except traccar.xml to work with mariadb.

Anton Tananaev19 days ago

My guess would be that you have invalid navigationAppLink set.

controlsat17 days ago

to close the case; the problem was with the database.

Anton Tananaev17 days ago

What was the problem with the database?

DanylovVG17 days ago

when i'm update, this error check too

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

DanylovVG15 days ago

error in old db, make new and all working

Luis Lepe12 days ago

You where right Anton, I had the same problem yesterday and I fixed it by adding the "Navigation app Link" in the server attributes.
My mistake was adding the "Navigation app title" without setting the "Navigation app Link"

Just so anyone getting this error might get an easier time than I did, I had to dig thru the code to partially understand what was happening.

Anton Tananaev12 days ago

What was the purpose of adding one without the other?

Luis Lepe11 days ago

A lack of knowledge.

I saw in vite.config.js that title an description where needed for the manifest so I added those and missed the navigation link configuration since it was not mentioned in that file.

Anton Tananaev11 days ago

"Navigation app title" is not mentioned nor referenced anywhere in the vite config. It seems like you confused it with the server name or description.

https://www.traccar.org/branding-web/

Luis Lepe11 days ago

So I did, thanks for clearing the misunderstanding.