WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Error : couldn't connect to test host

[Resolved] Error : couldn't connect to test host

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author webaware
    Participant

    @webaware

    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,
    Ross

    Tim Yao
    Member

    @timyao1977

    Hi 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

    Plugin Author webaware
    Participant

    @webaware

    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_DEBUG and WP_DEBUG_LOG as 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

    Tim Yao
    Member

    @timyao1977

    [ 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 2871
    Tim Yao
    Member

    @timyao1977

    Sorry for so much logs. Most of them are from other plugins. I just can’t find eWay errors in there…

    Plugin Author webaware
    Participant

    @webaware

    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,
    Ross

    Tim Yao
    Member

    @timyao1977

    Morning Ross,

    Thanks very much!
    I will try to debug it. See if I can find the problems.

    Cheers,

    Tim

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Error : couldn't connect to test host’ is closed to new replies.