[horde] PHP ERRORs when using removeUserData()

Steffen skhorde at smail.inf.fh-bonn-rhein-sieg.de
Sat Nov 2 00:09:53 UTC 2013


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"]

the number of errors varies.

-- 
Steffen


More information about the horde mailing list