• Resolved taurus77

    (@taurus77)


    Fatal error: Uncaught MercadoPagoException: Couldn’t resolve host ‘api.mercadopago.com’ in /www/piochediseno.com/htdocs/wp-content/plugins/woo-mercado-pago-module/mercadopago/sdk/lib/mercadopago.php:853 Stack trace: #0 /www/piochediseno.com/htdocs/wp-content/plugins/woo-mercado-pago-module/mercadopago/sdk/lib/mercadopago.php(883): MPRestClient::exec(Array, ‘2.1.4’) #1 /www/piochediseno.com/htdocs/wp-content/plugins/woo-mercado-pago-module/mercadopago-module.php(127): MPRestClient::get(Array, ‘2.1.4’) #2 /www/piochediseno.com/htdocs/wp-content/plugins/woo-mercado-pago-module/mercadopago/mercadopago-custom-gateway.php(193): WC_WooMercadoPago_Module::get_categories() #3 /www/piochediseno.com/htdocs/wp-content/plugins/woo-mercado-pago-module/mercadopago/mercadopago-custom-gateway.php(71): WC_WooMercadoPagoCustom_Gateway->init_form_fields() #4 /www/piochediseno.com/htdocs/wp-content/plugins/woo-mercado-pago-module/mercadopago/mercadopago-custom-gateway.php(1360): WC_WooMercadoPagoCustom_Gateway->__construct(true) #5 /www/pioch in /www/piochediseno.com/htdocs/wp-content/plugins/woo-mercado-pago-module/mercadopago/sdk/lib/mercadopago.php on line 853

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter taurus77

    (@taurus77)

    In this line:

    private static function exec( $request, $version ) {

    $connect = self::build_request( $request, $version );

    $api_result = curl_exec( $connect );
    $api_http_code = curl_getinfo( $connect, CURLINFO_HTTP_CODE );

    if ( $api_result === FALSE ) {
    Line 853 —-> throw new MercadoPagoException ( curl_error ( $connect ) );
    }

    $response = array(
    ‘status’ => $api_http_code,
    ‘response’ => json_decode( $api_result, true )
    );

    curl_close( $connect );

    return $response;

    }

    Plugin Author Mercado Pago

    (@mercadopago)

    Hi taurus77,
    Thanks for your report. I’ll take a look over it!

    Plugin Author Mercado Pago

    (@mercadopago)

    taurus77,
    I wasn’t able to reproduce your problem here, and by the messages you have posted, it looks like that its a network problem. Can your server ping/resolve connection to MercadoPago server?

    Thread Starter taurus77

    (@taurus77)

    Right now is not making the mistake, I’m sure it was a server problem where is hosted the API

    Plugin Author Mercado Pago

    (@mercadopago)

    Ok, I’ll close this issue.
    If you find any additional problem regarding the plugin, feel free to ask.
    Best regards!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Fatal error: Uncaught MercadoPagoException:’ is closed to new replies.