Web interface refuses to load Traccar 4.9

Michał Piasecki 5 years ago

When I enter the web interface I get infinite loading.

Browser console shows this:

Uncaught ReferenceError: ol is not defined
    <anonymous> https://***.com/app.min.js:302
    ExtJS 9
    <anonymous> https://***.com/app.min.js:294
app.min.js:302:273

Can anything be done about it? Our traccar instance wasn't touched for months. I have to avoid updating Traccar for now, unfortunately.

Anton Tananaev 5 years ago

Upgrade?

Freddy R 5 years ago

We presented the same error for approximately 2 hours the error apparently is because this plugin does not load

https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.1.1/build/ol.js

is it necessary to update the system?

Anton Tananaev 5 years ago

The URL is working for me.

If it still doesn't work, I would recommend upgrading.

Michał Piasecki 5 years ago

This link returns the following for me:

Package size exceeded the configured limit of 50 MB. Try https://github.com/openlayers/openlayers.github.io/tree/master/en/v6.1.1/build/ol.js instead.
Anton Tananaev 5 years ago

It's 154 kB in size. I wonder if that's an issue with jsdelivr.

Anton Tananaev 5 years ago
Michał Piasecki 5 years ago

How to make Traccar use this file locally instead of CDN? Clearing browser cache didn't work for me unfortunately.

Anton Tananaev 5 years ago

You can update load.js file. In fact you can probably update it to the latest version that we have.

Michał Piasecki 5 years ago

Thank you, the load.js from the repo works.

Freddy R 5 years ago

where is it located? load.js

Michał Piasecki 5 years ago

Sorry for late reply - download this file:
https://raw.githubusercontent.com/traccar/traccar-web/65af8bad51851ff7f15319d5ce14ff24697aaded/web/load.js
and replace the old load.js in /opt/traccar/web/ (or anywhere else you have traccar installed)

Freddy R 5 years ago

Thanks ! work fine

Ken Slade 5 years ago

Thank you, worked for me as well