[horde] horde-prefs, CLI, "Horde_Autoloader PEAR package is unavailable"

Vilius Šumskas vilius at lnk.lt
Thu Jul 7 20:26:24 UTC 2011


Sveiki,

Thursday, July 7, 2011, 11:02:07 PM, you wrote:

> On Thu, 2011-07-07 at 15:44 -0400, Adam Tauno Williams wrote:
>> I have a Horde instance that was installed like -
>> pear config-create  \
>>    /srv/www/vhosts/horde /srv/www/vhosts/horde/pear.conf
>> /srv/www/vhosts/horde/pear/pear  \
>>    -c  /srv/www/vhosts/horde/pear.conf \
>>    channel-discover pear.horde.org
>> /srv/www/vhosts/horde/pear/pear \
>>    -c /srv/www/vhosts/horde/pear.conf  install horde/horde_role
>> /srv/www/vhosts/horde/pear/pear \
>>    -c  /srv/www/vhosts/horde/pear.conf   run-scripts horde/Horde_Role
>> /srv/www/vhosts/horde/pear/pear \
>>    -c  /srv/www/vhosts/horde/pear.conf  install horde/horde
>> ...
>> Now I need to use the horde-prefs script to migrate user's preferences
>> from one backend to another.  But I'm stumped as to how to get this CLI
>> script to run:
>>  php -dinclude_dir=/srv/www/vhosts/horde/pear/php -f
>> pear/horde-prefs /tmp/prefs_config.php adam list
>> I've tried many variations of this incantation and it always fails with:
>> The "Horde_Autoloader" PEAR package is unavailable. Install it with
>> "pear install Horde_Autoloader" first!
>> This class *is* installed, but I can't make the script environment find
>> it.
>> /srv/www/vhosts/horde/pear/php/Horde/Autoloader.php

> I got the script to run by just hacking in the line:

> ini_set("include_path", ".:/srv/www/vhosts/horde/pear/php");

> But now it fails with :

> PHP Fatal error:  Uncaught exception 'Horde_Prefs_Exception' with
> message 'This driver needs to be refactored to use Horde_Ldap.'
> in /srv/www/vhosts/horde/pear/php/Horde/Prefs/Storage/Ldap.php:67
> Stack trace:
> #0 /srv/www/vhosts/horde/pear/horde-prefs(83):
> Horde_Prefs_Storage_Ldap->__construct('adam', Array)
> #1 {main}
>   thrown in
> /srv/www/vhosts/horde/pear/php/Horde/Prefs/Storage/Ldap.php
> on line 67

> Looking at that class I see:
>   public function __construct($user, array $params = array())
>   {
>     throw new Horde_Prefs_Exception('This driver needs to be refactored
> to use Horde_Ldap.');
>   ...

> Are LDAP preferences really not implemented in Horde 5?

Correct.

-- 
Best regards,
 Vilius



More information about the horde mailing list