[horde] Invalid UTF-8 sequence in argument

Michael M Slusarz slusarz at horde.org
Mon Feb 17 21:57:52 UTC 2014


Quoting Lukas Haase <lukashaase at gmx.at>:

> On 2014-02-10 1:26, Jan Schneider wrote:
>> Zitat von Lukas Haase <lukashaase at gmx.at>:
>>> Hi all,
>>>
>>> After upgrading from Debians old horde+imp to horde groupware 5, I get
>>> for some users the following messeages in the log:
>>>
>>> HORDE: [horde] PHP ERROR: json_encode(): Invalid UTF-8 sequence in
>>> argument [pid 8843 on line 314 of "/usr/share/php/Horde/Prefs/Scope.php"]
>>>
>>> I looked in this file, tried to debug but I couldn't find the problem. I
>>> do not want to reset their settings/preferences.
>>
>> Probably some messed up charset of preference values when changing
>> charset settings during one upgrade in the past. There isn't much you
>> can do than finding out which of their preferences is the culprit, and
>> deleting it.
>
> Thanks, Jan.
>
> Is there a "good" way to debug this? For example, can I export all
> preferences of this user to a file and pipe it through a PHP script with
> a particular function to see in which value it fails?

1. This is (essentially) a harmless error.  It sounds like a single  
pref for a single user is damaged.  Not that big of a deal.

2. If you really want to know what the issue is, catch the error on  
line 314 and output the user/pref/scope information to a debug log.

michael
-- 

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the horde mailing list