[Tickets #11610] config/registry.php fails to detect horde installation path
bugs at horde.org
bugs at horde.org
Wed Oct 31 13:26:40 UTC 2012
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/11610
------------------------------------------------------------------------------
Ticket | 11610
Created By | Thomas Jarosch <thomas.jarosch at intra2net.com>
Summary | config/registry.php fails to detect horde installation
| path
Queue | Horde Framework Packages
Version | Git master
Type | Bug
State | Unconfirmed
Priority | 1. Low
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
Thomas Jarosch <thomas.jarosch at intra2net.com> (2012-10-31 13:26) wrote:
Hi,
horde/config/registry.php of H5 fails to detect my horde installation
path correctly.
At least it does not list any apps after logging in. I've always
worked around this
with a simple tweak in registry.php and totally forgot about it:
-------------
# Fix root directory
$app_fileroot = '/usr/intranator/html/horde';
-------------
I tried to add debug code to dump the "$app_fileroot"
but it's not set in registry.php yet.
Also the example $app_fileroot path
"$app_fileroot = __DIR__ . '../';"
seems broken to me since "__DIR__" does not contain a slash at the end.
Here's my debug code I've added so far:
------------------------------------
diff --git a/horde/config/registry.php b/horde/config/registry.php
index 16e0f61..d899706 100644
--- a/horde/config/registry.php
+++ b/horde/config/registry.php
@@ -66,8 +66,15 @@
// If your applications live in a different base directory, defining these
// variables will change the default directory without the need to change
// every application's 'fileroot'/'webroot' settings.
-// $app_fileroot = __DIR__ . '../';
-// $app_webroot = $this->_detectWebroot();
+
+$app_fileroot = __DIR__ . '../';
+$app_webroot = $this->_detectWebroot();
+$fp = fopen("/tmp/debug_reg.log", "a");
+fprintf($fp, "app_fileroot: $app_fileroot, app_webroot: $app_webroot\n");
+
+# Fix root directory
+$app_fileroot = '/usr/intranator/html/horde';
+
$this->applications = array(
'horde' => array(
------------------------------------
How does the auto detection work normally?
Thomas
More information about the bugs
mailing list