[horde] PHP ERRORs when using removeUserData()
Steffen
skhorde at smail.inf.fh-bonn-rhein-sieg.de
Fri Nov 8 07:41:44 UTC 2013
On Sun, 3 Nov 2013, Michael M Slusarz wrote:
> Quoting Steffen <skhorde at smail.inf.fh-bonn-rhein-sieg.de>:
>
>> Michael M Slusarz wrote:
>>> Quoting Steffen <skhorde at smail.inf.fh-bonn-rhein-sieg.de>:
>>>
>>>> On Fri, 18 Oct 2013, Michael M Slusarz wrote:
>>>>
>>>>> Quoting Steffen <skhorde at smail.inf.fh-bonn-rhein-sieg.de>:
>>>>
>>>>> From horde/bin, this script would be much better:
>>>>
>>>> I do not have no /var/www/horde/bin, but you mean /usr/bin? That is
>>>> where I found scripts like kronolith-convert-to-utc, horde-prefs,
>>>> webmail-install, ... . I looked through some of those scripts only and
>>>> merged some code from the wiki to the webmail-install.
>>>>
>>>>> <?php
>>>>> require_once __DIR__ . '/../lib/Application.php';
>>>>> Horde_Registry::appInit('horde', array('cli' => true, 'user_admin' =>
>>>>> true));
>>>>> $value = '<user>';
>>>>> $cli->writeln('Remove user data of ' . $value);
>>>>> $registry->removeUserData($value);
>>>>
>>>> This works :-), I have updated http://wiki.horde.org/RemoveUserData,
>>>> but the errors remain (line numbers still apply):
>>>>
>>>> 9x
>>>> Oct 18 11:19:XX h5 HORDE: [horde] PHP ERROR: Illegal offset type in
>>>> isset or empty [pid 30954 on line 244 of
>>>> "/usr/share/php/Horde/Prefs/Scope.php"]
>>>>
>>>> 66x
>>>> Oct 18 11:19:XX h5 HORDE: [horde] PHP ERROR: rewind() expects
>>>> parameter 1 to be resource, array given [pid 30954 on line 295 of
>>>> "/usr/share/php/Horde/Prefs/Scope.php"]
>>>
>>> These errors have been fixed in the next release of Horde_Prefs.
>>
>> just updated to horde 5.1.5, thanks for the horde-remove-user-data script.
>>
>> I now have 106 errors removing an user, all of this kind:
>> HORDE: [horde] PHP ERROR: Illegal offset type in isset or empty [pid
>> 30369 on line 244 of "/usr/share/php/Horde/Prefs/Scope.php"]
>
> This should have been fixed with Horde_Prefs 2.5.1, released last week.
No unfortunately, not.
I have added a log statement in Horde/Registry.php/RemoveUserData() with
the app name, the number of lines vary a little for horde and imp
depending on whether or not the user exists.
Nov 8 08:29:28 h5 HORDE: [horde] removeUserData() for horde [pid 20007 on line 2600 of "/usr/share/php/Horde/Registry.php"]
3x
Nov 8 08:29:28 h5 HORDE: [horde] PHP ERROR: Illegal offset type in isset or empty [pid 20007 on line 244 of "/usr/share/php/Horde/Prefs/Scope.php"]
Nov 8 08:29:28 h5 HORDE: [horde] removeUserData() for imp [pid 20007 on line 2600 of "/usr/share/php/Horde/Registry.php"]
12x
Nov 8 08:29:28 h5 HORDE: [horde] PHP ERROR: Illegal offset type in isset or empty [pid 20007 on line 244 of "/usr/share/php/Horde/Prefs/Scope.php"]
Nov 8 08:29:28 h5 HORDE: [horde] removeUserData() for ingo [pid 20007 on line 2600 of "/usr/share/php/Horde/Registry.php"]
10x
Nov 8 08:29:28 h5 HORDE: [horde] PHP ERROR: Illegal offset type in isset or empty [pid 20007 on line 244 of "/usr/share/php/Horde/Prefs/Scope.php"]
Nov 8 08:29:28 h5 HORDE: [horde] removeUserData() for kronolith [pid 20007 on line 2600 of "/usr/share/php/Horde/Registry.php"]
10x
Nov 8 08:29:36 h5 HORDE: [horde] PHP ERROR: Illegal offset type in isset or empty [pid 20007 on line 244 of "/usr/share/php/Horde/Prefs/Scope.php"]
Nov 8 08:29:36 h5 HORDE: [horde] removeUserData() for turba [pid 20007 on line 2600 of "/usr/share/php/Horde/Registry.php"]
10x
Nov 8 08:29:36 h5 HORDE: [horde] PHP ERROR: Illegal offset type in isset or empty [pid 20007 on line 244 of "/usr/share/php/Horde/Prefs/Scope.php"]
Nov 8 08:29:36 h5 HORDE: [horde] removeUserData() for nag [pid 20007 on line 2600 of "/usr/share/php/Horde/Registry.php"]
10x
Nov 8 08:29:36 h5 HORDE: [horde] PHP ERROR: Illegal offset type in isset or empty [pid 20007 on line 244 of "/usr/share/php/Horde/Prefs/Scope.php"]
Nov 8 08:29:37 h5 HORDE: [horde] removeUserData() for mnemo [pid 20007 on line 2600 of "/usr/share/php/Horde/Registry.php"]
10x
Nov 8 08:29:37 h5 HORDE: [horde] PHP ERROR: Illegal offset type in isset or empty [pid 20007 on line 244 of "/usr/share/php/Horde/Prefs/Scope.php"]
Nov 8 08:29:37 h5 HORDE: [horde] removeUserData() for trean [pid 20007 on line 2600 of "/usr/share/php/Horde/Registry.php"]
10x
Nov 8 08:29:37 h5 HORDE: [horde] PHP ERROR: Illegal offset type in isset or empty [pid 20007 on line 244 of "/usr/share/php/Horde/Prefs/Scope.php"]
Nov 8 08:29:37 h5 HORDE: [horde] removeUserData() for gollem [pid 20007 on line 2600 of "/usr/share/php/Horde/Registry.php"]
10x
Nov 8 08:29:37 h5 HORDE: [horde] PHP ERROR: Illegal offset type in isset or empty [pid 20007 on line 244 of "/usr/share/php/Horde/Prefs/Scope.php"]
Nov 8 08:29:37 h5 HORDE: [horde] removeUserData() for content [pid 20007 on line 2600 of "/usr/share/php/Horde/Registry.php"]
10x
Nov 8 08:29:37 h5 HORDE: [horde] PHP ERROR: Illegal offset type in isset or empty [pid 20007 on line 244 of "/usr/share/php/Horde/Prefs/Scope.php"]
Nov 8 08:29:37 h5 HORDE: [horde] removeUserData() for timeobjects [pid 20007 on line 2600 of "/usr/share/php/Horde/Registry.php"]
10x
Nov 8 08:29:37 h5 HORDE: [horde] PHP ERROR: Illegal offset type in isset or empty [pid 20007 on line 244 of "/usr/share/php/Horde/Prefs/Scope.php"]
Nov 8 08:29:37 h5 in.imapproxyd[793]: IMAP_Line_Read(): connection closed prematurely.
Package Version State
Horde_ActiveSync 2.8.5 stable
Horde_Alarm 2.0.5 stable
[...]
Horde_Core 2.10.2 stable
[...]
Horde_Perms 2.1.2 stable
Horde_Prefs 2.5.1 stable
Horde_Queue 1.1.1 stable
[...]
Horde_Xml_Wbxml 2.0.1 stable
content 2.0.3 stable
gollem 3.0.1 stable
horde 5.1.5 stable
horde_lz4 1.0.2 stable
imp 6.1.5 stable
ingo 3.1.3 stable
kronolith 4.1.4 stable
mnemo 4.1.2 stable
nag 4.1.3 stable
timeobjects 2.0.4 stable
trean 1.0.3 stable
turba 4.1.3 stable
webmail 5.1.3 stable
--
Steffen
More information about the horde
mailing list