| Anonymous | Login | Signup for a new account | 21-11-09 01:58 GMT |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Print ] | ||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
| 0004756 | [phplist] Message Send Process | major | always | 17-11-05 09:10 | 08-04-08 14:40 | ||
| Reporter | afx114 | View Status | public | ||||
| Assigned To | |||||||
| Priority | normal | Resolution | fixed | ||||
| Status | resolved | Product Version | 2.10.2 | ||||
| Summary | 0004756: PHPMailer doesn't properly include its language files. | ||||||
| Description |
Many people are experiencing errors with the PHPMailer class but they are extremely difficult to track down because its language files aren't properly included. No proper error messages are printed from PHPMailer because of this. A sample error is: "Mailer Error: Language string failed to load: instantiate" The reason is because while class.phplistmailer is instantiated in /admin, its parent class (class.phpmailer) is instantiated in /admin/phpmailer, so PHPMailer ends up looking for its language files in /admin/language, which of course does not exist. This is a VERY trivial fix. Simply add the following to line 24 of /admin/class.phplistmailer.php: parent::SetLanguage('en','phpmailer/language/'); By passing in that optional second parameter, we allow PHPMailer to finds its language files, which is ABOSULUTELY VITAL to tracking down and solving problems with sending mail. I have made this change and tested it on my own 2.10.2 install and it works great. I can now see the errors PHPMailer is encountering. I don't have the time to get a CVS account, but can someone patch and test this and please check it in if it works for you! Thanks. |
||||||
| Additional Information | |||||||
| Tags | No tags attached. | ||||||
| Attached Files | |||||||
|
|
|||||||
Relationships |
|||||||||||||||||||||
|
|||||||||||||||||||||
Notes |
|
|
(0008799) michiel (administrator) 21-11-05 15:54 |
on the phpmailer mailinglist this issue came up and I thought I'd fixed it by hacking phpmailer to load the correct language files (using dirname(__FILE__) to reference the language files). Sounds like it didn't. Will update for next release |
|
(0010516) bevan (reporter) 09-02-06 19:21 |
Here's a possible solution from the forums http://www.phplist.com/forums/viewtopic.php?p=14332#14332 [^] IN CLASS.PHPLISTMAILER:PHP LINE #4 change this: require( $GLOBALS"coderoot"] . "phpmailer/class.phpmailer.php"); FOR: require( $GLOBALS["coderoot"] . "/phpmailer/class.phpmailer.php"); |
|
(0013090) michiel (administrator) 26-04-06 21:39 |
have fixed this is CVS, but I couldn't recreate the errors, so it's hard to check that it actually fixed the problem. I was able to send via authenticated SMTP though, so it didn't break anything, presumably. |
|
(0035392) theintoy (reporter) 27-10-07 09:48 |
I still had issues in 2.10.5. Having looked through the code and following other fixes I have changed line 24 to: [code] parent::SetLanguage('en',dirname(__FILE__) . '/phpmailer/language/'); [/code] This appears to have resolved the i18n issue for me |
|
(0044334) alfredo_tripicchio (reporter) 08-04-08 10:58 |
Hi everybody, here is what I found out: Version 2.10.2 applied patch from http://mantis.tincan.co.uk/view.php?id=4756 [^] to file lists/admin/class.phplistmailer.php, line 24 substituted parent::PHPMailer(); with parent::SetLanguage('en','phpmailer/language/'); Version 2.10.5 the patch has been included, but still does not work. This is because now I have this in lists/config/config.php define("PHPMAILER",1); whereas I had define("PHPMAILER",0); in older installations, so I never really tested the patch before (duh!) Version 2.10.5 I applied the patch from theintoy (thank you mate!) substituted parent::SetLanguage('en','phpmailer/language/'); with parent::SetLanguage('en',dirname(__FILE__) . '/phpmailer/language/'); and IT WORKS! |
|
(0044364) hernan (developer) 08-04-08 14:40 |
Applied for v2.10.6 |
| Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |