[Tickets #12724] Local config files not loaded
noreply at bugs.horde.org
noreply at bugs.horde.org
Mon Sep 30 18:45:04 UTC 2013
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/12724
------------------------------------------------------------------------------
Ticket | 12724
Created By | mattf10 at gmail.com
Summary | Local config files not loaded
Queue | Horde Base
Version | 5.1.2
Type | Bug
State | Unconfirmed
Priority | 2. Medium
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
mattf10 at gmail.com (2013-09-30 18:45) wrote:
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.
More information about the bugs
mailing list