[FX.php List] Help with error message
Fitzgerald, Theodore C
ted-fitzgerald at uiowa.edu
Fri Oct 30 21:13:05 MDT 2015
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<http://www.igsmasouth.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20151031/3325e94b/attachment.html
More information about the FX.php_List
mailing list