[FX.php List] Strange... Class 'FX_Error' not found
Ben Bradley
ben at batfastad.com
Mon Oct 6 02:49:53 MDT 2008
Ok success!
The hosting provider changed the Apache TimeOut (
http://httpd.apache.org/docs/2.0/mod/core.html#timeout) back up to the
default of 300 seconds and now it works perfectly! They must have had the
timeout set really low, like really low 0.5 or something.
And I wasn't convinced that was that setting at first, it seemed unlikely my
script was timing out since it connects/runs perfectly quickly.
However it seems to be working now, so hopefully someone will find that
useful if they are having problems
In my investigations though, I did start looking at the URL that FX.php
builds to make a cURL request.
The URL format is one of those http://username:password@81.xxx.xxx.xxx
:591/....
Because username and password are set in my web security DB so I can control
access.
Does FX.php use the cURL option CURLOPT_USERPWD to build the cURL request?
(see http://uk2.php.net/manual/en/function.curl-setopt.php)
Or does FX.php just tack it onto the URL manually?
Using the CURLOPT_PORT option may also be a good idea for future versions.
This is great, now means I can ditch our incredibly unreliable ISP hosting!
Thanks for all your help!
Ben
2008/10/1 Jonathan Schwartz <jschwartz at exit445.com>
> Ben,
>
> I think that you have 2 problems:
>
> Problem 1
> Fx.php is detecting en error at line 544, and trying to tell you about it.
> Line 544 in fx.php deals with a failed connection. The error message you
> should be seeing is:" cURL could not retrieve Post data in RetrieveFMData().
> A bad URL is the most likely reason"
>
> Problem 2
> The error routine itself is failing for reasons that we have not determined
> yet.
>
> That might...or might not...help.
>
> Jonathan
>
>
> At 5:10 PM +0100 10/1/08, Ben Bradley wrote:
>
> 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
>
>
>
> _______________________________________________
> 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/20081006/44962ca0/attachment-0001.html
More information about the FX.php_List
mailing list