Bug 681 - LayerManager2 widget needs absolute paths.
: LayerManager2 widget needs absolute paths.
Status: RESOLVED FIXED
: Chameleon
Widget
: 1.99
: All All
: P2 normal
: 1.99 beta 4
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-10-01 10:19 by
Modified: 2004-12-02 21:30 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-10-01 10:19:26
1.99 beta release (20040923) has broken the LayerManager2 widget with the
following Apache error log message: 
PHP Warning:  [MapServer Error]: generateLegendTemplate(): Error while opening
template file.
 in
/usr/opt/chameleon/chameleon-1.99beta-20040923/htdocs/widgets/LegendTemplate/LegendTemplate.widget.php
on line 503

The problem lies in the LayerManager2/layermanager2_template_en.html and
layermanger_template_fr.html files which contain: <CWC2 TYPE="LegendTemplateLM"
template="layermanager2legend_template.html">  

A work around is to set the template path to a full absolute URL. http://....
------- Comment #1 From 2004-10-21 14:16:06 -------
Changed target to 1.99 RC 1. 

Paul, is this a simple fix, or should we move it to FUTURE?
------- Comment #2 From 2004-10-22 08:33:00 -------
Line 503 no longer contains code that could produce this error (in fact, it just
contains comments) so I am hoping that this is actually fixed already.  I do
know that quite a bit of work was done on the LegendTemplate widget's ability to
find the template in a variety of cases ...

Eric, please test with Beta 3 when it comes out and see if the problem persists ...