Topic on Project:Support desk/Flow

PEAR mail package is not installed, when it is?

9
PirateCraft (talkcontribs)

I have contacted my host, and their response was that "all packages are installed and working and to contact your software developers".

So Pear Mail is installed, but it does not work, I have enabled the PHP error messages being displayed and nobody can register on my Wiki as it cannot send them an email as it fails with this error:

[6b4e34c7] /index.php?title=Special:UserLogin&action=submitlogin&type=signup&returnto=Main+Page MWException from line 291 of /home/toiletar/public_html/wiki/includes/mail/UserMailer.php: PEAR mail package is not installed

Backtrace:

#0 /home/toiletar/public_html/wiki/includes/User.php(4260): UserMailer::send(MailAddress, MailAddress, string, string, array)

#1 /home/toiletar/public_html/wiki/includes/User.php(4233): User->sendMail(string, string)

#2 /home/toiletar/public_html/wiki/includes/specials/SpecialUserlogin.php(437): User->sendConfirmationMail()

#3 /home/toiletar/public_html/wiki/includes/specials/SpecialUserlogin.php(333): LoginForm->addNewAccount()

#4 /home/toiletar/public_html/wiki/includes/specialpage/SpecialPage.php(384): LoginForm->execute(NULL)

#5 /home/toiletar/public_html/wiki/includes/specialpage/SpecialPageFactory.php(553): SpecialPage->run(NULL)

#6 /home/toiletar/public_html/wiki/includes/MediaWiki.php(281): SpecialPageFactory::executePath(Title, RequestContext)

#7 /home/toiletar/public_html/wiki/includes/MediaWiki.php(714): MediaWiki->performRequest()

#8 /home/toiletar/public_html/wiki/includes/MediaWiki.php(508): MediaWiki->main()

#9 /home/toiletar/public_html/wiki/index.php(41): MediaWiki->run()

#10 {main}

87.123.52.87 (talkcontribs)
PirateCraft (talkcontribs)

Ok thanks, Im not managing the environment my host is, I have forwarded them this reply.

148.168.40.122 (talkcontribs)

I also have this issue and cannot seem to fix on IIS or Apache... both servers have the issue.

148.168.40.122 (talkcontribs)

I've run through the pear.php.net manual several times now in both environments. Pear is installed and running, but when I got to use the ConfirmAccount extension I get the error message that the PEAR mail package is not installed.

87.123.19.225 (talkcontribs)

Have you checked the thing with the include path?

PEAR must be in the include path. If it is not, then it won't be found.

Spas.Z.Spasov (talkcontribs)

Hello. I've had the same problem. I'm not familiar with php, but what resolve the problem for me was change of the relative include_path with absolute include_path in my php.ini. In my case: include_path=".:/usr/share/php/"  >>> include_path="/usr/share/php/"  (without the prefix: .: )

87.123.11.71 (talkcontribs)

I think that if you take "." away from the include_path, relative file inclusions will stop working. That way this change will cause more trouble...

Spas.Z.Spasov (talkcontribs)

Maybe, but I have two points. Before editing of php.ini there wasn't any include_path. And second point is that in the root directory of my web server (which I called - relative path) "/usr/share/php/" (which contains System.php) just missing. I have it in my root of the Linux filesystem.

Maybe another approach is to be made symbolic link (ln -s) between "/usr/share/php/" (absolute path) and the place where it must be in the web server (the place of the relative path).

Reply to "PEAR mail package is not installed, when it is?"