Last modified: 2010-10-31 11:47:42 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.
Created attachment 7754 [details] check, whether pear mail package was installed
Patch applied in r75715 with some modifications.