Centova Technologies Forum

Centova Cast v3 => General discussion => Topic started by: sc2011 on August 06, 2013, 05:21:05 am

Title: WHMCS 5.2.x / Centova 3 cURL [timed_out] => [blocked]
Post by: sc2011 on August 06, 2013, 05:21:05 am
Hi All,

Has anyone come across this problem when auto setting up a new server via WHMCS 5.2.x

Received HTTP response code (); Array ( [wrapper_data] => Array ( [headers] => Array ( ) [readbuf] => Resource id #49 ) [wrapper_type] => cURL [stream_type] => cURL [mode] => rb [unread_bytes] => 0 [seekable] => [uri] => http://www.myserver.com:2199/api.php [timed_out] => [blocked] => 1 [eof] => ) ;

I can access the Centova 3.0.4 find via the Server tab in WHMCS, but can add a product order without the above error.

Thanks
Mike
Title: Re: WHMCS 5.2.x / Centova 3 cURL [timed_out] => [blocked]
Post by: Centova - Steve B. on August 09, 2013, 11:01:04 am
This means PHP on the WHMCS server has been compiled with --with-curlwrappers which is buggy (http://stackoverflow.com/questions/6688039/wrapper-data-is-empty) and known to cause various problems (https://github.com/UnionOfRAD/lithium/issues/59) that have nothing to do with Centova Cast.

The best solution is to not use --with-curlwrappers when building PHP (as it will break not just Centova Cast, but any PHP script that uses the same stream handling features that Centova Cast uses), but we've implemented a workaround for the next build of Centova Cast to accomodate those who don't have control over their PHP build options.
Title: Re: WHMCS 5.2.x / Centova 3 cURL [timed_out] => [blocked]
Post by: mjwebhosting on September 07, 2013, 02:42:18 am
Are you using directadmin on your whmcs server?
If this is the case i have a solution.
i have the same issue and fixed on my servers.
When you install directadmin you need to set on custombuild curl to yes.
This is for centos:

yum install curl -y

to do that:

 cd /usr/local/directadmin/custombuild
./build set curl yes
nano /usr/local/directadmin/custombuild/configure/ap2/configure.php5
--with-curl=/usr/local/lib \
en make sure that line is in that file.
./build php n

And you have a working installation.
Title: Re: WHMCS 5.2.x / Centova 3 cURL [timed_out] => [blocked]
Post by: sc2011 on December 08, 2013, 11:48:47 pm
Problem fixed, I open the outgoing port 2199 on our firewall.