[mapguide-trac] #1887: QuickPlot + MapGuide 2.3 (SVN)

MapGuide Open Source trac_mapguide at osgeo.org
Tue Dec 13 12:20:57 EST 2011


#1887: QuickPlot + MapGuide 2.3 (SVN)
---------------------------+------------------------------------------------
   Reporter:  wrees        |       Owner:                                                                 
       Type:  defect       |      Status:  new                                                            
   Priority:  low          |   Milestone:  2.3                                                            
  Component:  AJAX Viewer  |     Version:                                                                 
   Severity:  major        |    Keywords:  quickplot exceed settings defined by administrator mapguide 2.3
External_id:               |  
---------------------------+------------------------------------------------
 I've been trying to get the new quickplot feature working in MapGuide 2.3
 SVN.  I kept running into the dreaded:

 The application resources required to generate the plot exceed the
 settings defined by the administrator

 I checked to make sure that PHP was compiled with gd, etc and everything
 was fine on that end.  I'm using the php viewer, and after a bunch of
 digging I found the culprit.

 Line 119 of mapviewerphp/quickplotgeneratepicture.php

         $tempImage = sys_get_temp_dir() . uniqid();

 this makes $tempImage as "/tmp4ee7858739161" causing it to fail to create
 the file.

 A better solution would be to use tempnam() in conjunction with
 sys_get_temp_dir.

 Line 119 of mapviewerphp/quickplotgeneratepicture.php turns into:

         $tempImage = tempnam(sys_get_temp_dir, "mgo");

 Can you please add this fix to the SVN trunk.

 Thanks!

 Warren

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1887>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list