[horde] PHP ERRORs when using removeUserData()
Steffen
skhorde at smail.inf.fh-bonn-rhein-sieg.de
Thu Oct 24 07:12:07 UTC 2013
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"]
I had PEAR updated lately, now I have installed:
Horde_Perms 2.1.1 stable
Horde_Core 2.10.0 stable
horde 5.1.4 stable
--
Steffen
More information about the horde
mailing list