dshnx48866 2014-10-09 15:12
浏览 107
已采纳

mediawiki密码重置不发送电子邮件和创建用户不工作

when i click on reset password i get following error

[b5009e59] /kb/index.php/Special:PasswordReset Exception from line 304 of /opt/html/kb/includes/UserMailer.php: PEAR mail package is not installed

Backtrace:

#0 /opt/html/kb/includes/User.php(3885): UserMailer::send(MailAddress, MailAddress, string, string, NULL)
#1 /opt/html/kb/includes/specials/SpecialPasswordReset.php(281): User->sendMail(string, string)
#2 [internal function]: SpecialPasswordReset->onSubmit(array, HTMLForm)
#3 /opt/html/kb/includes/htmlform/HTMLForm.php(470): call_user_func(array, array, HTMLForm)
#4 /opt/html/kb/includes/htmlform/HTMLForm.php(412): HTMLForm->trySubmit()
#5 /opt/html/kb/includes/htmlform/HTMLForm.php(427): HTMLForm->tryAuthorizedSubmit()
#6 /opt/html/kb/includes/specialpage/FormSpecialPage.php(142): HTMLForm->show()
#7 /opt/html/kb/includes/specialpage/SpecialPage.php(379): FormSpecialPage->execute(NULL)
#8 /opt/html/kb/includes/specialpage/SpecialPageFactory.php(503): SpecialPage->run(NULL)
#9 /opt/html/kb/includes/Wiki.php(285): SpecialPageFactory::executePath(Title, RequestContext)
#10 /opt/html/kb/includes/Wiki.php(588): MediaWiki->performRequest()
#11 /opt/html/kb/includes/Wiki.php(447): MediaWiki->main()
#12 /opt/html/kb/index.php(46): MediaWiki->run()
#13 {main}

I have all installed modules

pear list
Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.13  stable
Auth_SASL        1.0.6   stable
Cache_Lite       1.7.16  stable
Console_Getopt   1.3.1   stable
DB               1.7.14  stable
HTTP_Request2    2.2.1   stable
Log              1.12.8  stable
MDB2             2.4.1   stable
Mail             1.2.0   stable
Net_SMTP         1.6.2   stable
Net_Socket       1.0.14  stable
Net_URL2         2.0.9   stable
PEAR             1.9.5   stable
Structures_Graph 1.0.4   stable
XML_RPC          1.5.5   stable
XML_RPC2         1.1.2   stable
XML_Util         1.2.3   stable

I have restarted apache and is also included in include path

 php -c /etc/php.ini -r 'echo get_include_path()."
";'
.:/php/includes:/usr/share/pear

I have tried a google search on this but have not got any solutions to this problem.

stacktrace when trying to create a user

 [7f3f1adc] /kb/index.php?title=Special:UserLogin&action=submitlogin&type=signup Exception from line 304 of /opt/html/kb/includes/UserMailer.php: PEAR mail package is not installed

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

debug

 [caches] main: MemcachedPhpBagOStuff, message: MemcachedPhpBagOStuff, parser: MemcachedPhpBagOStuff
