Problem updating to Kirby 3.9 when in Docker image

Hello!

I’m running a Kirby 3.6 site in a docker image, now I update it to 3.9.

After doing that, the page stays blank for the panel, and the page itself doesn’t load any assets. Funnily, the page runs locally in my docker environment, but when I push it to the server, it doesn’t work anymore.

Any leads are appreciated!

(I updated the image’s PHP version to 8.2 (from 8.0) already, but it doesn’t help.)

Solved it myself partially!

I was (to avoid overwriting the content when pushing a new version of the image) using an external content directory, so my change

    'content' => '/content',

to the index.php was, of course, absent from the new Kirby version I tried to use. Solved this part - but the panel stays blank:

https://www.studentsforland.com/panel/login

(There is content in the source code, but it stays blank in the rendering?)

I get a mixed content warning, and if I look at the browser’s JS console it tells me that it’s blocking the loading of CSS and JS resources because of that. Make sure everything is loaded via HTTPS.

Ah, that makes sense! What would make it serve some things over http, and not https, though?

Solved it (with kind of a workaround) by adding

if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && 
    $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
    $_SERVER['HTTPS'] = 'on';
}

to my index.php :slight_smile: