Could not find the language line """" |
[eluser]Unknown[/eluser]
Hi, I'm using the Email library inside my Authentication library. When I send a password to my e-mailadress I'm getting the error "Could not find the language line ''" in my logfiles. When I remove the e-mail part I'm not getting this error. This is my code: Code: if ($this->CI->Auth_model->reset_password($email, $password)) { I'm using Codegigniter 2.0.2. Is this a bug?
[eluser]Michael02[/eluser]
Yes it is a bug, i was just about to post the fix the current code in core/lang.php Code: function line($line = '') should be changed to Code: function line($input = '')
[eluser]Michael02[/eluser]
because i had to look into this function i had to see if i could make it faster and i can make it faster assuming the input line is defined, or its slower heres my test code and results, and yes i test small things like this i have a dedicated controller for it. Code: function line_test_function() and my results Code: Undefined input
[eluser]Unknown[/eluser]
[quote author="Michael02" date="1304398247"]Yes it is a bug, i was just about to post the fix the current code in core/lang.php Code: function line($line = '') should be changed to Code: function line($input = '') Thank you! That worked for me. But now I'm getting the error: Code: ERROR - 2011-05-03 16:36:11 --> Could not find the language line "220 mx.google.com ESMTP y15sm91650eeh.27" (I'm sending via Gmail's SMTP my e-mails)
[eluser]Nom4d3[/eluser]
I think the bug is on Email Library. I fixed this issue changing the lines below on /system/libraries/Email.php Line 1646: Code: $this->_set_error_message($reply); Code: $this->_set_error_message('email_smtp_error', $reply); and Line 1681: Code: $this->_set_error_message($this->_get_smtp_data()); Code: $this->_set_error_message('email_smtp_error', $this->_get_smtp_data());
[eluser]oskarols[/eluser]
[quote author="Nom4d3" date="1308077262"]I think the bug is on Email Library. I fixed this issue changing the lines below on /system/libraries/Email.php Line 1646: Code: $this->_set_error_message($reply); Code: $this->_set_error_message('email_smtp_error', $reply); and Line 1681: Code: $this->_set_error_message($this->_get_smtp_data()); Code: $this->_set_error_message('email_smtp_error', $this->_get_smtp_data()); I was having a poke at this issue as well. While that solution will stop the errors from being pushed to the log, those two lines don't really denote errors at all - they just want to push debugging data to the debug_msg-array. If you ever use the print_debugger method, it will show errors when there aren't any. My temporary fix was to use: Code: $this->debug_msg[] = $reply Code: $this->debug_msg[] = _get_smtp_data() Both of these issues are resolved in the tip of the Codeigniter Reactor repository, although they took a slightly different route. |
Welcome Guest, Not a member yet? Register Sign In |