[horde] Class 'Horde_Registry_Application' not found

Paul van der Vlis paul at vandervlis.nl
Sat Aug 6 21:32:26 UTC 2011


Op 06-08-11 22:41, Jan Schneider schreef:
> 
> Zitat von Vilius ?umskas <vilius at lnk.lt>:
> 
>> Sveiki,
>>
>> Saturday, August 6, 2011, 10:33:20 PM, you wrote:
>>
>>> Hello,
>>
>>> After installing Horde framework over pear, I try to run test.php.
>>> But I got this error:
>>> ---------
>>> Warning: set_exception_handler() expects the argument (Horde::fatal) to
>>> be a valid callback in /var/www/horde/lib/core.php on line 52
>>
>>> Warning: set_error_handler() expects the argument (Horde::errorHandler)
>>> to be a valid callback in /var/www/horde/lib/core.php on line 55
>>
>>> Fatal error: Class 'Horde_Registry_Application' not found in
>>> /var/www/horde/lib/Application.php on line 20
>>> ----------
>>
>>> What will be wrong?
>>
>>> With regards,
>>> Paul van der Vlis.
>>
>>> btw, this is what I did to install:
>>
>>> mkdir /var/www/horde
>>> pear config-create /var/www/horde /var/www/horde/pear.conf
>>> pear -c /var/www/horde/pear.conf install pear
>>> /var/www/horde/pear/pear -c /var/www/horde/pear.conf channel-discover
>>> pear.horde.org
>>> /var/www/horde/pear/pear -c /var/www/horde/pear.conf install
>>> horde/horde_role
>>> /var/www/horde/pear/pear -c /var/www/horde/pear.conf run-scripts
>>> horde/horde_role
>>> # Filesystem location for the base Horde application : /var/www/horde
>>> /var/www/horde/pear/pear -c /var/www/horde/pear.conf install -a -B
>>> horde/horde
>>> echo "php_value include_path /var/www/horde/pear/php" >>
>>> /var/www/horde/.htaccess
>>> echo "SetEnv PHP_PEAR_SYSCONF_DIR /var/www/horde" >>
>>> /var/www/horde/.htaccess
>>
>> Your PEAR should *not* be inside Horde base directory.
> 
> That perfectly valid.
> 
> Make sure your .htaccess settings are actually picked by your webserver.

Correct, this was the problem. Thanks.

To make this sure, I placed a page with "<?php phpinfo() ?>" in the
location, and checked the "include_path".  /var/www/horde/pear/php was
not in the "include_path". I've corrected it in the apache config.

And I needed this too, before it worked:
mv /var/www/horde/config/conf.php.dist /var/www/horde/config/conf.php
pico /var/www/horde/config/conf.php
# change "$conf['testdisable'] = true;" to "false".

With regards,
Paul van der Vlis.



-- 
Linux systeembeheer Groningen
http://www.vandervlis.nl


More information about the horde mailing list