Bug 397 - [Chameleon]UploadContext widget generates a PHP warning
: [Chameleon]UploadContext widget generates a PHP warning
Status: CLOSED FIXED
: Chameleon
Widget
: 1.99
: PC Linux
: P2 normal
: 1.99 beta 2
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-05-20 13:01 by
Modified: 2004-06-24 13:10 (History)


Attachments


Note

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


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