[FX.php List] Odd problem with POST values
    Dale Bengston 
    dale.bengston at gmail.com
       
    Thu Aug 16 15:15:15 MDT 2012
    
    
  
Hi Bob,
When you make an FX call, a successful query sets your results variable to a PHP array. But a query that fails generates a PHP object, which is not an array. What's happening is, your page is processing the results variable assuming it's an array. Since the FX call is failing, you are trying (probably with foreach) to treat an object as an array and PHP is throwing that error.
Just prior to the place where you try to get data out of the results array, print_r() it. That will dump the error object to the screen and you can see what's going on before your PHP chokes on the object in foreach.
Dale
On Aug 16, 2012, at 2:52 PM, Bob Patin wrote:
> Just got an email from my client; here's what OS X Server reports when it fails:
> 
> ... PHP Fatal error: Cannot use object of type FX_Error as array in /Volumes/... on line 68, referer ... and the page...
> 
> Interesting, since I'm don't have an INCLUDE or REQUIRE for 'FX_Error.php;" does it get reference in the FX.php page?
> 
> Could this be an indication of what's up? She's using FM Server 10 Advanced, by the way...
> 
> Thanks,
> 
> Bob Patin
> Longterm Solutions LLC
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> FileMaker 9, 10 & 11 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> --
> Twitter: bobpatin
> Google+: http://www.longtermsolutions.com/plus
> AIM: longterm1954
> iChat: bobpatin
> --
> Expert FileMaker Consulting 
> FileMaker Hosting for all versions of FileMaker
> 
> _______________________________________________
> 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