[FX.php List] Strange... Class 'FX_Error' not found
Chris Hansen
chris at iViking.org
Wed Oct 1 08:59:23 MDT 2008
In addition to the below, be sure that the permissions on FX_Error.php
are such that the web user can access it... Sometimes during upload
permissions on files will be set to be overly restrictive.
--Chris
On Oct 1, 2008, at 8:25 AM, 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
>
More information about the FX.php_List
mailing list