Stripe Installed and Disabled – Breaks Checkout
-
Hi –
If I install the stripe plugin and do not enable it, it throws an error on the checkout page.
Uncaught Error: Please call Stripe() with your publishable key. You used an empty string.
Its installed but disabled – Should this only run if stripe is enabled?
-
HI @integrations,
Are you using a multisite? can you post your WooCommerce status report from WooCommerce >> status?
Cheers!
Hi @spraveenitpro,
Its not a multisite.
I have tried this on a few sites.
This site does have https enabled – not sure why thats not registering in this report.
To replicate the issue:Install the stripe plugin – activate it – do not add a stripe api key – confirm its not enabled in the backend here.
wp-admin/admin.php?page=wc-settings&tab=checkout§ion=stripe
If you go to the checkout page and you get the error in the console. This causes other javascript on the page to not run correctly.
A simple fix is for the user to de-activate the stripe plugin – but if its not enabled then why is the code running on the checkout page?
### WordPress Environment ### WC Version: 3.2.6 Log Directory Writable: ? WP Version: 4.9 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US ### Server Environment ### Server Info: Apache PHP Version: 5.6.22 PHP Post Max Size: 100 MB PHP Time Limit: 0 PHP Max Input Vars: 1000 cURL Version: 7.41.0 OpenSSL/1.0.2a SUHOSIN Installed: – MySQL Version: 5.7.17 Max Upload Size: 100 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 3.2.6 WC Database Prefix: arhd_ MaxMind GeoIP Database: ? Total Database Size: 2.92MB Database Data Size: 2.32MB Database Index Size: 0.60MB arhd_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB arhd_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB arhd_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB arhd_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB arhd_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB arhd_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB arhd_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB arhd_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB arhd_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB arhd_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB arhd_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB arhd_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB arhd_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB arhd_woocommerce_log: Data: 0.02MB + Index: 0.02MB arhd_commentmeta: Data: 0.00MB + Index: 0.00MB arhd_comments: Data: 0.00MB + Index: 0.01MB arhd_ksp_layers: Data: 0.02MB + Index: 0.00MB arhd_ksp_sliders: Data: 0.02MB + Index: 0.00MB arhd_ksp_slides: Data: 0.02MB + Index: 0.00MB arhd_links: Data: 0.00MB + Index: 0.00MB arhd_options: Data: 1.55MB + Index: 0.12MB arhd_postmeta: Data: 0.11MB + Index: 0.03MB arhd_posts: Data: 0.06MB + Index: 0.02MB arhd_revslider_css: Data: 0.13MB + Index: 0.00MB arhd_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB arhd_revslider_navigations: Data: 0.02MB + Index: 0.00MB arhd_revslider_sliders: Data: 0.02MB + Index: 0.00MB arhd_revslider_slides: Data: 0.02MB + Index: 0.00MB arhd_revslider_static_slides: Data: 0.02MB + Index: 0.00MB arhd_termmeta: Data: 0.02MB + Index: 0.03MB arhd_terms: Data: 0.00MB + Index: 0.01MB arhd_term_relationships: Data: 0.00MB + Index: 0.00MB arhd_term_taxonomy: Data: 0.00MB + Index: 0.00MB arhd_usermeta: Data: 0.01MB + Index: 0.01MB arhd_users: Data: 0.00MB + Index: 0.01MB ### Post Type Counts ### attachment: 8 custom_css: 1 nav_menu_item: 11 page: 8 post: 1 product: 3 revision: 19 shop_order: 3 wpcf7_contact_form: 1 ### Security ### Secure connection (HTTPS): ?Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates. Hide errors from visitors: ? ### Active Plugins (11) ### All-in-One WP Migration: by ServMask – 6.60 Black Studio TinyMCE Widget: by Black Studio – 2.5.1 Coming Soon Page & Maintenance Mode by SeedProd: by SeedProd – 5.0.15 Contact Form 7: by Takayuki Miyoshi – 4.9.1 Cyclone Slider Pro: by Nico Amarilla – 2.10.4 Divido Gateway for WooCommerce: by Divido Financial Services Ltd – 1.5.3 – Not tested with the active version of WooCommerce Kadence Slider: by Kadence Themes – 2.2.0 Slider Revolution: by ThemePunch – 5.4.5.1 Page Builder by SiteOrigin: by SiteOrigin – 2.5.14 WooCommerce Stripe Gateway: by WooCommerce – 4.0.4 WooCommerce: by Automattic – 3.2.6 ### Settings ### API Enabled: ? Force SSL: ? Currency: GBP (£) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) ### WC Pages ### Shop base: #10 - / Cart: #11 - /cart/ Checkout: #12 - /checkout/ My account: #13 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Virtue - Premium Child Version: 1.0.0 Author URL: https://haymilcomputers.com Child Theme: ? Parent Theme Name: Virtue - Premium Parent Theme Version: 4.2.4 Parent Theme Author URL: https://www.kadencethemes.com/ WooCommerce Support: ? ### Templates ### Overrides: virtue_premium/woocommerce/archive-product.php virtue_premium/woocommerce/content-product.php virtue_premium/woocommerce/content-product_cat.php virtue_premium/woocommerce/content-single-product.php virtue_premium/woocommerce/loop/loop-end.php virtue_premium/woocommerce/loop/loop-start.php virtue_premium/woocommerce/loop/rating.php virtue_premium/woocommerce/loop/sale-flash.php virtue_premium/product-searchform.php virtue_premium/woocommerce/single-product/add-to-cart/external.php virtue_premium/woocommerce/single-product/add-to-cart/grouped.php virtue_premium/woocommerce/single-product/add-to-cart/simple.php virtue_premium/woocommerce/single-product/add-to-cart/variable.php virtue_premium/woocommerce/single-product/product-image.php virtue_premium/woocommerce/single-product/product-thumbnails.php virtue_premium/woocommerce/single-product/related.php virtue_premium/woocommerce/single-product/sale-flash.php virtue_premium/woocommerce/single-product/title.php virtue_premium/woocommerce/single-product/up-sells.php virtue_premium/woocommerce/single-product.php virtue_premium/woocommerce/taxonomy-product_cat.php virtue_premium/woocommerce/taxonomy-product_tag.php
Thanks for the System Status Report! I managed to reproduce the same problem on a test site. This doesn’t look right to me, so I reported this a bug in the plugin repo. You can keep track of the progress here:
https://github.com/woocommerce/woocommerce-gateway-stripe/issues/508
Have a great day!
- The topic ‘Stripe Installed and Disabled – Breaks Checkout’ is closed to new replies.