[FX.php List] Strange... Class 'FX_Error' not found

Jonathan Schwartz jschwartz at exit445.com
Wed Oct 1 09:01:21 MDT 2008


To be clear, it is the file:  FX_Error.php that is not being found. 
The function contained is required throughout Fx.php to handle errors.

The file is loaded (required) on line 18 of fx.php ver 4.51.

Is this the same on your fx.php?

J


At 10:25 AM -0400 10/1/08, DC wrote:
>in order of likelihood:
>
>is the file there exactly where you think it should be? FX.php needs 
>that file to be in the same directory as itself.
>
>when you transferred the files, was it by FTP? did you try forcing 
>different transfer types: for instance, binary or ascii?
>
>is there any extra whitespace in the file? whitespace at the 
>beginning and end of files can cause weird problems.
>
>is there a function name collision? meaning, did you upgrade from 
>PHP4 to PHP5 and forget to remove compatibility functions you wrote 
>that have the same name as PHP5 functions?
>
>dan
>
>
>Ben Bradley wrote:
>>Hi everyone
>>
>>Anyone got any ideas as to why this could be happening?
>>
>>It is driving me nuts, and I just can't explain why FX.php works on 
>>our intranet and our ISP webspace, but not our external hosting 
>>provider!
>>Never had this error with other PHP classes before.
>>
>>Any comments / suggestions on this strange PHP error?
>>
>>Thanks, Ben
>>
>>
>>2008/9/23 Ben Bradley
>>
>>     Hi everyone
>>     I've been using FX.php for many years now and it's excellent.
>>
>>     However I was just trying a new installation with the latest
>>     version, on a PHP5 host connecting to FileMaker Unlimited 6 and in
>>     my PHP error log I'm getting the following error:
>>     [23-Sep-2008 10:17:39] PHP Fatal error:  Class 'FX_Error' not found
>>     in /home/username/public_html/FX/FX.php on line 495
>>
>>     And when I try my test script, I just get a blank screen in Firefox
>>     - zero sized reply according to our IPCop proxy.
>>     This is the PHP code of my test script, which works fine on our
>>     intranet server:
>>
>>     // FMP QUERY
>>     $fmp_query = new FX($fm_server, $fm_port, $fm_schema);
>>     $fmp_query->SetDBData('ECLUB', 'WEB', 7);
>>     $fmp_query->SetDBPassword($fm_pass, $fm_user);
>>     $fmp_query->AddDBParam('WEB PROSHOW FRONT', '*');
>>     $fmp_query->AddSortParam('WEB PROSHOW FRONT', 'ascending');
>>     $fmp_result = $fmp_query->FMFind(true, full, false);
>>     $fmp_found_count = $fmp_result['foundCount'];
>>     $fmp_error_code = $fmp_result['errorCode'];
>>
>>     echo $fmp_found_count.'<br />'.$fmp_error_code;
>>
>>
>>     Anyone got any ideas?
>>     I've never had this error before
>>
>>     Thanks, Ben
>>
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>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


-- 
Jonathan Schwartz
Exit 445 Group
jonathan at exit445.com
http://www.exit445.com
415-370-5011


More information about the FX.php_List mailing list