Opened 14 years ago
Closed 14 years ago
#230 closed defect (fixed)
Fusion is incorrectly assuming that MapGuide will be installed in "webserverextensions"
|Reported by:||jbirch||Owned by:||pagameba|
|Component:||MapGuide||Version:||2.0 - beta|
|External ID:||Operating System:||All|
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.
Change History (7)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
|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 , 14 years ago
comment:3 by , 14 years ago
|Status:||assigned → closed|
comment:4 by , 14 years ago
tested with MGOS2.0 and the unofficial MGOS2.1
comment:5 by , 14 years ago
|Status:||closed → reopened|
MG (trunk) is using the 2.0 branch of fusion that does not have this fix.
comment:6 by , 14 years ago
|Status:||reopened → closed|
Fix now applied to branch
this is what webconfig.ini is for right?