[Chameleon] PrintProduction error
kueda at wso.williams.edu
Thu Feb 24 17:30:45 EST 2005
Ok, now I'm consistently getting an error, though now it's a different
one. When I click Printer Friendly Map, I still get a broken image, but
when I directly to the image url (preview.php) I get the following error
if I've selected GIF
Fatal error: Call to a member function on a non-object in
and this if I select PNG or JPEG
be displayed, because it contains errors.
This does NOT occur when I sub in the the chameleon.map mapfile from the
samples directory. This is sort of confusing because I'm using a very
simple and reduced mapfile, that looks like this:
NAME "VTM Data Browse"
EXTENT -363827 -615083 548549 481459
SIZE 410 500
COLOR 153 204 255
COLOR 255 255 204
OUTLINECOLOR 204 204 153
I'm still playing around with it, but I'm still stumped.
Paul Spencer wrote:
> this is very strange. You say that this happens inconsistently. Can
> you identify any pattern that might affect this? Layer visibility,
> scale, fonts chosen, other options? If you can figure out how to
> reliably reproduce this then I might have a chance.
> Ken-ichi wrote:
>> Hi all. I just started experimenting with the PrintProduction widget,
>> and whenever I click the Printer Friendly Map button, I get the
>> following error:
>> Fatal error: [MapServer Error]: msPrepareImage(): Unable to
>> initialize image. in
>> on line 396
>> This occurs in the Enhanced Sample (inconsistently) and within my own
>> application (every time). I tried subbing in the sample's legend
>> template for my own but that had no effect. It seems a weird place
>> for it to get hung up, since the prepareImage() function just
>> generates a blank image handle.
>> Any ideas?
>> Chameleon mailing list
>> Chameleon at lists.maptools.org
More information about the Chameleon