[horde] PHP ERRORs when using removeUserData()

Michael M Slusarz slusarz at horde.org
Fri Oct 25 01:50:02 UTC 2013


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.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the horde mailing list