Support » Plugin: WooCommerce Stripe Payment Gateway » Update 2020-11-17 Fatal Error

  • Fatal error: Cannot redeclare wc_stripe() (previously declared in /home/clients/08b38091c8214a32a2c….(numbers continue here)/shop/wp-content/plugins/woo-stripe-payment/includes/class-stripe.php:340) in /home/clients/08b38091c8214a32a2…/shop/wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php on line 57

    I had to use WP Recovery Mode to login to admin area. Then I deactivated plugin and reactivated again. However, a message appeared with info that it cannot be activated due to fatal error. So…I deactivated after all.

    • This topic was modified 5 months, 3 weeks ago by . Reason: mistake
Viewing 1 replies (of 1 total)
  • This error may indicate that you also have the far better Stripe for WooCommerce plugin by Payment Plugins, also available from the WordPress plugins directory at https://wordpress.org/plugins/woo-stripe-payment/

    We were trying out the Stripe for WooCommerce plugin, and found that it works very well, plus it allows you to take manual payments from the admin order screen, which the “official” WooCommerce Stripe Gateway plugin doesn’t do. The two plugins were quite happily co-esxisting until WooCommerce Stripe Gateway decided to either add the new function wc_stripe() or rename a function to wc_stripe().

    This happened on Tuesday at around 2am when an automatic update was performed, and this illustrates the problem with automatic updates – if a developer has no regard for the global namespace, function name clashes like this will happen and crash websites everywhere.

    It could have been avoided if the WooCommerce Stripe Gateway author named the function royho_wc_stripe() or wcsg_stripe()

    The shocking thing is that it is now 48 hours since this disaster and the authors haven’t fixed the error or reverted the change.

    For this reason, we will be sticking with the Stripe for WooCommerce plugin instead.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this review.