Yesterday I made an upgrade from 1.23 to 1.35. After all steps in mw-config run correctly and the db-update was succefully finished, I got this fatal error:
Fatal error: Uncaught Error: Call to a member function getIP() on null in /www/htdocs/w0068779/subpages/otherfiles/dsa_wiki/includes/user/User.php:2153 Stack trace: #0 /wikipage/includes/session/SessionBackend.php(742): User->getName() #1 /wikipage/includes/session/SessionBackend.php(626): MediaWiki\Session\SessionBackend->save() #2 [internal function]: MediaWiki\Session\SessionBackend->MediaWiki\Session\{closure}() #3 /wikipage/vendor/wikimedia/scoped-callback/src/ScopedCallback.php(96): call_user_func_array(Object(Closure), Array) #4 /wikipage/vendor/wikimedia/scoped-callback/src/ScopedCallback.php(56): Wikimedia\ScopedCallback->__destruct() #5 /wikipage/includes/session/SessionManager.php(890): Wikimedia\ScopedCallback::consume(NULL) #6 /wikipage/includes/session/SessionManager.php(3 in /wikipage/includes/user/User.php on line 2153 Fatal error: Uncaught Error: Call to a member function getIP() on null in /wikipage/includes/user/User.php:2153 Stack trace: #0 /wikipage/includes/session/SessionBackend.php(742): User->getName() #1 /wikipage/includes/session/SessionBackend.php(225): MediaWiki\Session\SessionBackend->save(true) #2 /wikipage/includes/session/SessionManager.php(478): MediaWiki\Session\SessionBackend->shutdown() #3 [internal function]: MediaWiki\Session\SessionManager->shutdown() #4 {main} thrown in /wikipage/includes/user/User.php on line 2153
My PHP version is 7.4.10 and the MySQL version is 5.7.28. The old version runs under PHP 7.0 but I updated it before I run mw-config.
I looked for other topics with similiar errors but it doesn't work. I posted it too on "Support_desk" but they send my to post it here.