Last modified: 2010-10-31 11:47:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T27642, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25642 - Unclean $wgSMTP pear mail package loading
Unclean $wgSMTP pear mail package loading
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Email (Other open bugs)
1.17.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-25 06:37 UTC by Dmitriy Sintsov
Modified: 2010-10-31 11:47 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
check, whether pear mail package was installed (696 bytes, patch)
2010-10-25 06:39 UTC, Dmitriy Sintsov
Details

Description Dmitriy Sintsov 2010-10-25 06:37:58 UTC
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.
Comment 1 Dmitriy Sintsov 2010-10-25 06:39:09 UTC
Created attachment 7754 [details]
check, whether pear mail package was installed
Comment 2 Alexandre Emsenhuber [IAlex] 2010-10-31 11:47:42 UTC
Patch applied in r75715 with some modifications.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links