Title: Crashes with PHP error
Last modified: August 31, 2020

---

# Crashes with PHP error

 *  Resolved [dkurth](https://wordpress.org/support/users/dkurth/)
 * (@dkurth)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/crashes-with-php-error/)
 * 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](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 [slash1andy](https://wordpress.org/support/users/slash1andy/)
 * (@slash1andy)
 * Automattic Happiness Engineer
 * [5 years, 9 months ago](https://wordpress.org/support/topic/crashes-with-php-error/#post-13346323)
 * 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:
    - 
    - Disable all plugins except for WooCommerce
    - Repeat the action that is causing the problem
 * 
 *  [hastibe](https://wordpress.org/support/users/hastibe/)
 * (@hastibe)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/crashes-with-php-error/#post-13359585)
 * [@slash1andy](https://wordpress.org/support/users/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](https://wordpress.org/support/users/dougaitken/)
 * (@dougaitken)
 * Automattic Happiness Engineer
 * [5 years, 9 months ago](https://wordpress.org/support/topic/crashes-with-php-error/#post-13371860)
 * Thanks [@hastibe](https://wordpress.org/support/users/hastibe/)
 * How odd, looks like something was wrong with the formatting there. Hopefully 
   these work:
 * * Storefront – [Storefront](https://www.woocommerce.com/storefront)
    * [Conflict Test](https://docs.woocommerce.com/document/how-to-test-for-conflicts/)
 * Thanks,
 *  Plugin Support [slash1andy](https://wordpress.org/support/users/slash1andy/)
 * (@slash1andy)
 * Automattic Happiness Engineer
 * [5 years, 8 months ago](https://wordpress.org/support/topic/crashes-with-php-error/#post-13406229)
 * 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](https://wordpress.org/support/users/dkurth/)
 * (@dkurth)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/crashes-with-php-error/#post-13406234)
 * 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.

 * ![](https://ps.w.org/woocommerce-gateway-stripe/assets/icon-256x256.png?rev=3177277)
 * [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [dkurth](https://wordpress.org/support/users/dkurth/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/crashes-with-php-error/#post-13406234)
 * Status: resolved