You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In version 4.5.4 of this plugin, a new function wc_stripe was added. That function name conflicts with a function of the same name located in the plugin Stripe For WooCommerce
To Reproduce
Steps to reproduce the behavior:
Download and active Stripe For WooCommerce and WooCommerce Stripe Gateway
On the plugin activation page you should see an activation error showing the function name conflict
Expected behavior
N/A
Screenshots
N/A
Environment (please complete the following information):
WordPress Version 5.5.3
WooCommerce Version 4.7.0
Stripe Plugin Version 4.5.4+
Any other plugins installed: Stripe For WooCommerce
Additional context
If possible, please rename your wc_stripe function to something that does not conflict. I am also looking in to changing my function name but it has been in use since the plugin's creation and so there is a high likely hood that developers have referenced the wc_stripe function in their custom development.
Kind Regards,
The text was updated successfully, but these errors were encountered:
There are quite a few reports of this issue now in the Wordpress.org support threads. I am planning a release today so I'll be updating the function wc_stripe to stripe_wc within my plugin. Please do not use the function name stripe_wc in future releases of your plugin.
There will still be references to the wc_stripe function out in the wild where developers have added custom code to integrate. For that reason I am adding a check where the wc_stripe function will be loaded if your plugin is not active. That means it's still a good idea if you rename your function to something else.
I have another customer that I was working with and they got the same issue as reported: https://wordpress.org/support/topic/installation-breaks-website/ however, they did not have Stripe for WooCommerce from paymentplugins installed. The exact error that happens upon activating Stripe:
Uncaught Error: Call to a member function get_base_city() on null in
Describe the bug
In version
4.5.4
of this plugin, a new functionwc_stripe
was added. That function name conflicts with a function of the same name located in the plugin Stripe For WooCommerceTo Reproduce
Steps to reproduce the behavior:
Expected behavior
N/A
Screenshots
N/A
Environment (please complete the following information):
Additional context
If possible, please rename your
wc_stripe
function to something that does not conflict. I am also looking in to changing my function name but it has been in use since the plugin's creation and so there is a high likely hood that developers have referenced thewc_stripe
function in their custom development.Kind Regards,
The text was updated successfully, but these errors were encountered: