Topic on Project:Support desk

Error by using Yampp on local testserver

7
RolandHorn (talkcontribs)

Hi everybody,

I've installed my wiki "Atlantisforschung.de" on the server of my hoster; bur it do not work on my local test server xampp 7.1.25. There's an error calles


Fatal error: Uncaught Error: Call to a member function getCode() on null in C:\xampp\htdocs\atlantisforschung\includes\user\User.php:1737 Stack trace: #0 C:\xampp\htdocs\atlantisforschung\includes\user\User.php(5412): User::getDefaultOptions() #1 C:\xampp\htdocs\atlantisforschung\includes\user\User.php(3096): User->loadOptions() #2 C:\xampp\htdocs\atlantisforschung\includes\context\RequestContext.php(336): User->getOption('language') #3 C:\xampp\htdocs\atlantisforschung\includes\Message.php(380): RequestContext->getLanguage() #4 C:\xampp\htdocs\atlantisforschung\includes\Message.php(1290): Message->getLanguage() #5 C:\xampp\htdocs\atlantisforschung\includes\Message.php(842): Message->fetchMessage() #6 C:\xampp\htdocs\atlantisforschung\includes\Message.php(934): Message->toString('text') #7 C:\xampp\htdocs\atlantisforschung\includes\exception\MWExceptionRenderer.php(199): Message->text() #8 C:\xampp\htdocs\atlantisforschung\includes\exception\MWExceptionRenderer.php(299): MWExceptionRenderer::msg('dberr-problems', 'Sorry! in C:\xampp\htdocs\atlantisforschung\includes\user\User.php on line 1737,


despite it works online with the same files as set online, except the local settings: There's a few lines, which are different frome the online version, which are:


## UPO means: this is also a user preference option

$wgEnableEmail      = true;

$wgEnableUserEmail  = true; # UPO

$wgEmergencyContact = "roland.horn@atlantisforschung.de";

$wgPasswordSender =   "roland.horn@atlantisforschung.de";

$wgEnotifUserTalk = true; # UPO

$wgEnotifWatchlist = true; # UPO

$wgEmailAuthentication = true;

## Database settings

$wgDBtype           = "mysql";

$wgDBserver         = "localhost";

$wgDBname           = "accounts";

$wgDBuser           = "root";

$wgDBpassword       = "";


Is thisfalse, respectivle can somebody help me in thist matter?


Thanks a lot in advance

Roland

2A02:8071:B5AC:1D00:F94F:16FD:FD19:C643 (talkcontribs)

Had the same thing yesterday (with many other issues). This seems to have gone after enabling the Parameter: $wgCacheDirectory.

# $wgCacheDirectory = "$IP/cache";

RolandHorn (talkcontribs)

Then appears the following error reports:


Warning: htmlspecialchars(): charset `ISO 8859-1' not supported, assuming utf-8 in C:\xampp\htdocs\atlantisforschung\includes\exception\MWExceptionRenderer.php on line 299


Warning: htmlspecialchars(): charset `ISO 8859-1' not supported, assuming utf-8 in C:\xampp\htdocs\atlantisforschung\includes\exception\MWExceptionRenderer.php on line 303


Warning: htmlspecialchars(): charset `ISO 8859-1' not supported, assuming utf-8 in C:\xampp\htdocs\atlantisforschung\includes\exception\MWExceptionRenderer.php on line 315


Warning: htmlspecialchars(): charset `ISO 8859-1' not supported, assuming utf-8 in C:\xampp\htdocs\atlantisforschung\includes\exception\MWExceptionRenderer.php on line 342


Warning: htmlspecialchars(): charset `ISO 8859-1' not supported, assuming utf-8 in C:\xampp\htdocs\atlantisforschung\includes\exception\MWExceptionRenderer.php on line 346


Warning: htmlspecialchars(): charset `ISO 8859-1' not supported, assuming utf-8 in C:\xampp\htdocs\atlantisforschung\includes\exception\MWExceptionRenderer.php on line 348


Warning: htmlspecialchars(): charset `ISO 8859-1' not supported, assuming utf-8 in C:\xampp\htdocs\atlantisforschung\includes\exception\MWExceptionRenderer.php on line 349


Warning: htmlspecialchars(): charset `ISO 8859-1' not supported, assuming utf-8 in C:\xampp\htdocs\atlantisforschung\includes\exception\MWExceptionRenderer.php on line 350


Warning: htmlspecialchars(): charset `ISO 8859-1' not supported, assuming utf-8 in C:\xampp\htdocs\atlantisforschung\includes\exception\MWExceptionRenderer.php on line 351


But when I change the php.ini back to utf-8, the German special characters wouldn't be showed.

Ciencia Al Poder (talkcontribs)
Ciencia Al Poder (talkcontribs)

What MediaWiki version? This looks like an exception during handling another exception (quite unfortunate at least)

This post was hidden by RolandHorn (history)
Reply to "Error by using Yampp on local testserver"