[FX.php List] Odd problem with POST values

Bob Patin bob at patin.com
Thu Aug 16 15:18:57 MDT 2012


OK, so here's the latest:

I made a copy of the form page and the processing page, made a simple DB with her table in it, put all of this on my pair of servers here in my network.

Same thing happened to me.

So then I took a newer FX folder from another site (I had copied hers over to my server), and it worked fine with as many as 2000 characters. Wrote to Filemaker perfectly.

So tomorrow morning we're going to put up a fresh FX folder on her server and see what happens.

I wonder if this was something that was fixed along the way in FX, and she's just had an older FX folder all this time. I've been working for her for at least 5 years, and she had another consultant before me who probably put the original FX folder on her machine.

So it's not PHP choking, it was FX...


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

On Aug 16, 2012, at 4:15 PM, Dale Bengston <dale.bengston at gmail.com> wrote:

> 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
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20120816/e5ff04c2/attachment.html


More information about the FX.php_List mailing list