• Resolved dkurth

    (@dkurth)


    This plugin worked fine until I updated it 3 days ago.. NOW HUGE crash. Going to disable it until guys get this fixed. This is the PHP error log:

    New PHP errors have been logged on https://virtualhorsesport.com
    Here are the most recent log entries, sorted by severity:

    ———————————————————————-
    1) Fatal error: Uncaught WC_Stripe_Exception: WP_Error Object
    (
    [errors] => Array
    (
    [http_request_failed] => Array
    (
    [0] => cURL error 6: Could not resolve host: api.stripe.com
    )
    )
    [error_data] => Array
    (
    )
    )
    in /home/virtualhorsespor/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:140
    Stack trace:
    #0 /home/virtualhorsespor/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(323): WC_Stripe_API::request(Array, ‘customers/cus_H…’, ‘GET’)
    #1 /home/virtualhorsespor/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-payment-tokens.php(103): WC_Stripe_Customer->get_sources()
    #2 /home/virtualhorsespor/public_html/wp-includes/class-wp-hook.php(287): WC_Stripe_Payment_Tokens->woocommerce_get_customer_payment_tokens(Array, 67, ‘stripe’)
    #3 /home/virtualhorsespor/public_html/wp-includes/plugin.php(206): WP_Hoo in /home/virtualhorsespor/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php on line 140
    ———————————————————————-
    Last seen: 7 mins ago (Aug 30, 18:11:35)
    First seen: 7 mins ago (Aug 30, 18:11:35)
    Total events: 1

    ———————————————————————-
    2) Fatal error: Uncaught WC_Stripe_Exception: WP_Error Object
    (
    [errors] => Array
    (
    [http_request_failed] => Array
    (
    [0] => A valid URL was not provided.
    )
    )
    [error_data] => Array
    (
    )
    )
    in /home/virtualhorsespor/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:140
    Stack trace:
    #0 /home/virtualhorsespor/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(323): WC_Stripe_API::request(Array, ‘customers/cus_H…’, ‘GET’)
    #1 /home/virtualhorsespor/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-payment-tokens.php(103): WC_Stripe_Customer->get_sources()
    #2 /home/virtualhorsespor/public_html/wp-includes/class-wp-hook.php(287): WC_Stripe_Payment_Tokens->woocommerce_get_customer_payment_tokens(Array, 67, ‘stripe’)
    #3 /home/virtualhorsespor/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, in /home/virtualhorsespor/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php on line 140

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    The error you are seeing is a cURL error.

    The error is cURL error 6: Could not resolve host: api.stripe.com

    That means that one of a few things happened:

    * api.stripe.com was down
    * there’s something on your site/server that prevented a connection from happening.

    If it’s the first, there is nothing you can do on your end.

    If it’s the second, you can test this. It’s either a plugin on your site, or a hosting issue. Your host can obviously help narrow this down, but you would also want to do conflict testing.

    This kind of problem is usually caused by either a conflict with your theme or with another plugin.
    ?
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    @slash1andy — not having this problem, but just noticed that the links to Storefront and the more detailed explanation of how to do a conflict test in your post above aren’t actually links/clickable, and I wanted to let you know!

    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Thanks @hastibe

    How odd, looks like something was wrong with the formatting there. Hopefully these work:

    * Storefront – Storefront
    * Conflict Test

    Thanks,

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thread Starter dkurth

    (@dkurth)

    Not the server. Other sites are working fine and this came out of the blue

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Crashes with PHP error’ is closed to new replies.