Bug 852 - [Chameleon] Error Reporting for Users
: [Chameleon] Error Reporting for Users
Status: RESOLVED FIXED
: Chameleon
Core
: 1.99
: PC Windows XP
: P2 blocker
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-11-14 11:33 by
Modified: 2005-01-13 07:57 (History)


Attachments


Note

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


Description From 2004-11-14 11:33:20
(there are 30 bugs regarding errors in Chameleon, so if i could not find the
existing bug i apologize ha, i tried)

When an average user (yes a non-developer) supplies an invalid image path for a
widget and sees the following cryptic message there is TROUBLE:


Warning: imagesx(): supplied argument is not a valid Image resource in
D:\ms4w\apps\chameleon\htdocs\widgets\TrueNorth\TrueNorth.widget.php on line 197

Warning: imagesy(): supplied argument is not a valid Image resource in
D:\ms4w\apps\chameleon\htdocs\widgets\TrueNorth\TrueNorth.widget.php on line 198

Fatal error: [MapServer Error]: msCalculateScale(): Invalid image extent,
minx=0.000000, miny=0.000000, maxx=0.000000, maxy=0.000000. in
D:\ms4w\apps\chameleon\htdocs\widgets\TrueNorth\TrueNorth.widget.php on line 204
------- Comment #1 From 2005-01-11 07:39:18 -------
I just tried this with the latest cvs version of Chameleon by setting the
truenorth image to an invalid value in the sample_enhanced.phtml template and I
received no PHP errors and the following message through the Chameleon error
handler:

TrueNorthWidget: invalid or no image specified.

I've modified it to read:

    * TrueNorth: invalid or no image specified.
    * TrueNorth: images/north_6_a.pngd cannot be found.

which is a little more useful.  I also tested with invalid URLs and invalid
absolute paths and got the same Chameleon error messages.  I'm assuming that I
fixed this problem without seeing this bug, or forgot to update it's status.
------- Comment #2 From 2005-01-11 20:22:26 -------
i verify for relative and absolute paths. 

however when i try a valid URL i get an error through the Chameleon error handler:

* TrueNorth: invalid or no image specified. 
* TrueNorth: http://192.168.2.206/chameleon/skins/default/images/north_6_b.png
cannot be found. 

that URL displays the image when opened in a browser...is this a bug then?
------- Comment #3 From 2005-01-13 07:57:05 -------
that would be a new bug then :)