Topic on Project:Support desk

[RESOLVED] Special:PasswordReset Exception from line 304 of /UserMailer.php "PEAR mail package is not installed"

3
Cmjohannes (talkcontribs)

Problem: When trying to test the ability for users to reset their password, we get errors (see backtrace below).

Internal error
[d3b3343d] /index.php/Special:PasswordReset Exception from line 304 of /var/www/web3/web.old/includes/UserMailer.php:
PEAR mail package is not installed
Backtrace:
#0 /var/www/web3/web.old/includes/User.php(3885): UserMailer::send(MailAddress, MailAddress, string, string, NULL)
#1 /var/www/web3/web.old/includes/specials/SpecialPasswordReset.php(281): User->sendMail(string, string)
#2 [internal function]: SpecialPasswordReset->onSubmit(array, HTMLForm)
#3 /var/www/web3/web.old/includes/htmlform/HTMLForm.php(470): call_user_func(array, array, HTMLForm)
#4 /var/www/web3/web.old/includes/htmlform/HTMLForm.php(412): HTMLForm->trySubmit()
#5 /var/www/web3/web.old/includes/htmlform/HTMLForm.php(427): HTMLForm->tryAuthorizedSubmit()
#6 /var/www/web3/web.old/includes/specialpage/FormSpecialPage.php(142): HTMLForm->show()
#7 /var/www/web3/web.old/includes/specialpage/SpecialPage.php(379): FormSpecialPage->execute(NULL)
#8 /var/www/web3/web.old/includes/specialpage/SpecialPageFactory.php(503): SpecialPage->run(NULL)
#9 /var/www/web3/web.old/includes/Wiki.php(285): SpecialPageFactory::executePath(Title, RequestContext)
#10 /var/www/web3/web.old/includes/Wiki.php(588): MediaWiki->performRequest()
#11 /var/www/web3/web.old/includes/Wiki.php(447): MediaWiki->main()
#12 /var/www/web3/web.old/index.php(46): MediaWiki->run()
#13 {main}

MediaWiki: 1.23.3
PHP: 5.3.26 (apache2handler)
MySQL: 5.1.73-log
Site: http://gridirondigest.info
Email configuration settings in LocalSettings.php:

$wgEnableEmail      = true;
$wgEnableUserEmail  = true;
$wgPasswordSender = "hhpat@gridirondigest.com";

     $wgSMTP = array(
        'host' => "ssl://smtp.gmail.com",
        'IDHost' => "gridirondigest.com",
        'port' => 465,
	'auth' => true,
        'username' => "hhpat@gridirondigest.com", 
        'password' => "somepassword"
     );

Verification of PEAR installation by our server's admin:

Installing package(s) with command yum -y install php-pear ..
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
 * base: mirrors.xmission.com
 * extras: mirror.nwresd.org
 * rpmforge: mirror.hmc.edu
 * updates: mirrors.sonic.net
21 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-pear.noarch 1:1.9.4-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package           Arch            Version                  Repository     Size
================================================================================
Installing:
 php-pear          noarch          1:1.9.4-4.el6            base          393 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 393 k
Installed size: 2.2 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:php-pear-1.9.4-4.el6.noarch                                1/1 
  Verifying  : 1:php-pear-1.9.4-4.el6.noarch                                1/1 

Installed:
Complete!

[root@domain~]# pear list
Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.13  stable
Console_Getopt   1.3.1   stable
Mail             1.2.0   stable
Net_SMTP         1.6.2   stable
Net_Socket       1.0.14  stable
PEAR             1.9.5   stable
Structures_Graph 1.0.4   stable
XML_RPC          1.5.5   stable
XML_Util         1.2.3   stable
88.130.105.66 (talkcontribs)

Follow this checklist. Specially, be sure that PHP include_path setting contains the PEAR installation directory

Reply to "[RESOLVED] Special:PasswordReset Exception from line 304 of /UserMailer.php "PEAR mail package is not installed""