Opened 16 years ago
Closed 16 years ago
#230 closed defect (fixed)
Fusion is incorrectly assuming that MapGuide will be installed in "webserverextensions"
Reported by: | jbirch | Owned by: | pagameba |
---|---|---|---|
Priority: | P2 | Milestone: | 2.0 |
Component: | MapGuide | Version: | 2.0 - beta |
Severity: | Blocker | Keywords: | |
Cc: | jbirch | Browser: | All |
External ID: | Operating System: | All | |
state: | New |
Description
The MapGuide 2.1 installer allows the user to choose where the web extensions are installed, and the default location is no longer "webserverextensions".
Fusion does not take this into account and, at least, in layers/mapguide/php/common.php breaks when MapGuide is installed in a different location.
Please fix Fusion 2.0 to ensure that all paths are calculated relative to the fusion installation directory.
Attachments (1)
Change History (7)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
it looks like the pertinent code is on line 39/40 of layers/MapGuide/php/Common.php
$defaultInstallDir = dirname(__FILE__)."/../../../../../../"; $defaultExtensionDir = realpath($defaultInstallDir . "webserverextensions/www/");
looks like it should be:
$defaultExtensionDir = dirname(__FILE__)."/../../../../"; $defaultInstallDir = realpath($defaultExtensionDir)."/../../";
and then all would be good. Note that I don't think $defaultInstallDir is used at all. $defaultExtensionDir is only used to find webconfig.ini. If someone could test this change using the attached patch, I can commit ...
by , 16 years ago
Attachment: | installDir.txt added |
---|
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:5 by , 16 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
MG (trunk) is using the 2.0 branch of fusion that does not have this fix.
this is what webconfig.ini is for right?