Title: Stripe Causing Issue with website
Last modified: January 16, 2024

---

# Stripe Causing Issue with website

 *  Resolved [ermel1881](https://wordpress.org/support/users/ermel1881/)
 * (@ermel1881)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/stripe-causing-issue-with-website/)
 * whille checking my logs there are some issues i have found with stripe conflicting
   with my website
 * When seeking help with this issue, you may be asked for some of the following
   information:
   WordPress version 6.4.2Active theme: xstore-child (version 1.0)Current
   plugin: WooCommerce Stripe Gateway (version 7.9.0)PHP version 8.0.30 Error Details
 * An error of type E_ERROR was caused in line 158 of the file /home/u120610844/
   domains/your_site.com/public_html/wp-content/plugins/woocommerce-gateway-stripe/
   includes/class-wc-gateway-stripe.php. Error message: Uncaught Error: Call to 
   undefined function wc_add_notice() in /home/u120610844/domains/your_site.com/
   public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-
   stripe.php:158
   Stack trace: 0 /home/u120610844/domains/your_site.com/public_html/
   wp-includes/class-wp-hook.php(324): WC_Gateway_Stripe->show_update_card_notice()
   1 /home/u120610844/domains/your_site.com/public_html/wp-includes/class-wp-hook.
   php(348): WP_Hook->apply_filters() 2 /home/u120610844/domains/your_site.com/public_html/
   wp-includes/plugin.php(517): WP_Hook->do_action() 3 /home/u120610844/domains/
   your_site.com/public_html/wp-content/plugins/woocommerce/includes/admin/class-
   wc-admin-profile.php(243): do_action() 4 /home/u120610844/domains/your_site.com/
   public_html/wp-includes/class-wp-hook.php(324): WC_Admin_Profile->save_customer_meta_fields()
   5 /home/u120610844/domains/your_site.com/public_html/wp-includes/class-wp-hook.
   php(348): WP_Hook->apply_filters() 6 /home/u120610844/domains/your_site.com/public_html/
   wp-includes/plugin.php(517): WP_Hook->do_action() 7 /home/u120610844/domains/
   your_site.com/public_html/wp-admin/user-edit.php(148): do_action() 8 /home/u120610844/
   domains/your_site.com/public_html/wp-admin/profile.php(18): require_once(‘/home/
   u12061084…’) 9 {main}
 * thrown

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

 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/stripe-causing-issue-with-website/#post-17346247)
 * Hi there [@ermel1881](https://wordpress.org/support/users/ermel1881/), thanks
   for reaching out!
 * Based on the error message, it seems some functions are missing in your WooCommerce
   installation. To troubleshoot this any further, I would suggest performing [a plugin/them conflict test](https://woo.com/document/how-to-test-for-conflicts/)
   on a staging site.
 * This will help rule out any plugin/theme conflicts.
 * Let us know how it goes.
 *  [backd00r](https://wordpress.org/support/users/backd00r/)
 * (@backd00r)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/stripe-causing-issue-with-website/#post-17347747)
 * Hi!,
 * I’m having the same issue when triying to add user information like the phone
   number.
 * Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function
   wc_add_notice() in /var/www/html/mydomain.com/wp-content/plugins/woocommerce-
   gateway-stripe/includes/class-wc-gateway-stripe.php:158\nStack trace:\n#0 /var/
   www/html/mydomain.com/wp-includes/class-wp-hook.php(324): WC_Gateway_Stripe->
   show_update_card_notice()\n#1 /var/www/html/mydomain.com/wp-includes/class-wp-
   hook.php(348): WP_Hook->apply_filters()\n#2 /var/www/html/mydomain.com/wp-includes/
   plugin.php(517): WP_Hook->do_action()\n#3 /var/www/html/mydomain.com/wp-content/
   plugins/woocommerce/includes/admin/class-wc-admin-profile.php(243): do_action()\
   n#4 /var/www/html/mydomain.com/wp-includes/class-wp-hook.php(324): WC_Admin_Profile-
   >save_customer_meta_fields()\n#5 /var/www/html/mydomain.com/wp-includes/class-
   wp-hook.php(348): WP_Hook->apply_filters()\n#6 /var/www/html/mydomain.com/wp-
   includes/plugin.php(517): WP_Hook->do_action()\n#7 /var/www/html/mydomain.com/
   wp-admin/user-edit.php(157): do_action()\n#8 {main}\n thrown in /var/www/html…’,
   referer: [https://mydomain.com/wp-admin/user-edit.php?user_id=1176&wp_http_referer=%2Fwp-admin%2Fusers.php%3Fs%3Dtoni_%26action%3D-1%26new_role%26layout%3D65a2ca5854247%26paged%3D1%26action2%3D-1%26new_role2](https://mydomain.com/wp-admin/user-edit.php?user_id=1176&wp_http_referer=%2Fwp-admin%2Fusers.php%3Fs%3Dtoni_%26action%3D-1%26new_role%26layout%3D65a2ca5854247%26paged%3D1%26action2%3D-1%26new_role2)
 * I’ve deactivated all the plugins and the problem persits.
 * Best Regards
 *  [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * (@anastas10s)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/stripe-causing-issue-with-website/#post-17347842)
 * Hi there [@ermel1881](https://wordpress.org/support/users/ermel1881/) 👋
 * Thanks for reaching out to Woo Support!
 * > whille checking my logs there are some issues i have found with stripe conflicting
   > with my website
 * [Linked here is line 158](https://github.com/woocommerce/woocommerce-gateway-stripe/blob/90e2665d6b9449f029fbad8851620b3d7830f2bf/includes/class-wc-gateway-stripe.php#L158)
   of the `class-wc-gateway-stripe.php` file.
 * Could you please check if [Saved payment methods](https://woo.com/document/stripe/#saved-payment-methods)
   are currently enabled, and test with temporarily disabling them, to see if the
   issue persists or otherwise?
 * Furthermore, under “Advanced settings”, tick **Log error messages** if you wish
   to save logs that can help you/us troubleshoot your site. This can be disabled
   and enabled as needed.
    1. Logs will appear under **WooCommerce > Status > Logs**. Use the dropdown menu
       to select, and view.
    2.  - The log will be format as follows:
          `woocommerce-gateway-stripe-[date]-[string].
          log`
    3. When enabled, only events that happen **after** the point of being enabled are
       logged.
    4. **Save changes**.
    5. Share the logs here, by pasting them in a service like [https://paste.mozilla.org/](https://paste.mozilla.org/)
       and sharing the link here.
 * To get an idea of how your site is configured, could you please also share a 
   copy of your site’s System Status, [as exemplified here](https://woo.com/document/understanding-the-woocommerce-system-status-report/#system-status)?
   Once you’ve done that, paste it here in your response.
 * Looking forward to hearing from you!
 * —
 * 👋 [@backd00r](https://wordpress.org/support/users/backd00r/)
 * I understand that the log appears similar. We’d like to take a look at your report
   on a separate thread, as each site’s set-up is unique and troubleshooting efforts
   better focused.
 * Please open a new topic here: [https://wordpress.org/support/plugin/woocommerce/#new-topic-0](https://wordpress.org/support/plugin/woocommerce/#new-topic-0).
 * Thanks!
 *  [backd00r](https://wordpress.org/support/users/backd00r/)
 * (@backd00r)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/stripe-causing-issue-with-website/#post-17347924)
 * [@anastas10s](https://wordpress.org/support/users/anastas10s/) thanks for your
   help.
 * I’m going to open a new case, but in order to clarify it, could you please tell
   me if I’m activating correctly the Log error messages? (Sorry my settings are
   in spanish)
 * I do that:
   WooCommerce -> Ajustes (settings) -> Pagos (payments) -> Stripe ->
   manageAnd then:Settings > Advanced settings > Mensajes de registro de errores(
   Error log messages)Because I’m doing that and the error file: `woocommerce-gateway-
   stripe-[date]-[string].log` is not shown.
 * The message is only shown at:
 * fatal-errors-2024-01-16-b1929cc418f092ce0887969384caf533.log
 * Thanks for your help!
    -  This reply was modified 2 years, 4 months ago by [backd00r](https://wordpress.org/support/users/backd00r/).
 *  [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * (@anastas10s)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/stripe-causing-issue-with-website/#post-17347962)
 * 👋 [@backd00r](https://wordpress.org/support/users/backd00r/)
 * > could you please tell me if I’m activating correctly the Log error messages?
 * Happy to! Below, I am attaching a few screenshots, for reference, as a visual
   guide. The caption in each one contains more details.
 * ![](https://i0.wp.com/snipboard.io/Mh6t7b.jpg?ssl=1)
 * The main settings screen, for Stripe. Direct link to image: [https://snipboard.io/Mh6t7b.jpg](https://snipboard.io/Mh6t7b.jpg)
 * ![](https://i0.wp.com/snipboard.io/Ln9Jdo.jpg?ssl=1)
 * This is where the checkbox needs to be checked, towards the end of the settings
   screen mentioned above. Direct link to image: [https://snipboard.io/Ln9Jdo.jpg](https://snipboard.io/Ln9Jdo.jpg)
 * ![](https://i0.wp.com/snipboard.io/JS3pWl.jpg?ssl=1)
 * Finally, in the log screen, there is a search functionality. Feel free to use
   it and scroll to the latest entry for Stripe. Then click the View button. Direct
   link to image: [https://snipboard.io/JS3pWl.jpg](https://snipboard.io/JS3pWl.jpg)
 * I hope this is helpful! Please let us know if you have any further questions 
   or concerns.
   We will be happy to help you further.
 *  [backd00r](https://wordpress.org/support/users/backd00r/)
 * (@backd00r)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/stripe-causing-issue-with-website/#post-17348007)
 * [@anastas10s](https://wordpress.org/support/users/anastas10s/) this is what I
   did, but no error log related to woocommerce is shown.
 * I have removed all the log in order to start in a clean way, but the error is
   only reported at:fatal-errors-2024-01-16-b1929cc418f092ce0887969384caf533.log
 * Something like this:
 * 2024-01-16T15:49:01+00:00 CRITICAL Uncaught Error: Call to undefined function
   wc_add_notice() in /var/www/html/mysite.com/wp-content/plugins/woocommerce-gateway-
   stripe/includes/class-wc-gateway-stripe.php:158 Stack trace: #0 /var/www/html/
   mysite.com/wp-includes/class-wp-hook.php(324): WC_Gateway_Stripe->show_update_card_notice()#
   1 /var/www/html/mysite.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()#
   2 /var/www/htmlmysitecom/wp-includes/plugin.php(517): WP_Hook->do_action() #3/
   var/www/html/mysite.com/wp-content/plugins/woocommerce/includes/admin/class-wc-
   admin-profile.php(243): do_action() #4 /var/www/html/mysitee.com/wp-includes/
   class-wp-hook.php(324): WC_Admin_Profile->save_customer_meta_fields() #5 /var/
   www/html/mysite.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()#
   6 /var/www/html/mysite.com/wp-includes/plugin.php(517): WP_Hook->do_action() #
   7 /var/www/html/mysite.com/wp-admin/user-edit.php(157): do_action() #8 {main}
   thrown en /var/www/html/mysite.com/wp-content/plugins/woocommerce-gateway-stripe/
   includes/class-wc-gateway-stripe.php en la línea 158
 * Thanks for your help.
 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/stripe-causing-issue-with-website/#post-17348047)
 * Hello again [@backd00r](https://wordpress.org/support/users/backd00r/),
 * > I have removed all the log in order to start in a clean way, but the error 
   > is only reported at:fatal-errors-2024-01-16-b1929cc418f092ce0887969384caf533.
   > log
 * It seems you have followed the correct steps but are not getting error messages
   under woocommerce-gateway-stripe-[date]-[string].log. This can therefore imply
   that there are no errors in the Stripe gateway that would trigger the creation
   of the woocommerce-gateway-stripe log file.
 * With that said, could you please open a separate thread with your case, so that
   we don’t mix several troubleshooting sessions in one thread.
 * Even if the symptoms are the same, perhaps the underlying problem is different
   in your case.
 *  [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * (@galbaras)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/stripe-causing-issue-with-website/#post-17355516)
 * Looks like [this was resolved in v7.9.1](https://wordpress.org/plugins/woocommerce-gateway-stripe/#developers).
 *  [Zee](https://wordpress.org/support/users/doublezed2/)
 * (@doublezed2)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/stripe-causing-issue-with-website/#post-17356193)
 * Hello [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * I am glad to hear that your issue was resolved in the latest updated.
 * Please don’t hesitate to contact us again if you have more questions or concerns.
   We are here to help 🙂 
    Best regards.
 *  [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * (@galbaras)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/stripe-causing-issue-with-website/#post-17356651)
 * I’m not the OP and didn’t have this problem. I only referred to the changelog.
 *  [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * (@anastas10s)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/stripe-causing-issue-with-website/#post-17356667)
 * Hi folks 👋
 * > Looks like [this was resolved in v7.9.1](https://wordpress.org/plugins/woocommerce-gateway-stripe/#developers).
 * That seems to be the case, [@galbaras](https://wordpress.org/support/users/galbaras/),
   indeed.
 * Could you verify that the issue is no more on your end, after updating to [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/)
   version 7.9.1, please, [@ermel1881](https://wordpress.org/support/users/ermel1881/)
   and [@backd00r](https://wordpress.org/support/users/backd00r/)? Looking forward
   to hearing from you!
 *  [backd00r](https://wordpress.org/support/users/backd00r/)
 * (@backd00r)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/stripe-causing-issue-with-website/#post-17356748)
 * Hi! [@anastas10s](https://wordpress.org/support/users/anastas10s/)
 * It’s also solved in my side.
 * Thanks for your help!
 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/stripe-causing-issue-with-website/#post-17356800)
 * Hi [@backd00r](https://wordpress.org/support/users/backd00r/),
 * I’m glad we were able to help!

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

The topic ‘Stripe Causing Issue with website’ 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/)

 * 13 replies
 * 6 participants
 * Last reply from: [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/stripe-causing-issue-with-website/#post-17356800)
 * Status: resolved