<div dir="ltr">Thanks Jackie,<div>I installed mapguide-rest from source and it works great with MapGuide 4.0 R2</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 24, 2021 at 10:00 AM Jackie Ng <<a href="mailto:jumpinjackie@gmail.com">jumpinjackie@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>This is due to the PHP MgGeoJsonWriter class in mapguide-rest now colliding with the C++ class of the same name introduced in the MapGuide 4.0 API (I am assuming you are using MGOS 4.0). There is already a fix for this, but it is not in the rc5 package, which pre-dates a lot of the 4.0 development work.<br></div><div><br></div><div>Until I revisit mapguide-rest after the 4.0 vanilla SWIG binding work, you'll have to "install from source" to get this fix. Clone the latest master commit of mapguide-rest and install all required dependencies with PHP composer.</div><div><br></div><div>Hope this helps.</div><div><br></div><div>- Jackie</div><div><br></div>You wrote:<div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><pre style="font-family:courier,"courier new",monospace;font-size:14px;white-space:pre-wrap;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">I am getting the following error for the GeoJSON Adaptor in mapguide-rest</pre></div><div><pre style="font-family:courier,"courier new",monospace;font-size:14px;white-space:pre-wrap;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">PHP Fatal error: Cannot redeclare class MgGeoJsonWriter in C:\Program</pre></div><div><pre style="font-family:courier,"courier new",monospace;font-size:14px;white-space:pre-wrap;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">Files\OSGeo\MapGuide\Web\www\rest\app\util\geojsonwriter.php on line</pre></div><div><pre style="font-family:courier,"courier new",monospace;font-size:14px;white-space:pre-wrap;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">21</pre></div><div><pre style="font-family:courier,"courier new",monospace;font-size:14px;white-space:pre-wrap;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"></pre></div><div><pre style="font-family:courier,"courier new",monospace;font-size:14px;white-space:pre-wrap;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">The registration.php is using require_once, so I don't know why the error</pre></div><div><pre style="font-family:courier,"courier new",monospace;font-size:14px;white-space:pre-wrap;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">is coming up...</pre></div></blockquote><div><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><a href="http://themapguyde.blogspot.com" target="_blank">http://themapguyde.blogspot.com</a></div></div></div></div></div></div>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapguide-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
</blockquote></div>