[mapguide-trac] #427: mapviewerphp-error in legend.phpfile(BuildClientSideTree)

MapGuide Open Source trac_mapguide at osgeo.org
Sat Feb 9 01:31:05 EST 2008


#427: mapviewerphp-error in legend.phpfile(BuildClientSideTree)
-----------------------+----------------------------------------------------
   Reporter:  max      |       Owner:       
       Type:  defect   |      Status:  new  
   Priority:  medium   |   Milestone:       
  Component:  General  |     Version:  1.2.0
   Severity:  major    |    Keywords:       
External_id:           |  
-----------------------+----------------------------------------------------
 I think there is error in the legend.php file inside the mapviewerphp
 Folder--

 http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Web/src/mapviewerphp/legend.php#L89


  if($summary)
         {
             $updateType = 0;
             // return only the layer structure, that is mainly
 groups/layers/layer-ids. Do not parse layer definitions.

              BuildClientSideTree($tree, null, "null", false, "layerData",
 null);

 }

 ----------------------------------------------------------------------------------
 function BuildClientSideTree($tree, $parent, $parentName, $fulldata,
 $container, $resSrvc, $layerMap)


 As BuildClientSideTree function is defined in the legend.php file and
 required to pass 7 parameters ,so when we use to call function under the
 $updateType=0, and use only 6 parameters it use to throw error in the
 Apache Web Server error.log file.
 The Above error can be resolved by using-->

 BuildClientSideTree($tree, null, "null", false, "layerData",$resourceSrvc,
 null);
            or
 $layerMap=null;
 BuildClientSideTree($tree, null, "null", false, "layerData",$resourceSrvc,
 $layerMap);

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


More information about the mapguide-trac mailing list