[FX.php List] Fatal error: Cannot use object of type FX_Error
Dale Bengston
dbengston at preservationstudio.com
Tue Dec 13 19:51:08 MST 2005
Hi William,
What happens when you print_r($result) on the page? Are you getting
what you're expecting back from FX?
-Dale
--
Dale Bengston | Streamline Studio, LLC | dbengston at streamline-studio.com
Associate Member, FileMaker Solutions Alliance
On Dec 13, 2005, at 4:43 PM, William Akey wrote:
> Hi Folks,
>
> I have a situation where I consistently get the following error:
>
> Fatal error: Cannot use object of type FX_Error as array in
> c:\Inetpub\wwwroot\sppc_web\search_results.php on line 67
>
> when I try to access $result['errorCode'] or $result['foundCount'].
>
> If I use: FX::isError($result), then I don't get the Fatal error
> message,
> but there is still an error. When I turn on define("DEBUG", true),
> and use
> Print_r ($result), I get the following page:
>
> ***************************
> Accessing FileMaker Pro 7 data.
>
> Using FileMaker URL:
> http://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=sppc_web.fp7&-
> lay=cgi_cty&-max=20&First_Name.op=eq&First_Name=Michael&-find
>
> 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\sppc_web\search_results.php [line] => 62
> [function] =>
> FMFind [class] => FX [type] => -> [args] => Array ( ) ) )
> [callback] => )
> ***********************************
>
> However, what is unusual is that, if I follow the URL above that is
> generated by the debug process, it works fine and returns perfect
> XML with
> an errorcode of "0" and the exact data that I would expect. I have
> tried
> everything I can think of, including reducing the search page to
> one single
> value and adding only one parameter to the FMFind() call. It seems
> that the
> XML that is being passed to the database works correctly, but
> somehow I still get some unknown error. Since I can't use
> $result['errorCode'], I can't even find out what the error is.
>
> Any help you could provide would be most welcome.
>
> Thanks
>
> William
> _______________________________________________
> 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