6.0.0-beta1
9/2/25

[#12724] Local config files not loaded
Summary Local config files not loaded
Queue Horde Base
Queue Version 5.1.2
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester mattf10 (at) gmail (dot) com
Created 09/30/2013 (4355 days ago)
Due
Updated 10/07/2013 (4348 days ago)
Assigned
Resolved 10/07/2013 (4348 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/07/2013 03:24:16 PM Jan Schneider Comment #2
State ⇒ Not A Bug
Reply to this comment
This check is correct. You have an error in your configuration file.
09/30/2013 06:45:03 PM mattf10 (at) gmail (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Local config files not loaded
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ No
Reply to this comment
I created a local config file "imp/config/backends.local.php" and it 
fails to load.  The message in the syslog is: [imp] Failed to import 
configuration file ... on line 379 of "/usr/share/php/Horde.php"

Looking at the code, we see this if statment:

if (!empty($output) && !$show_output) {
                 /* Horde 3 -> 4 conversion checking. This is the only place
                  * to catch PEAR_LOG errors. */
                 if ($log_check &&
                     isset($conf['log']['priority']) &&
                     (strpos($conf['log']['priority'], 'PEAR_LOG_') 
!== false)) {
                     $conf['log']['priority'] = 'INFO';
                     self::log('Logging priority is using the old 
PEAR_LOG constant', 'INFO');
                 } else {
                     throw new Horde_Exception(sprintf('Failed to 
import configuration file "%s": ', $file) . strip_tags($output));
                 }
             }

In the code above, all local files have $log_check = 0, which causes 
this if statement to fail and throw an exception every time.

So I cannot use any .local files because this check causes them not to load.

Saved Queries