[FX.php List] Question about an FX error

Dale Bengston dbengston at tds.net
Wed Mar 17 13:58:22 MDT 2010


Whoops. It should be print_r($findResult); Sorry about that.

Dale

On Mar 17, 2010, at 2:52 PM, Bob Patin wrote:

> when i put that in, and comment out all the error-checking stuff, i get this:
> 
> Warning: print_r() expects at least 1 parameter, 0 given in /Volumes/dbraid/WebServer/Documents/php8/ccpsnew/login_process.php on line 22
> 
> I'm convinced that it's not even executing the query... which leads me back to the question of why this works with Tiger Server but not with Leopard Server...
> 
> 
> On Mar 17, 2010, at 2:43 PM, Dale Bengston wrote:
> 
>> Yep. Line 22 is trying to pick something out of your results array, but FX has returned an error object in place of the results array. Try a print_r() on the results variable to echo the error object to the screen.
>> 
>> Dale
>> 
>> On Mar 17, 2010, at 2:32 PM, Steve Winter wrote:
>> 
>>> Hey Bob,
>>> 
>>> Looks like the db query is failing for some reason, and line 22 of the script is expecting an Result object, but is getting an Error object instead.
>>> 
>>> Try examining the result of the query which was presumably executed on line 21, and see what the FM error is, that's failing to get a vlid result object...
>>> 
>>> Cheers
>>> Steve
>>> 
>>> 
>>> On 17 Mar 2010, at 19:20, Bob Patin wrote:
>>> 
>>>> I have a client who just moved from Tiger Server to Leopard Server which runs PHP5, and now a simple little login script is showing this error:
>>>> 
>>>> Fatal error: Cannot use object of type FX_Error as array in /Volumes/dbraid/WebServer/Documents/php8/ccpsnew/login_process.php on line 22
>>>> 
>>>> I'm thinking that it's a PHP setting that's different in 5, but I don't know what it might be; does anyone have an idea what is different in PHP5's defaults in Leopard Server that might cause this?
>>>> 
>>>> Thanks,
>>>> 
>>>> Bob Patin
>>>> bob at patin.com
>>>> _______________________________________________
>>>> FX.php_List mailing list
>>>> FX.php_List at mail.iviking.org
>>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>> 
>>> Steve Winter
>>> steve at bluecrocodile.co.nz
>>> m: +44 77 7852 4776
>>> 3 Calshot Court, Channel Way
>>> Ocean Village, Southampton SO14 3GR
>>> 
>>> _______________________________________________
>>> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20100317/0a93147a/attachment-0001.html


More information about the FX.php_List mailing list