Matomo 5.3.1: Display looks strange

Matomo is missing all graphical elements in the browser. It looks like the CSS and/or graphics are not loaded. Only some plain text is left.

It worked already until my Linux distribution (Debian testing) updated PHP from 8.1 to 8.2 and in the meantime to 8.4. Other PHP applications are working fine (phpIPam, phpMyAdmin, Ampache, …).

The courious is that I get no errors at all. I looked into the logfile of Apache, into syslog and the logfile of Matomo itself, by enabling debug mode. Matomo seems to work basicly. Accessing it with the app on my Android phone works as expected.

My system:

  • OS: Linux Debian testing
  • Matomo v5.3.1
  • MariaDB 11.8.1
  • PHP 8.4
  • Apache 2.4.63

Configuration in Apache:

    <Directory /var/www/matomo>
        DirectoryIndex index.php
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    <Files "console">
        Options None
        Require all denied
    </Files>

    <Directory /var/www/matomo/misc/user>
        Options None
        Require all granted
    </Directory>

    <Directory /var/www/matomo/misc>
        Options None
        Require all denied
    </Directory>

    <Directory /var/www/matomo/vendor>
        Options None
        Require all denied
    </Directory>

This is how it looks like:

Does anybody know what I’ve made wrong or overlooked?

A.T.

I must answer my own post because it is solved in the meantime. On the same machine were Matomo is running, I used Firefox to access Matomo. It turned out that Firefox has a problem with the CORS policies. A browser (Firefox at least) first sends the OPTION request. This must be answered by the server (Matomo) with some headers describing whether the access is allowed or not (simply sawn). Then the browser sends the real request. For some reason (I didn’t traced it fully down) Firefox thought the access to images and CSS files is not allowed and didn’t load them. Therefore it looked like the screen shot in my post above.
I tried then with Chrome and everything worked as expected. Interestingly it worked also with Firefox on my laptop with Ubuntu installed. So the problem is Firefox on 1 machine. Matomo itself works fine.

A.T.