Bug 397

Summary: [Chameleon]UploadContext widget generates a PHP warning
Product: Chameleon Reporter: Normand Savard <nsavard@mapgears.com>
Component: WidgetAssignee: chameleon-dev <chameleon-dev@lists.maptools.org>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: 1.99   
Target Milestone: 1.99 beta 2   
Hardware: PC   
OS: Linux   
Whiteboard:

Description From 2004-05-20 13:01:52
Uploading a context file generates a PHP warning.

Steps to reproduce:

1.  Load the Geobase application (CTIS)
2.  Save a map context.
3.  Open the previously saved context
4.  PHP warning comes out.

Fedora Core 1
Mozilla 1.6
Chamleon tarball 2004-05-13

---------------------------
PHP warning:

[20-May-2004 12:18:42] PHP Warning:  Wrong parameter count for set() in
/home/nsavard/proj/chameleon_beta/htdocs/widgets/UploadContext/UploadContext.phtml
on line 241
------- Comment #1 From 2004-05-20 19:44:52 -------
Not sure what to do about this.  I'll check the UploadContext widget and figure
out if there is an error in there somewhere, but in the mean time, the GeoBase
application is not supposed to be using this widget.  A Geobase-specific widget
was built for uploading contexts, it did something special (i.e. it only allowed
certain layers to be in the application and discarded all other layers from the
uploaded context).  So the UploadContext widget should not be in here at all.

Okay, I have fixed the bug in UploadContext, it was an incomplete line of code
that output php errors inside a javascript comment block so I never saw the
error message :-)
------- Comment #2 From 2004-05-26 08:29:27 -------
It is true that Geobase application is not using this widget.  I modified the
template because there is an error when using the "GeobaseUploadContext" widget
and I though that the widget name changed.  I will open a new bug for the
"GeobaseUploadContext" widget.
------- Comment #3 From 2004-06-24 13:09:55 -------
closing bug
------- Comment #4 From 2004-06-24 13:10:16 -------
closing bug