Topic on Project:Support desk

Error after migraton: Call to a member function getCode() on null

4
185.48.55.208 (talkcontribs)

After migrating my mediawiki site to a new server i caught this error i cannot solve:

PHP Fatal error:  Uncaught Error: Call to a member function getCode() on null in /var/www/html/mediawiki/includes/user/User.php:1578

I'm running apache on centos7 (old server was apache on centos6) and i tried differrent versions of php. Right now i have php7.

The wiki works as it warned me i forgot to install a php extension, but i cannot access my pages.

AhmadF.Cheema (talkcontribs)
85.234.217.39 (talkcontribs)

I receive the same error message after a migration. Did you resolve this?

85.234.217.39 (talkcontribs)

after adding $wgShowExceptionDetails = true; $wgShowDBErrorBacktrace = true; to LocalSettings.php i saw there was a problem updating the db during the update process (/maintenance/update.php).

In my case the db user in LocalSettings.php didn't have enough rights on the db.