[FX.php List] Help with error message

Jon Montgomery fxphp at igsmasouth.org
Sat Oct 31 14:20:19 MDT 2015


Thank you for the tip.  I have read about the var_dump() but did not know why you would use it.  Here is what it said:

Accessing FileMaker Server 7+ data.

Using FileMaker URL:

string(8) "$qResult”

I also turned on DEBUG to get the url but it yields this:

Not Found

The requested URL /fmi/xml/FMPXMLRESULT.xml was not found on this server.

So what does this tell us?

Jon Montgomery, Illinois Grade School Music Assoicaiton - Southern Division

On Oct 30, 2015, at 10:13 PM, Fitzgerald, Theodore C <ted-fitzgerald at uiowa.edu> wrote:

> Jon,
> Maybe you’ve already tried this, but I would suggest dumping out the contents of $qResult using var_dump($qResult); to see what type of object it is (the error message seems to indicate it’s an FX_Error object) and what data it is holding.  That will hopefully give you a bit more information about what is going on.
> Ted
> From: fx.php_list-bounces at mail.iviking.org [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Jon Montgomery
> Sent: Friday, October 30, 2015 2:49 PM
> To: fx.php_list at mail.iviking.org
> Subject: [FX.php List] Help with error message
> Hi,
> I am getting this error message and I have no idea how to fix it.  Your help would be very much welcomed:
> Fatal error: Cannot use object of type FX_Error as array in /Library/WebServer/Documents/IGSMA/test/login_response.php on line 14
> a few days ago working with Bob Patin at Longtermsolutions, who has hosted our FM7 (version 10) databases for many years, helped me with this and we were unable to get it to work on my laptop.  So he loaded it up on one of his FM servers and it all works great.  
> Now, on my MacBook Pro, (Mavericks, FMS14 and FX.PHP) I cannot get this to work.  I have done various un-installs and re-installs of FMS14 and also PHP.  PHP is running, however I am getting this error. 
> Anybody have a clue what I have done to my machine that is causing this?  For the record, work for years with FMStudio and know it’s downfall and am converting to straight “roll your own” FX.PHP.  But it all worked with FM version 10.  
> Here is the code and the offending “Line 14" is marked.
> <?php
> include_once('FX/FX.php');
> include_once('FX/server_data.php');
> $Login_ID = $_POST['Login_ID'];
> $PW = $_POST['Password'];
> $q =new FX($serverIP,$webCompanionPort, $dataSourceType, $scheme);
> $q->SetDBData('IGSMA_Membership.fmp12','login');
> $q->SetDBPassword($webPW,$webUN);
> $q->AddDBParam('Login_ID',$Login_ID);
> $q->AddDBParam('Password',$PW);
> $qResult = $q->FMFind();
> echo $qResult[‘errorCode’];  //this is the line referred to in the error message in Chrome
> Jon Montgomery, Illinois Grade School Music Assoicaiton - Southern Division
> www.igsmasouth.org
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151031/01cf12f6/attachment-0001.html

More information about the FX.php_List mailing list