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.2 Active 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}
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 on a staging site.
This will help rule out any plugin/theme conflicts.
Could you please check if 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.
Logs will appear under WooCommerce > Status > Logs. Use the dropdown menu to select, and view.
The log will be format as follows: woocommerce-gateway-stripe-[date]-[string].log
When enabled, only events that happen after the point of being enabled are logged.
Save changes.
Share the logs here, by pasting them in a service like 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? Once you’ve done that, paste it here in your response.
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.
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 -> manage And 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.
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.
The main settings screen, for Stripe. Direct link to image: https://snipboard.io/Mh6t7b.jpgThis 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.jpgFinally, 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
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.
@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
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.