[caches] LocalisationCache: using store LCStoreDB
Fully initialised
User: got user 17 from cache
Connected to database 0 at localhost
User: loading options for user 17 from override cache.
User: logged in from session
User: loading options for user 17 from override cache.
MessageCache::load: Loading en... got from global cache
Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache::getParser
Parser: using preprocessor: Preprocessor_DOM
Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct
User::getBlockedStatus: checking...
IP: 172.16.0.85
MWCryptRand::realGenerate: Generating cryptographic random bytes for User::setToken/MWCryptRand::generateHex/MWCryptRand::realGenerateHex/MWCryptRand::generate/MWCryptRand::realGenerate
MWCryptRand::realGenerate: openssl_random_pseudo_bytes generated 16 bytes of strong randomness.
MWCryptRand::realGenerate: 0 bytes of randomness leftover in the buffer.
DatabaseBase::query: Writes done: INSERT IGNORE INTO `user` (user_id,user_name,user_password,user_newpassword,user_newpass_time,user_email,user_email_authenticated,user_real_name,user_token,user_registration,user_editcount,user_touched) VALUES (NULL,'Heshamfs','','',NULL,'heshamfs@spectrum-geopex.com.eg',NULL,'Hesham Sokkar','fbe6039d3d8721e290bad06e14708e86','20150521134628','0','20150521134633')
User: loading options for user 31 from database.
MWCryptRand::realGenerate: Generating cryptographic random bytes for User::setToken/MWCryptRand::generateHex/MWCryptRand::realGenerateHex/MWCryptRand::generate/MWCryptRand::realGenerate
MWCryptRand::realGenerate: openssl_random_pseudo_bytes generated 16 bytes of strong randomness.
MWCryptRand::realGenerate: 0 bytes of randomness leftover in the buffer.
MWCryptRand::realGenerate: Generating cryptographic random bytes for User::setToken/MWCryptRand::generateHex/MWCryptRand::realGenerateHex/MWCryptRand::generate/MWCryptRand::realGenerate
MWCryptRand::realGenerate: openssl_random_pseudo_bytes generated 16 bytes of strong randomness.
MWCryptRand::realGenerate: 0 bytes of randomness leftover in the buffer.
MWCryptRand::realGenerate: Generating cryptographic random bytes for User::setToken/MWCryptRand::generateHex/MWCryptRand::realGenerateHex/MWCryptRand::generate/MWCryptRand::realGenerate
MWCryptRand::realGenerate: openssl_random_pseudo_bytes generated 16 bytes of strong randomness.
MWCryptRand::realGenerate: 0 bytes of randomness leftover in the buffer.
MWCryptRand::realGenerate: Generating cryptographic random bytes for User::randomPassword/MWCryptRand::generateHex/MWCryptRand::realGenerateHex/MWCryptRand::generate/MWCryptRand::realGenerate
MWCryptRand::realGenerate: openssl_random_pseudo_bytes generated 7 bytes of strong randomness.
MWCryptRand::realGenerate: 0 bytes of randomness leftover in the buffer.
MWCryptRand::realGenerate: Generating cryptographic random bytes for User::crypt/MWCryptRand::generateHex/MWCryptRand::realGenerateHex/MWCryptRand::generate/MWCryptRand::realGenerate
MWCryptRand::realGenerate: openssl_random_pseudo_bytes generated 4 bytes of strong randomness.
MWCryptRand::realGenerate: 0 bytes of randomness leftover in the buffer.
UserMailer::send: sending mail to Heshamfs <heshamfs@spectrum-geopex.com.eg>
[Bug56269] Exception thrown with an uncommited database transaction: [7f3f1adc] /kb/index.php?title=Special:UserLogin&action=submitlogin&type=signup Exception from line 304 of /opt/html/kb/includes/UserMailer.php: PEAR mail package is not installed
#0 /opt/html/kb/includes/User.php(3885): UserMailer::send(Object(MailAddress), Object(MailAddress), 'Account creatio...', 'Someone created...', NULL)
#1 /opt/html/kb/includes/specials/SpecialUserlogin.php(983): User->sendMail('Account creatio...', 'Someone created...')
#2 /opt/html/kb/includes/specials/SpecialUserlogin.php(258): LoginForm->mailPasswordInternal(Object(User), false, 'createaccount-t...', 'createaccount-t...')
#3 /opt/html/kb/includes/specials/SpecialUserlogin.php(223): LoginForm->addNewAccountMailPassword()
#4 /opt/html/kb/includes/specialpage/SpecialPage.php(379): LoginForm->execute(NULL)
#5 /opt/html/kb/includes/specialpage/SpecialPageFactory.php(503): SpecialPage->run(NULL)
#6 /opt/html/kb/includes/Wiki.php(285): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#7 /opt/html/kb/includes/Wiki.php(588): MediaWiki->performRequest()
#8 /opt/html/kb/includes/Wiki.php(447): MediaWiki->main()
#9 /opt/html/kb/index.php(46): MediaWiki->run()
#10 {main}
[exception] [7f3f1adc] /kb/index.php?title=Special:UserLogin&action=submitlogin&type=signup Exception from line 304 of /opt/html/kb/includes/UserMailer.php: PEAR mail package is not installed
#0 /opt/html/kb/includes/User.php(3885): UserMailer::send(Object(MailAddress), Object(MailAddress), 'Account creatio...', 'Someone created...', NULL)
#1 /opt/html/kb/includes/specials/SpecialUserlogin.php(983): User->sendMail('Account creatio...', 'Someone created...')
#2 /opt/html/kb/includes/specials/SpecialUserlogin.php(258): LoginForm->mailPasswordInternal(Object(User), false, 'createaccount-t...', 'createaccount-t...')
#3 /opt/html/kb/includes/specials/SpecialUserlogin.php(223): LoginForm->addNewAccountMailPassword()
#4 /opt/html/kb/includes/specialpage/SpecialPage.php(379): LoginForm->execute(NULL)
#5 /opt/html/kb/includes/specialpage/SpecialPageFactory.php(503): SpecialPage->run(NULL)
#6 /opt/html/kb/includes/Wiki.php(285): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#7 /opt/html/kb/includes/Wiki.php(588): MediaWiki->performRequest()
#8 /opt/html/kb/includes/Wiki.php(447): MediaWiki->main()
#9 /opt/html/kb/index.php(46): MediaWiki->run()
#10 {main} 
  • 写回答

3条回答 默认 最新

  • douwei9759 2015-05-21 14:19
    关注

    withing LocalSettings.php the include path set incorrectly.

    set_include_path( implode( PATH_SEPARATOR, $path ) );
    

    changed it to

    set_include_path( get_include_path() . ":" .implode( PATH_SEPARATOR, $path ) );
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 用ns3仿真出5G核心网网元
  • ¥15 matlab答疑 关于海上风电的爬坡事件检测
  • ¥88 python部署量化回测异常问题
  • ¥30 酬劳2w元求合作写文章
  • ¥15 在现有系统基础上增加功能
  • ¥15 远程桌面文档内容复制粘贴,格式会变化
  • ¥15 关于#java#的问题:找一份能快速看完mooc视频的代码
  • ¥15 这种微信登录授权 谁可以做啊
  • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”