Error : couldn't connect to test host
-
Just installed the plugin with WP e-commerce. When I check out, after click purchase, I got a error:
Error posting eWAY payment to https://www.eway.com.au/gateway_cvn/xmltest/testpage.asp: couldn’t connect to hostI’m using sandbox to test.
With the test ID 87654321, or my test ID. Both not working.Could you tell me what is the problem?
Thanks!
-
G’day Tim,
Are you running this on a local host, or on a hosted website? It could be that your server doesn’t have a current SSL CA root certificate bundle installed; read how to fix that. Are you able to look in the website error logs and see if there is any other error logged?
cheers,
RossHi Ross,
Thanks for your prompt reply!
The site is a hosted website. But I haven’t installed the SSL yet.
Are you mean after I installed SSL it should be fine?
I will show you the error if I can find log.Tim
G’day Tim,
No, I mean that the server should be able to talk to eWAY via SSL — the server needs to know it can trust eWAY’s SSL certificate, which means it needs a Certficate Authority root certificate bundle. Your SSL certificate is so that customers’ web browsers talk to your website via SSL; not having it won’t stop eWAY transactions working.
For easy access to errors in WordPress, turn on
WP_DEBUGandWP_DEBUG_LOGas described in Debugging in WordPress, and download your debug.log file.I just tried a test transaction and the test gateway is working.
cheers,
Ross[ Moderator note: please wrap code in backticks or use the code button. This includes log data. ]
[07-Aug-2013 07:22:14] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 53 [07-Aug-2013 07:22:14] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 69 [07-Aug-2013 07:22:14] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 79 [07-Aug-2013 07:22:14] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/includes/class-theme-my-login.php on line 707 [07-Aug-2013 07:22:14] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php:53) in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-constants.php on line 19 [07-Aug-2013 07:22:14] PHP Notice: add_custom_background is <strong>deprecated</strong> since version 3.4! Use add_theme_support( 'custom-background', $args ) instead. in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-includes/functions.php on line 2871 [07-Aug-2013 07:22:20] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 53 [07-Aug-2013 07:22:20] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 69 [07-Aug-2013 07:22:20] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 79 [07-Aug-2013 07:22:20] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/includes/class-theme-my-login.php on line 707 [07-Aug-2013 07:22:20] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php:53) in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-constants.php on line 19 [07-Aug-2013 07:22:20] PHP Notice: add_custom_background is <strong>deprecated</strong> since version 3.4! Use add_theme_support( 'custom-background', $args ) instead. in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-includes/functions.php on line 2871 [07-Aug-2013 07:22:22] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 53 [07-Aug-2013 07:22:22] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 69 [07-Aug-2013 07:22:22] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 79 [07-Aug-2013 07:22:22] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/includes/class-theme-my-login.php on line 707 [07-Aug-2013 07:22:22] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php:53) in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-constants.php on line 19 [07-Aug-2013 07:22:22] PHP Notice: add_custom_background is <strong>deprecated</strong> since version 3.4! Use add_theme_support( 'custom-background', $args ) instead. in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-includes/functions.php on line 2871 [07-Aug-2013 07:22:23] PHP Notice: Undefined index: language in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/facebook-comments-plugin/class-frontend.php on line 35 [07-Aug-2013 07:22:24] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 53 [07-Aug-2013 07:22:24] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 69 [07-Aug-2013 07:22:24] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 79 [07-Aug-2013 07:22:24] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/includes/class-theme-my-login.php on line 707 [07-Aug-2013 07:22:24] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php:53) in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-constants.php on line 19 [07-Aug-2013 07:22:24] PHP Notice: add_custom_background is <strong>deprecated</strong> since version 3.4! Use add_theme_support( 'custom-background', $args ) instead. in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-includes/functions.php on line 2871 [07-Aug-2013 07:22:24] PHP Notice: Undefined variable: action in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/wpecfeaturedproducts/wpecfeaturedproducts.php on line 231 [07-Aug-2013 07:22:24] PHP Notice: Undefined variable: action in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/wpecfeaturedproducts/wpecfeaturedproducts.php on line 231 [07-Aug-2013 07:22:24] PHP Notice: Undefined variable: action in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/wpecfeaturedproducts/wpecfeaturedproducts.php on line 231 [07-Aug-2013 07:22:24] PHP Notice: Undefined index: language in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/facebook-comments-plugin/class-frontend.php on line 35 [07-Aug-2013 07:22:27] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 53 [07-Aug-2013 07:22:27] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 69 [07-Aug-2013 07:22:27] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 79 [07-Aug-2013 07:22:27] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/includes/class-theme-my-login.php on line 707 [07-Aug-2013 07:22:27] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php:53) in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-constants.php on line 19 [07-Aug-2013 07:22:27] PHP Notice: add_custom_background is <strong>deprecated</strong> since version 3.4! Use add_theme_support( 'custom-background', $args ) instead. in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-includes/functions.php on line 2871 [07-Aug-2013 07:22:30] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 53 [07-Aug-2013 07:22:30] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 69 [07-Aug-2013 07:22:30] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php on line 79 [07-Aug-2013 07:22:30] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/includes/class-theme-my-login.php on line 707 [07-Aug-2013 07:22:30] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/theme-my-login/theme-my-login.php:53) in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-constants.php on line 19 [07-Aug-2013 07:22:30] PHP Notice: add_custom_background is <strong>deprecated</strong> since version 3.4! Use add_theme_support( 'custom-background', $args ) instead. in /var/www/6/cambur.pixellight.com.au/httpdocs/test/wp-includes/functions.php on line 2871Sorry for so much logs. Most of them are from other plugins. I just can’t find eWay errors in there…
G’day Tim,
Sorry for the delay. It sounds like it’s exactly as the error says: wp_remote_post() can’t connect to the eWAY test gateway from your server. There could be any number of reasons for that.
You could try grabbing the error object and dumping it to your error log to see what it says in full:
add_filter('http_response', function($response, $args, $url) { error_log("url: $url"); error_log("args:\n" . print_r($args,1)); error_log("http_response:\n" . print_r($response,1)); return $response; }, 10, 3);That might give you a clue as to what your server’s problem is. You might need to talk to your server’s support people to resolve it though.
cheers,
RossMorning Ross,
Thanks very much!
I will try to debug it. See if I can find the problems.Cheers,
Tim
The topic ‘Error : couldn't connect to test host’ is closed to new replies.