Welcome Guest, Not a member yet? Register   Sign In
How can I trap and clean this recurring error?
#1

[eluser]John_Betong[/eluser]
CodeIgniter 2.0

I use the email class and repeatedly get this log-file-error which is preventing users from sending emails:

Code:
ERROR - 2011-02-14 22:41:47 -->
  Severity: Notice  --> iconv()
  [<a href='function.iconv'>function.iconv</a>]:
  Detected an illegal character in input string
   /home/XXXXXX/YYYYY/ZZZZZ/CodeIgniter_2.0.0/system/core/Utf8.php 89
&nbsp;
&nbsp;
&nbsp;
#2

[eluser]Jelmer[/eluser]
You did notice it links to a specific PHP function that explains why this notice might be thrown? Did you check if that might be applicable?
#3

[eluser]John_Betong[/eluser]
[quote author="Jelmer" date="1297891551"]You did notice it links to a specific PHP function that explains why this notice might be thrown? Did you check if that might be applicable?[/quote]

Hi Jelmer,

The error occurs spasmodically when somebody uses the email functions. I have added an error-logging post message to save the $str and will monitor any future occurrences.

I did not notice that iconv(...) was a PHP function and thought it was a CI problem. I also had a quick look at the PHP documentation which was quite involved and will try again tomorrow, hopefully with a clear head and try to resolve the issue.

Many thanks for clarifying the error.
&nbsp;
&nbsp;
&nbsp;




Theme © iAndrew 2016 - Forum software by © MyBB