[FX.php List] Fatal error with 'foundCount'

Dale Bengston dbengston at preservationstudio.com
Tue Sep 27 20:48:39 MDT 2005


Hi William,

Humm. I'm not well versed on the FX_Error Object. Anyone else care to  
interpret?

Dale


On Sep 27, 2005, at 1:01 PM, William Akey wrote:

> Hi Dale,
>
> Thanks for your help. Ahh...yes, I forgot about just printing out the
> results. OK, here is the returned code from the print_r($result);  
> command,
> which I confess I do not fully understand. Maybe you will see  
> something
> useful.
>
> FX_Error Object ( [error_message_prefix] => [mode] => 1 [level] =>  
> 1024
> [code] => 100 [message] => FX: ExecuteQuery XML error: Mismatched  
> tag at
> line 6 [userinfo] => [backtrace] => Array ( [0] => Array ( [file] =>
> c:\Inetpub\wwwroot\FX\FX.php [line] => 1262 [function] => FX_Error  
> [class]
> => FX_Error [type] => ->  [args] => Array ( [0] => ExecuteQuery XML  
> error:
> Mismatched tag at line 6 ) ) [1] => Array ( [file] =>
> c:\Inetpub\wwwroot\FX\FX.php [line] => 1417 [function] => ExecuteQuery
> [class] => FX [type] => ->  [args] => Array ( [0] => -find ) ) [2]  
> => Array
> ( [file] => c:\Inetpub\wwwroot\FX\FX.php [line] => 1641 [function] =>
> FMAction [class] => FX [type] => ->  [args] => Array ( [0] => -find  
> [1] => 1
> [2] => full [3] => 1 ) ) [3] => Array ( [file] =>
> c:\Inetpub\wwwroot\dogwalkers\logon_validate.php [line] => 19  
> [function] =>
> FMFind [class] => FX [type] => ->  [args] => Array ( ) ) )  
> [callback] => )
>
>
> Thanks
>
> William
>
> ----- Original Message -----
> From: "Dale Bengston" <dbengston at preservationstudio.com>
> To: "FX.php Discussion List" <fx.php_list at mail.iviking.org>
> Sent: Tuesday, September 27, 2005 10:31 AM
> Subject: Re: [FX.php List] Fatal error with 'foundCount'
>
>
>
>> Hi William,
>>
>> What do you get on the page if you add...
>>
>> print_r($result);
>>
>> ...above the first if statement? Is it what you expected?
>>
>> Hope this helps,
>> Dale Bengston
>>
>> On Sep 27, 2005, at 12:07 PM, William Akey wrote:
>>
>>
>>> Hi,
>>>
>>> As a learning exercise, I have  been working my way through the
>>> example code
>>> (with some updating for FM7) in chapter 8 of Advanced FileMaker Pro
>>> 6 Web
>>> Development book by Bob Bowers and Steve Lane. However, I have run
>>> into the
>>> following error which I cannot solve:
>>>
>>>  Fatal error: Cannot use object of type FX_Error as array in
>>> c:\Inetpub\wwwroot\dogwalkers\logon_validate.php on line 21
>>>
>>> The code being pointed to is as follows:
>>>
>>> ***************************
>>>
>>> if ($result['foundCount'] == 1) {
>>>
>>> session_set_save_handler
>>> ("sess_open","sess_close","sess_read","sess_write","
>>> sess_destroy","sess_gc");
>>>  setcookie("sid");
>>>  session_start();
>>>  if ($exp) {
>>>    $msg = "Your session has expired.  You must login again.";
>>>    include_once ("logon.php");
>>>    exit;
>>>  }
>>>  $recID = current($result['data']);
>>>  session_register("sessWalkerID");
>>>  session_register("sessWalkerName");
>>>  $sessWalkerID = $recID['WalkerID'][0];
>>>  $sessWalkerName = $recID['WalkerName'][0];
>>>  echo "Logging in... one moment please";
>>>  echo "<meta http-equiv=refresh
>>> content=\"1;url=index.php?area=show_schedule\">";
>>>  exit;
>>> } else {
>>>  $msg = "Unsucessful login attempt.  Please try again.";
>>>  include ("logon.php");
>>> }
>>> ***************************
>>>
>>> I cannot see what is causing the error to occur. Any help with this
>>> would be
>>> appreciated.
>>>
>>> Thanks
>>>
>>> William
>>> _______________________________________________
>>> FX.php_List mailing list
>>> FX.php_List at mail.iviking.org
>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>>
>>>
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>



More information about the FX.php_List mailing list