Error after update from 5.2.2 to 5.2.4

Describe the issue / Steps to reproduce:

I’m using BlueSpice free (Docker based installation) and updated from 5.2.2 to 5.2.4

After the update, I get errors when I try to access the wiki.

In the docker log I can see:

FastCGI sent in stderr: "PHP message: [2026-06-14T05:07:34.021709+00:00] exception.ERROR: [2994dfe9aea031bcc10ffaf7] /w/index.php Error: Call to a member function exists() on null {"exception":"[object] (Error(code: 0): Call to a member function exists() on null at /app/bluespice/w/skins/BlueSpiceDiscovery/src/Component/NamespaceMainPages.php:89)","exception_url":"/w/index.php","reqId":"2994dfe9aea031bcc10ffaf7","caught_by":"entrypoint"} {"host":"35e89f7198bf","wiki":"bluespice","mwversion":"1.43.8","reqId":"2994dfe9aea031bcc10ffaf7"}" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /w/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php-fpm.sock:"

What could be the cause of this issue?

Could you please try to restart the cache service? E.g. with

./bluespice-deploy restart cache

There is also a bugfix available, which could be applied manually if required: https://gerrit.wikimedia.org/r/c/mediawiki/skins/BlueSpiceDiscovery/+/1301244/1/src/Component/NamespaceMainPages.php

Thank you for your reply. Restarting the cache service did not change anything.

Applying the mentioned bugfix also did not fix the issue as the error occurred in line 89 while the bugfix changed line 101. However this lead me to the right point. I had to change line 89 in the mentioned filed from if ( !$title->exists() ) { to if ( !$title || !$title->exists() ) {

This fixed the issue.