Jump to content

Topic on Talk:MediaWiki/fr

Exception encountered, of type "Error" localhost

12
Thomaswwwhat (talkcontribs)

Hello,

I just installed mediawiki locally and I have an error when I try to connect to the account that I created during installation.

After writing my password on the login page I have this message appears: Exception Encountered, of the type "Error".

Does anyone could help me please?

Seb35 (talkcontribs)

Ok, you should give some additional details:

  • Which MediaWiki version? (last stable 1.27, or another?)
  • Which PHP version? (5.5, 5.6, or 7.0 ?)
  • Do you have enabled some extensions in your LocalSettings.php? (with require_once or wfLoadExtension)
  • Can you add in your LocalSettings.php: $wgShowExceptionDetails = true; and post it – it will give more details on the exception
Seb35 (talkcontribs)

I had these messages with MediaWiki 1.23-1.25 with PHP 7 if I remember correctly. It was fixed in MediaWiki 1.26, so you should use at lease MediaWiki 1.26 if you really want PHP 7. Else use PHP 5.6.

If you are using other versions, please post these versions and additional details as said above.

Seb35 (talkcontribs)

(and I see it’s the French talk page; si vous voulez parler français, on peut continuer en français; else just ignore this remark)

Thomaswwwhat (talkcontribs)

Thank you for your prompt response !

I use the latest version of mediawiki 1.27. And local I use MAMP 3.5.2 with PHP version 7.0.8.

I added $wgShowExceptionDetails = true;  Here is the answer

[4ae028fc274d33d4774d138e] /index.php?title=Sp%C3%A9cial:Connexion&returnto=Accueil Error from line 426 of /Users/thomasviennet/Documents/sites/wwiki/includes/session/Session.php: Class 'MediaWiki\Session\UnexpectedValueException' not found

Backtrace:

#0 /Users/thomasviennet/Documents/sites/wwiki/includes/auth/AuthManager.php(2172): MediaWiki\Session\Session->setSecret(string, array)

#1 /Users/thomasviennet/Documents/sites/wwiki/includes/auth/ThrottlePreAuthenticationProvider.php(144): MediaWiki\Auth\AuthManager->setAuthenticationSessionData(string, array)

#2 /Users/thomasviennet/Documents/sites/wwiki/includes/auth/AuthManager.php(306): MediaWiki\Auth\ThrottlePreAuthenticationProvider->testForAuthentication(array)

#3 /Users/thomasviennet/Documents/sites/wwiki/includes/specialpage/AuthManagerSpecialPage.php(355): MediaWiki\Auth\AuthManager->beginAuthentication(array, string)

#4 /Users/thomasviennet/Documents/sites/wwiki/includes/specialpage/AuthManagerSpecialPage.php(484): AuthManagerSpecialPage->performAuthenticationStep(string, array)

#5 /Users/thomasviennet/Documents/sites/wwiki/includes/htmlform/HTMLForm.php(613): AuthManagerSpecialPage->handleFormSubmit(array, VFormHTMLForm)

#6 /Users/thomasviennet/Documents/sites/wwiki/includes/specialpage/AuthManagerSpecialPage.php(418): HTMLForm->trySubmit()

#7 /Users/thomasviennet/Documents/sites/wwiki/includes/specialpage/LoginSignupSpecialPage.php(293): AuthManagerSpecialPage->trySubmit()

#8 /Users/thomasviennet/Documents/sites/wwiki/includes/specialpage/SpecialPage.php(479): LoginSignupSpecialPage->execute(NULL)

#9 /Users/thomasviennet/Documents/sites/wwiki/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(NULL)

#10 /Users/thomasviennet/Documents/sites/wwiki/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext)

#11 /Users/thomasviennet/Documents/sites/wwiki/includes/MediaWiki.php(745): MediaWiki->performRequest()

#12 /Users/thomasviennet/Documents/sites/wwiki/includes/MediaWiki.php(519): MediaWiki->main()

#13 /Users/thomasviennet/Documents/sites/wwiki/index.php(43): MediaWiki->run()

#14 {main}

Seb35 (talkcontribs)

Thanks! I don’t have the time just now, but probably in some hours. Given the first line it seems to be a bug (possible since AuthManager is new in MW 1.27), perhaps alreadly in [https:phabricator.wikimedia.org Phabricator] if you want to search.

Thomaswwwhat (talkcontribs)

Thank you for your help. I'm thin and I'm quickly lost with that. Especially when it's in English: p I am French ...

Seb35 (talkcontribs)

C’est le bug T136587. Si vous voulez corriger rapidement le problème, installer les paquets Debian/Ubuntu php7.0-mcrypt et/ou php7.0-openssl semble fonctionner -> disant cela, vous êtes sous Mac, je ne connais pas bien, je sais juste que Homebrew est souvent utilisé. Sinon ça sera de toutes façons corrigé dans MediaWiki 1.27.1. (voir le bug pour les détails)

This is the issue T136587. If you want to quickly fix the issue, you can try to install the Debian/Ubuntu packages php7.0-mcrypt and/or php7.0-openssl -> saying this you use Mac and I don’t know it well, I just know Mac users often use Homebrew. Anyway it will be fixed in MediaWiki 1.27.1. (see the bug for details)

Seb35 (talkcontribs)

@Thomaswwwhat: Ça sera corrigé dans MediaWiki 1.27.1 qui devrait sortir dans quelques jours.

It will be fixed in MediaWiki 1.27.1, which should be released in some days.

Source: §Security

Thomaswwwhat (talkcontribs)

Bonjour,

Merci beaucoup pour votre aide. Est-ce que vous savez quand devrait sortir la version 1.27.1 s'il vous plait ?

-

Hello,

Thanks a lot for your help. Do you know when will be released the 1.27.1 version please?

Seb35 (talkcontribs)

La version 1.27.1 est prévue pour aujourd’hui, voir . Vous pouvez vous inscrire à cette liste de diffusion d’environ 1 message par mois à propos des sorties de versions.

-

The 1.27.1 release is scheduled to be today, see . You can subscribe to this mailing list, it’s about 1 message per month related to releases.

Seb35 (talkcontribs)