6.0.0-beta1
8/7/25

[#3265] PEAR Log module not present = silent error
Summary PEAR Log module not present = silent error
Queue Horde Base
Queue Version 3.0.9
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester hordebug_stan (at) brinkerhoff (dot) org
Created 01/13/2006 (7146 days ago)
Due
Updated 01/13/2006 (7146 days ago)
Assigned
Resolved 01/13/2006 (7146 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/13/2006 08:32:52 PM stan (at) brinkerhoff (dot) org Comment #3 Reply to this comment
Then why don't you make this uniform?  It seems pretty trivial to die 
with an error message, such as VIEW ERROR LOG.  It just dies with no 
message.  Other parts of Horde are a bit smarter.
01/13/2006 06:46:44 PM Jan Schneider Comment #2
State ⇒ Not A Bug
Reply to this comment
It's your job to properly configure (PHP) error logging.
01/13/2006 06:39:32 PM hordebug_stan (at) brinkerhoff (dot) org Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ PEAR Log module not present = silent error
Queue ⇒ Horde Base
Reply to this comment
With display_errors = off in php.ini, a default horde install will 
fail after configuration when the Log pear module is not present.



With display_errors on here is the error:





Warning: main(Log.php): failed to open stream: No such file or 
directory in /var/www/shtml/horde/lib/Horde.php on line 3



Warning: main(): Failed opening 'Log.php' for inclusion 
(include_path='/var/www/shtml/horde/lib:.:/usr/share/pear') in 
/var/www/shtml/horde/lib/Horde.php on line 3

A fatal error has occurred

Failed to import Horde configuration: Notice: Use of undefined 
constant PEAR_LOG_NOTICE - assumed 'PEAR_LOG_NOTICE' in 
/var/www/shtml/horde/config/conf.php on line 33



Installing pear log fixed this, but perhaps horde should verbosely 
complain instead of silently failing when errors are disabled?

Saved Queries