Ticket #1887 (closed defect: fixed)
QuickPlot + MapGuide 2.3 (SVN)
|Reported by:||wrees||Owned by:|
|Severity:||major||Keywords:||quickplot exceed settings defined by administrator mapguide 2.3|
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.