[fx.php_list] Diagnosing an FX_Error ?

  • From: Troy Meyers <tcmeyers@xxxxxxxxxxxxxx>
  • To: FX.php List <fx.php_list@xxxxxxxxxxxxx>
  • Date: Thu, 6 Apr 2017 18:18:09 -0700

To try to identify when something goes wrong, at the top of all of my 
FX-reliant PHP pages I've got a series of trials, that is, checking if I can 
get a socket to the WPE, and then next a simple query test:

        //Check if a findany to an available table works
        $pageObj=new FX($dbHost,$port,$dbType,$conType);
        $pageObj->setDBPassword($dbPass,$dbUser);
        $pageObj->setDBData($dbName,$testLayout, 'all');
        $pageData = $pageObj->FMFindAny();
        if ( is_object($pageData) ){
                // Likely an FX_Error if it's an object
                $errordisplay = $pageData->message;
        } else {
                $errordisplay = $pageData['errorCode'];
        }

So, I get the FileMaker errors, but can also get the FX errors.

I've started seeing this one, and I can bring it on by loading a simple page, 
and refreshing it over and over and over until it occurs. Here's the FX message=

FX: ExecuteQuery XML error: Invalid character at line 1

Where do I go from here figuring out what's up?

Troy
_____________________________________________________________________
     FX.php Official Web Site -- http://fx.iviking.org/
FX.php Official Mailing List -- //www.freelists.org/list/fx.php_list
     (Subscribe, unsubscribe, and more at the mailing list site!)

                  FX.php_List@xxxxxxxxxxxxxxxx

Other related posts: