fresh install : material icons missings

Support for the docker image maintained by dlandon
Post Reply
cornichon
Posts: 3
Joined: Mon Jul 06, 2020 9:04 pm

fresh install : material icons missings

Post by cornichon »

Hi,

I just installed Zoneminder docker, but the icons are missing from GUI.
instead of icons, I have some text, like "network_check".

I tried a few checks and I am able to download the fonts files from http://<myip>:8080/zm/fonts/MaterialIcons-Regular.eot (and also woff2, woff, ttf).

I have seen I'm not the only one with such icons issues but I wasn't able to figure out the cause...Is there anything I shall do ?

here is an overview:
Image
cornichon
Posts: 3
Joined: Mon Jul 06, 2020 9:04 pm

Re: fresh install : material icons missings

Post by cornichon »

Hi !

well, I found a workaround.

from page source code (in firefox), I can see the skin.css is loaded with:

Code: Select all

<link rel="stylesheet" href="skins/classic/css/base/skin.css" type="text/css">
while in skins.css (also from firefox source code check), the fonts are loaded from:

Code: Select all

url(../fonts/MaterialIcons-Regular.woff2) format('woff2'),
so, it seems to expect the fonts in skins/classic/css/fonts (ie inside the docker in /usr/share/zoneminder/www/skins/classic/css/fonts )
while the fonts files are in /usr/share/zoneminder/www/fonts.

So I copied the fonts from /usr/share/zoneminder/www/fonts to /usr/share/zoneminder/www/skins/classic/css/fonts
and it works :)

not sure it's a clean way ?
User avatar
burger
Posts: 386
Joined: Mon May 11, 2020 4:32 pm

Re: fresh install : material icons missings

Post by burger »

I had a similar problem with an install on alpine 3.16.

In my case, the problem was due to me using a diskless install. Because
of that /var/cache/zoneminder needs to be specified in lbu add, otherwise you
get the same material icons missing error.
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
Post Reply