Page 1 of 1

fresh install : material icons missings

Posted: Wed Apr 28, 2021 10:22 am
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

Re: fresh install : material icons missings

Posted: Wed Apr 28, 2021 1:34 pm
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 ?

Re: fresh install : material icons missings

Posted: Fri Nov 04, 2022 5:37 pm
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.