[FX.php List] Fatal error: Cannot use object of type FX_Error as array

Michael Layne fx at 9degrees.com
Tue Aug 2 20:08:40 MDT 2005


Could be that a relationship has changed or a relationship is invalid  
(or simply a field is gone).

I'm not great about checking the error object (thanks for the tip,  
Brion), so I've done a fair bit of troubleshooting...

Occasionally, you have several records that are fine, then you may  
have one where[the specified layout] the relationship is not valid/ 
doesn't exist.  If that is the case on the FileMaker layout, the XML  
has a problem (I think it's a FMP problem anyway).  You will see a  
result similar to yours.  The FIX is to place that related field in a  
PORTAL (of the same relationship).  The XML piece likes that better.

HTH,

Michael


On Aug 2, 2005, at 10:42 AM, Brion Vibber wrote:

> Adam Gamble wrote:
>
>> *Fatal error*: Cannot use object of type FX_Error as array in
>> *C:\apachefriends\xampp\htdocs\includes\contactFunctions.php* on  
>> line *94*
>>
>
> Sounds like you're having an error connecting, but aren't checking for
> the error object. You should check something like this:
>
> if (FX::isError($result)) {
>   echo "Error contacting database: " . $result->getMessage();
>   return false;
> }
> if ($result['errorCode']) {
>   // .....
> }
>
> -- brion vibber (brion @ pobox.com)
> _______________________________________________
> 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