Topic on Project:Support desk

Cannot login to newly installed Mediawiki on RHEL7

4
203.2.218.131 (talkcontribs)

I get the following error when I try to login as admin

[WgFwnKvWKuo6GsYzfk6cygAAAAg] 2017-11-07 08:36:45: Fatal exception of type "BadMethodCallException"

Also get this error when creating a new user.

Running Mediawiki 1.29.1

PHP 7.1

RHEL7.4

Any ideas?

Thanks,

Vincenzo

AKlapper (WMF) (talkcontribs)
148.129.129.172 (talkcontribs)

I got the same error. I'm also running on RHEL. Here it is:


[XJkaIHw1Z@yqieX68QXpDAAAAAA] /mediawiki/index.php?title=Special:CreateAccount&returnto=Main+Page BadMethodCallException from line 456 of /var/www/html/mediawiki/includes/session/Session.php: Encryption is not available. You really should install the PHP OpenSSL extension, or failing that the mcrypt extension. But if you really can't and you're willing to accept insecure storage of sensitive session data, set $wgSessionInsecureSecrets = true in LocalSettings.php to make this exception go away.

Backtrace:

#0 /var/www/html/mediawiki/includes/session/Session.php(485): MediaWiki\Session\Session::getEncryptionAlgorithm()

#1 /var/www/html/mediawiki/includes/auth/AuthManager.php(1139): MediaWiki\Session\Session->setSecret(string, array)

#2 /var/www/html/mediawiki/includes/specialpage/AuthManagerSpecialPage.php(357): MediaWiki\Auth\AuthManager->beginAccountCreation(User, array, string)

#3 /var/www/html/mediawiki/includes/specialpage/AuthManagerSpecialPage.php(482): AuthManagerSpecialPage->performAuthenticationStep(string, array)

#4 /var/www/html/mediawiki/includes/htmlform/HTMLForm.php(665): AuthManagerSpecialPage->handleFormSubmit(array, VFormHTMLForm)

#5 /var/www/html/mediawiki/includes/specialpage/AuthManagerSpecialPage.php(416): HTMLForm->trySubmit()

#6 /var/www/html/mediawiki/includes/specialpage/LoginSignupSpecialPage.php(317): AuthManagerSpecialPage->trySubmit()

#7 /var/www/html/mediawiki/includes/specialpage/SpecialPage.php(569): LoginSignupSpecialPage->execute(NULL)

#8 /var/www/html/mediawiki/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)

#9 /var/www/html/mediawiki/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#10 /var/www/html/mediawiki/includes/MediaWiki.php(860): MediaWiki->performRequest()

#11 /var/www/html/mediawiki/includes/MediaWiki.php(517): MediaWiki->main()

#12 /var/www/html/mediawiki/index.php(42): MediaWiki->run()

#13 {main}


Looks like we did the same thing, and we both need to install the PHP OpenSSL extension or the mcrypt extension.

AKlapper (WMF) (talkcontribs)

Which exact MediaWiki version is this about?

Reply to "Cannot login to newly installed Mediawiki on RHEL7"