[imp] json_encode errors

Jie Gao J.Gao at isu.usyd.edu.au
Sat Feb 28 02:38:19 UTC 2009


* Jie Gao <J.Gao at isu.usyd.edu.au> wrote:

> Hi All
> 
> horde-webmail-1.2.2
> -------------------
> 
> I am experiencing the following problems:
> 
> 1. In the error log there are such error lines:
> 
> PHP Warning:  json_encode() [<a href='function.json-encode'>function.json-encode</a>]: Invalid UTF-8 sequence in argument in /usr/local/www-mail/horde/lib/Horde/Serialize.php on line 270
 
The line concerned is:

        case SERIALIZE_JSON:
            require_once 'Horde/String.php';
            if (!empty($params)) {
                $data = String::convertCharset($data, $params, 'utf-8');
            }
            if (Util::extensionExists('json')) {
                $data = json_encode($data);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
            } else {
                require_once 'Horde/Serialize/JSON.php';
                $data = Horde_Serialize_JSON::encode($data);
            }
            break;

If this is a problem with json, what would happen if I change it to use
Horde_Serialize_JSON::encode($data) instead?

Regards,



Jie



> The user seems to be using a Chinese OS.
> 
> 
> 2.  In the error log there are such error lines:
> 
> File does not exist: /usr/local/www-mail/horde/imp/mswordAmqQ2l0.png, 
> 
> However, the app puts such files in /tmp. 
> 
> 
> 3.  In the error log there are such error lines:
> 
> - script '/usr/local/www-mail/horde/util/go.php' not found or unable to stat
> - File does not exist: /usr/local/www-mail/horde/pagerror.gif
> - File does not exist: /usr/local/www-mail/horde/imp/StrangeNoGraphicData
> - File does not exist: /usr/local/www-mail/horde/pagerror.gif
> 
> Any help is appreciated.
> 
> 
> 
> Jie
> 
> 
> --
> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org


More information about the imp mailing list