Topic on Project:Support desk

DZhukov (talkcontribs)

Top of the morning to you!

I ran into the following problem. When I try to install the MediaWiki version 1.29.2 and click set up the wiki link, I get the following error message:

PHP Fatal error: Uncaught Error: Call to a member function getIP() on null in C:\Websites\mediawiki\includes\user\User.php:2233 Stack trace: #0 C:\Websites\mediawiki\includes\session\SessionBackend.php(712): User->getName() #1 C:\Websites\mediawiki\includes\session\SessionBackend.php(596): MediaWiki\Session\SessionBackend->save() #2 [internal function]: MediaWiki\Session\SessionBackend->MediaWiki\Session\{closure}() #3 C:\Websites\mediawiki\vendor\wikimedia\scoped-callback\src\ScopedCallback.php(76): call_user_func_array(Object(Closure), Array) #4 C:\Websites\mediawiki\vendor\wikimedia\scoped-callback\src\ScopedCallback.php(56): Wikimedia\ScopedCallback->__destruct() #5 C:\Websites\mediawiki\includes\session\SessionManager.php(885): Wikimedia\ScopedCallback::consume(NULL) #6 C:\Websites\mediawiki\includes\session\SessionManager.php(195): MediaWiki\Session\SessionManager->getSessionFromInfo(Object(MediaWiki\Session\SessionInfo), Object(WebRequest)) #7 C:\Websites\mediawiki\includes\WebRequest.php(735): MediaWiki\Session\Sessio in C:\Websites\mediawiki\includes\user\User.php on line 2233 PHP Fatal error: Uncaught Error: Call to a member function getIP() on null in C:\Websites\mediawiki\includes\user\User.php:2233 Stack trace: #0 C:\Websites\mediawiki\includes\session\SessionBackend.php(712): User->getName() #1 C:\Websites\mediawiki\includes\session\SessionBackend.php(197): MediaWiki\Session\SessionBackend->save(true) #2 C:\Websites\mediawiki\includes\session\SessionManager.php(473): MediaWiki\Session\SessionBackend->shutdown() #3 [internal function]: MediaWiki\Session\SessionManager->shutdown() #4 {main} thrown in C:\Websites\mediawiki\includes\user\User.php on line 2233

I am new to the wiki and unfortunately not a PHP specialist.

The machine is of following means: Windows Server 2012. PHP 7.1.10. IIS 8.5.9600.16384. MySQL 5.7.20.

Please kindly help or point in the right direction of what is breaking and where to dig.

AKlapper (WMF) (talkcontribs)
DZhukov (talkcontribs)

Hello!

Thank you for the answer.

I was able to resolve this my identifying the variable sys_temp_dir in the php.ini

I have set it to the following: sys_temp_dir = "C:\Windows\Temp\mwtmp-IUSR" where mwtmp-IUSR is a temp folder created by the php script of MediaWiki.