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

Ben Bradley ben at batfastad.com
Wed Oct 1 10:10:52 MDT 2008


Hi guys
Thanks for getting back to me on this!


Yes that's right, line 18 of FX.php contains the
require_once('FX_Error.php')

The permissions on FX_Error.php are the same as FX.php, FX_constants.php and
all my other PHP files: 644
Just tried changing that to 777 temporarily, but still the same error.


To be clear, I've only uploaded:
FX.php
FX_Error.php
FX_constants.php
... from the latest FX.php package
And they're in the root of the webspace along with my fxtest.php test file.
This works fine on my hosting provider's webspace (PHP4), and also on our
test intranet server (PHP5)


I can't see any whitespace anywhere outside the <?php ?> tags in any of the
files.

Still the same error in the error_log generated in the same folder:
[01-Oct-2008 16:52:53] PHP Fatal error:  Class 'FX_Error' not found in
/home/username/public_html/FX.php on line 544


I have the web companion in FMU 6 set on port 591, because our Exchange
server webmail uses 80. Could that be causing any problems with CURL?
(I'm guessing FX.php uses the PHP CURL library?)
Strange though, as it works perfectly from our ISP's webspace!


Any other comments/suggestions?

Thanks so much, Ben


2008/10/1 Jonathan Schwartz <jschwartz at exit445.com>

> 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
>
> _______________________________________________
> 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/20081001/b7594249/attachment.html


More information about the FX.php_List mailing list