[fusion-commits] r2467 - trunk/layers/MapGuide/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Nov 22 02:07:51 EST 2011


Author: liuar
Date: 2011-11-21 23:07:51 -0800 (Mon, 21 Nov 2011)
New Revision: 2467

Modified:
   trunk/layers/MapGuide/php/Common.php
Log:
on behalf of yangte
http://trac.osgeo.org/fusion/ticket/493
similar problem happens when the server is down and user click 'Buffer' /'Measure', 'Query', 'Redline'..etc. the message is not wrapped well.
steps:
1. Open a flexible web layout in browser
2. Wait till the session timeout
3. Click 'Buffer' or 'Measure' button in the toolbar
result:
the message is not wrapped well. system directly prints the raw data of response. (refer to attachment 'session expired.png') 

This is because in the Common.php, when catch the exception, it will output extra error message, just remove the line:
echo "{success: false, message:'".$initializationErrorMessage."'}";

Modified: trunk/layers/MapGuide/php/Common.php
===================================================================
--- trunk/layers/MapGuide/php/Common.php	2011-11-22 05:38:00 UTC (rev 2466)
+++ trunk/layers/MapGuide/php/Common.php	2011-11-22 07:07:51 UTC (rev 2467)
@@ -138,7 +138,7 @@
     $initializationErrorDetail = $e->GetDetails();
     $initializationErrorStackTrace = $e->GetStackTrace();
     $initializationErrorOccurred = true;
-    echo "{success: false, message:'".$initializationErrorMessage."'}";
+    //echo "{success: false, message:'".$initializationErrorMessage."'}";
     //DisplayInitializationErrorHTML();
 }
 
@@ -151,7 +151,7 @@
 function DisplayInitializationErrorHTML()
 {
     global $initializationErrorMessage, $initializationErrorDetail;
-    echo "<table class=\"RegText\" border=\"0\" cellspacing=\"0\" width=\"100%%\">";
+    echo "<table class=\"RegText\" border=\"0\" cellspacing=\"0\" width=\"100%\">";
     echo "<tr><td class=\"Title\">Error<hr></td></tr>";
     if($initializationErrorMessage != null)
     {



More information about the fusion-commits mailing list