Topic on Project:Support desk

fatal error to create accounts

4
85.233.12.114 (talkcontribs)

In my wiki only users with an account should be able to edit sides and only the admin should be able to create accounts. so followings parameters will be define:

$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;

no i try to make a account and send the random password to the user. before I add following to the end of the LocalSettings.php-File:

$wgSMTP = array(
 'host'     => "mail.xxxx.de", // could also be an IP address. Where the SMTP server is located
 'IDHost'   => "xxxx.de",      // Generally this will be the domain name of your website (aka mywiki.org)
 'port'     => 25,                 // Port to use when connecting to the SMTP server
 'auth'     => true,               // Should we use SMTP authentication (true or false)
 'username' => "contact@xxxx.de",   // Username to use for SMTP authentication (if being used)
 'password' => "******"       // Password to use for SMTP authentication (if being used)
);

when I create a new account and the message will be send (my opinion) the message will be: Internal error [e2be8d67] timestamp Fatal exception of type MWException

the second way....

$wgSMTP = array(
 'host'     => "mail.xxxx.de", // could also be an IP address. Where the SMTP server is located
 'IDHost'   => "xxxx.de",      // Generally this will be the domain name of your website (aka mywiki.org)
 'port'     => 25,                 // Port to use when connecting to the SMTP server
 'auth'     => false               // Should we use SMTP authentication (true or false)
);

I get the message

Internal error [1e5d5930] 2014-10-13 13:03:17: Fatal exception of type MWException

can someone help me....? (Win7 64 bit, Apache 2.4, PHP 5.6, MySQL 5.6, mediawiki 1.23.5)

Florianschmidtwelzow (talkcontribs)

Hello!

Please add Manual:$wgShowExceptionDetails, so we can see, what exact error the fatal exception is. (so, set this to true, recreate the error and post here, what you see (Stack trace)).

85.233.12.114 (talkcontribs)

hi !

here is my error-report....

[231ccfbf] /eblwiki/index.php?title=Spezial:Anmelden&action=submitlogin&type=signup Exception from line 304 of C:\mediawiki\includes\UserMailer.php: PEAR mail package is not installed

Backtrace:

  1. 0 C:\mediawiki\includes\User.php(3885): UserMailer::send(MailAddress, MailAddress, string, string, NULL)
  2. 1 C:\mediawiki\includes\specials\SpecialUserlogin.php(983): User->sendMail(string, string)
  3. 2 C:\mediawiki\includes\specials\SpecialUserlogin.php(258): LoginForm->mailPasswordInternal(User, boolean, string, string)
  4. 3 C:\mediawiki\includes\specials\SpecialUserlogin.php(223): LoginForm->addNewAccountMailPassword()
  5. 4 C:\mediawiki\includes\specialpage\SpecialPage.php(379): LoginForm->execute(NULL)
  6. 5 C:\mediawiki\includes\specialpage\SpecialPageFactory.php(503): SpecialPage->run(NULL)
  7. 6 C:\mediawiki\includes\Wiki.php(285): SpecialPageFactory::executePath(Title, RequestContext)
  8. 7 C:\mediawiki\includes\Wiki.php(588): MediaWiki->performRequest()
  9. 8 C:\mediawiki\includes\Wiki.php(447): MediaWiki->main()
  10. 9 C:\mediawiki\index.php(46): MediaWiki->run()
  11. 10 {main}


regards jan :-)

88.130.78.43 (talkcontribs)

The PEAR mail package is either not installed or it is not available inside the open_basedir path of PHP. Install it and make sure that it is within the allowed paths.

Reply to "fatal error to create accounts"