Page MenuHomePhabricator

Unclean $wgSMTP pear mail package loading
Closed, ResolvedPublic

Description

Author: cnit

Description:
I have a wiki with $wgSMTP optionally enabled, transferred to another host. It has no PEAR's mail package installed, thus, produces the following error:

[25-Oct-2010 09:57:29] PHP Warning: require_once(Mail.php): failed to open stream: No such file or directory in E:\www\wiki\includes\UserMailer.php on line 119

[25-Oct-2010 09:57:29] PHP Stack trace:

[25-Oct-2010 09:57:29] PHP 1. {main}() E:\www\wiki\index.php:0

[25-Oct-2010 09:57:29] PHP 2. AjaxDispatcher->performAction() E:\www\wiki\index.php:74

[25-Oct-2010 09:57:29] PHP 3. call_user_func_array() E:\www\wiki\includes\AjaxDispatcher.php:102

[25-Oct-2010 09:57:29] PHP 4. WikiSyncClient::syncXMLchunk() E:\www\wiki\includes\AjaxDispatcher.php:0

[25-Oct-2010 09:57:29] PHP 5. WikiSyncClient::importXML() E:\www\wiki\extensions\WikiSync\WikiSyncClient.php:470

[25-Oct-2010 09:57:29] PHP 6. WikiImporter->doImport() E:\www\wiki\extensions\WikiSync\WikiSyncClient.php:392

[25-Oct-2010 09:57:29] PHP 7. xml_parse() E:\www\wiki\includes\Import.php:437

[25-Oct-2010 09:57:29] PHP 8. WikiImporter->out_page() E:\www\wiki\includes\Import.php:0

[25-Oct-2010 09:57:29] PHP 9. WikiImporter->pageOutCallback() E:\www\wiki\includes\Import.php:738

[25-Oct-2010 09:57:29] PHP 10. call_user_func() E:\www\wiki\includes\Import.php:614

[25-Oct-2010 09:57:29] PHP 11. ApiImportReporter->reportPage() E:\www\wiki\includes\Import.php:0

[25-Oct-2010 09:57:29] PHP 12. ImportReporter->reportPage() E:\www\wiki\includes\api\ApiImport.php:172

[25-Oct-2010 09:57:29] PHP 13. LogPage->addEntry() E:\www\wiki\includes\specials\SpecialImport.php:318

[25-Oct-2010 09:57:29] PHP 14. LogPage->saveContent() E:\www\wiki\includes\LogPage.php:344

[25-Oct-2010 09:57:29] PHP 15. RecentChange::notifyLog() E:\www\wiki\includes\LogPage.php:81

[25-Oct-2010 09:57:29] PHP 16. RecentChange->save() E:\www\wiki\includes\RecentChange.php:487

[25-Oct-2010 09:57:29] PHP 17. EmailNotification->notifyOnPageChange() E:\www\wiki\includes\RecentChange.php:197

[25-Oct-2010 09:57:29] PHP 18. EmailNotification->actuallyNotifyOnPageChange() E:\www\wiki\includes\UserMailer.php:334

[25-Oct-2010 09:57:29] PHP 19. EmailNotification->compose() E:\www\wiki\includes\UserMailer.php:408

[25-Oct-2010 09:57:29] PHP 20. EmailNotification->sendPersonalised() E:\www\wiki\includes\UserMailer.php:537

[25-Oct-2010 09:57:29] PHP 21. UserMailer::send() E:\www\wiki\includes\UserMailer.php:579

This is 1.15.4 the customer uses, but in 1.17 trunk the code is basically the same.

One probably should also check, whether that Mail.php is actually comes from PEAR.


Version: 1.17.x
Severity: enhancement

Details

Reference
bz25642

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:14 PM
bzimport added a project: MediaWiki-Email.
bzimport set Reference to bz25642.
bzimport added a subscriber: Unknown Object (MLST).

cnit wrote:

check, whether pear mail package was installed

Attached:

Patch applied in r75715 with some modifications.