Opened 13 years ago

Closed 13 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.

See MapGuide ticket #930

Attachments (1)

installDir.txt (687 bytes ) - added by pagameba 13 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by zspitzer, 13 years ago

this is what webconfig.ini is for right?

comment:2 by pagameba, 13 years ago

Owner: changed from madair to pagameba
Status: newassigned

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 pagameba, 13 years ago

Attachment: installDir.txt added

comment:3 by madair, 13 years ago

Resolution: fixed
Status: assignedclosed

(In [1822]) closes #230: adjust paths to MG extension directory

comment:4 by madair, 13 years ago

tested with MGOS2.0 and the unofficial MGOS2.1

comment:5 by jng, 13 years ago

Resolution: fixed
Status: closedreopened

MG (trunk) is using the 2.0 branch of fusion that does not have this fix.

comment:6 by jng, 13 years ago

Resolution: fixed
Status: reopenedclosed

Fix now applied to branch

Note: See TracTickets for help on using tickets.