<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:0 0 0 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" class="gmail_signature" data-smartmail="gmail_signature"><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>