Bad Gateway ( 502 ) Woocommerce / stripe
-
Hi, I am using WooCommerce with Stripe enabled in test mode on a staging site I’m developing.
The staging site is https://nzpainter.staging.wpengine.com
The woocommerce status report is at the bottom of this post. It is followed by an example of a response from Stripe when I, as a logged-in user, attempt to make a purchase from the site’s store.
The result is a woocommerce error box with the message : Bad gateway. Link to screenshot below.
Screenshot of the response page
Note that I’m using an intermediate version of woocommerce because it’s the only one which would allow editing of individual products’ properties, such as the lessons etc the products belong to.
Please help, I’ve tried everything I can think of, including tweaking settings, changing versions of WordPress, enabling / disabling plugins, changing WooCommerce versions.
Following is the WooCommerce status report, and after that, an example of the response from stripe.
Thanks in advance for any help you can give.### WordPress Environment ### Home URL: https://nzpainter.staging.wpengine.com Site URL: https://nzpainter.staging.wpengine.com WC Version: 3.2.0 Log Directory Writable: ? WP Version: 4.9.1 WP Multisite: – WP Memory Limit: 964 MB WP Debug Mode: – WP Cron: ? Language: en_US ### Server Environment ### Server Info: Apache PHP Version: 5.6.31-4+wpengine10 PHP Post Max Size: 100 MB PHP Time Limit: 3600 PHP Max Input Vars: 1000 cURL Version: 7.35.0 OpenSSL/1.0.1f SUHOSIN Installed: – MySQL Version: 5.6.37 Max Upload Size: 50 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? WCS_DEBUG: ? No Subscriptions Mode: ? Live ### Database ### WC Database Version: 3.2.0 WC Database Prefix: wp_ MaxMind GeoIP Database: ? Total Database Size: 114.81MB Database Data Size: 76.28MB Database Index Size: 38.53MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.01MB wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.01MB wp_woocommerce_order_items: Data: 0.01MB + Index: 0.01MB wp_woocommerce_order_itemmeta: Data: 0.04MB + Index: 0.04MB wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB bpm_commerce: Data: 0.02MB + Index: 0.00MB bpm_profile: Data: 0.02MB + Index: 0.00MB bpm_settings: Data: 0.02MB + Index: 0.00MB wp_ajaxsearchpro: Data: 0.14MB + Index: 0.00MB wp_ajaxsearchpro_priorities: Data: 0.02MB + Index: 0.00MB wp_ajaxsearchpro_statistics: Data: 0.02MB + Index: 0.00MB wp_arf_ar: Data: 0.02MB + Index: 0.00MB wp_arf_autoresponder: Data: 0.02MB + Index: 0.00MB wp_arf_entries: Data: 0.02MB + Index: 0.00MB wp_arf_entry_values: Data: 0.02MB + Index: 0.00MB wp_arf_fields: Data: 0.44MB + Index: 0.00MB wp_arf_forms: Data: 0.22MB + Index: 0.00MB wp_arf_form_sets: Data: 0.02MB + Index: 0.00MB wp_arf_paypal_forms: Data: 0.02MB + Index: 0.00MB wp_arf_paypal_order: Data: 0.02MB + Index: 0.00MB wp_arf_ref_forms: Data: 0.02MB + Index: 0.00MB wp_arf_user_registration_forms: Data: 0.02MB + Index: 0.00MB wp_arf_views: Data: 0.02MB + Index: 0.00MB wp_asp_index: Data: 0.36MB + Index: 0.00MB wp_bbpas: Data: 0.02MB + Index: 0.00MB wp_bp_activity: Data: 1.52MB + Index: 0.00MB wp_bp_activity_meta: Data: 0.34MB + Index: 0.00MB wp_bp_friends: Data: 0.02MB + Index: 0.00MB wp_bp_groups: Data: 0.13MB + Index: 0.00MB wp_bp_groups_groupmeta: Data: 0.06MB + Index: 0.00MB wp_bp_groups_members: Data: 0.02MB + Index: 0.00MB wp_bp_messages_messages: Data: 0.02MB + Index: 0.00MB wp_bp_messages_meta: Data: 0.02MB + Index: 0.00MB wp_bp_messages_notices: Data: 0.02MB + Index: 0.00MB wp_bp_messages_recipients: Data: 0.02MB + Index: 0.00MB wp_bp_notifications: Data: 0.02MB + Index: 0.00MB wp_bp_notifications_meta: Data: 0.02MB + Index: 0.00MB wp_bp_profilevisits: Data: 0.02MB + Index: 0.00MB wp_bp_user_blogs: Data: 0.02MB + Index: 0.00MB wp_bp_user_blogs_blogmeta: Data: 0.02MB + Index: 0.00MB wp_bp_xprofile_data: Data: 5.52MB + Index: 0.00MB wp_bp_xprofile_fields: Data: 0.02MB + Index: 0.00MB wp_bp_xprofile_groups: Data: 0.02MB + Index: 0.00MB wp_bp_xprofile_meta: Data: 0.02MB + Index: 0.00MB wp_buddyboss_media: Data: 0.02MB + Index: 0.00MB wp_buddyboss_media_albums: Data: 0.02MB + Index: 0.00MB wp_commentmeta: Data: 0.02MB + Index: 0.00MB wp_comments: Data: 0.13MB + Index: 0.00MB wp_cwa: Data: 0.00MB + Index: 0.00MB wp_datalist: Data: 0.00MB + Index: 0.00MB wp_ewwwio_images: Data: 0.02MB + Index: 0.00MB wp_filemeta: Data: 0.00MB + Index: 0.00MB wp_gf_addon_feed: Data: 0.02MB + Index: 0.00MB wp_gf_addon_payment_callback: Data: 0.02MB + Index: 0.00MB wp_gf_addon_payment_transaction: Data: 0.02MB + Index: 0.00MB wp_gglcptch_whitelist: Data: 0.02MB + Index: 0.00MB wp_groups_rs: Data: 0.02MB + Index: 0.00MB wp_hmp_playlist: Data: 0.00MB + Index: 0.00MB wp_hmp_rating: Data: 0.00MB + Index: 0.00MB wp_ihc_security_login: Data: 0.02MB + Index: 0.00MB wp_ihc_user_logs: Data: 0.02MB + Index: 0.00MB wp_layerslider: Data: 0.04MB + Index: 0.00MB wp_learnpress_order_itemmeta: Data: 0.02MB + Index: 0.00MB wp_learnpress_order_items: Data: 0.02MB + Index: 0.00MB wp_learnpress_question_answers: Data: 0.02MB + Index: 0.00MB wp_learnpress_quiz_questions: Data: 0.02MB + Index: 0.00MB wp_learnpress_review_logs: Data: 0.02MB + Index: 0.00MB wp_learnpress_sections: Data: 0.02MB + Index: 0.00MB wp_learnpress_section_items: Data: 0.02MB + Index: 0.00MB wp_learnpress_user_courses: Data: 0.02MB + Index: 0.00MB wp_learnpress_user_quizmeta: Data: 0.02MB + Index: 0.00MB wp_learnpress_user_quizzes: Data: 0.02MB + Index: 0.00MB wp_links: Data: 0.00MB + Index: 0.00MB wp_mc4wp_log: Data: 0.02MB + Index: 0.00MB wp_mpp_logs: Data: 0.02MB + Index: 0.00MB wp_options: Data: 5.52MB + Index: 1.73MB wp_phppc_functions: Data: 0.02MB + Index: 0.00MB wp_pmpro_membership_levelmeta: Data: 0.02MB + Index: 0.00MB wp_postmeta: Data: 28.56MB + Index: 12.03MB wp_posts: Data: 10.52MB + Index: 1.23MB wp_revslider_css: Data: 0.13MB + Index: 0.00MB wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB wp_revslider_sliders: Data: 0.02MB + Index: 0.00MB wp_revslider_slides: Data: 0.02MB + Index: 0.00MB wp_revslider_static_slides: Data: 0.02MB + Index: 0.00MB wp_rg_form: Data: 0.02MB + Index: 0.00MB wp_rg_form_meta: Data: 0.08MB + Index: 0.00MB wp_rg_form_view: Data: 0.05MB + Index: 0.03MB wp_rg_incomplete_submissions: Data: 0.02MB + Index: 0.02MB wp_rg_lead: Data: 0.02MB + Index: 0.03MB wp_rg_lead_detail: Data: 0.02MB + Index: 0.06MB wp_rg_lead_detail_long: Data: 0.02MB + Index: 0.00MB wp_rg_lead_meta: Data: 0.02MB + Index: 0.05MB wp_rg_lead_notes: Data: 0.02MB + Index: 0.03MB wp_rg_paypalpro: Data: 0.02MB + Index: 0.02MB wp_rg_paypalpro_transaction: Data: 0.02MB + Index: 0.05MB wp_role_scope_rs: Data: 0.02MB + Index: 0.03MB wp_rspointexpiry: Data: 0.00MB + Index: 0.00MB wp_rsrecordpoints: Data: 0.00MB + Index: 0.00MB wp_rs_templates_email: Data: 0.00MB + Index: 0.00MB wp_rt_rtm_activity: Data: 0.02MB + Index: 0.05MB wp_rt_rtm_api: Data: 0.02MB + Index: 0.00MB wp_rt_rtm_media: Data: 0.02MB + Index: 0.11MB wp_rt_rtm_media_interaction: Data: 0.02MB + Index: 0.00MB wp_rt_rtm_media_meta: Data: 0.02MB + Index: 0.00MB wp_scormcloudinvitationregs: Data: 0.02MB + Index: 0.00MB wp_scormcloudinvitations: Data: 0.02MB + Index: 0.00MB wp_signups: Data: 0.02MB + Index: 0.06MB wp_Spider_Video_Player_player: Data: 0.00MB + Index: 0.00MB wp_Spider_Video_Player_playlist: Data: 0.00MB + Index: 0.00MB wp_Spider_Video_Player_tag: Data: 0.00MB + Index: 0.00MB wp_Spider_Video_Player_theme: Data: 0.00MB + Index: 0.00MB wp_Spider_Video_Player_video: Data: 0.00MB + Index: 0.00MB wp_strong_views: Data: 0.02MB + Index: 0.00MB wp_sumo_reward_encashing_submitted_data: Data: 0.00MB + Index: 0.00MB wp_sumo_reward_send_point_submitted_data: Data: 0.00MB + Index: 0.00MB wp_termmeta: Data: 0.06MB + Index: 0.00MB wp_terms: Data: 0.05MB + Index: 0.00MB wp_term_relationships: Data: 0.19MB + Index: 0.00MB wp_term_taxonomy: Data: 0.05MB + Index: 0.00MB wp_user2group_rs: Data: 0.02MB + Index: 0.02MB wp_user2role2object_rs: Data: 0.02MB + Index: 0.06MB wp_usermeta: Data: 13.52MB + Index: 19.03MB wp_users: Data: 2.52MB + Index: 2.52MB wp_wc_comments_subscription: Data: 0.00MB + Index: 0.00MB wp_wc_phrases: Data: 0.00MB + Index: 0.00MB wp_wc_points_rewards_user_points: Data: 0.34MB + Index: 0.36MB wp_wc_points_rewards_user_points_log: Data: 0.48MB + Index: 0.47MB wp_wc_users_voted: Data: 0.00MB + Index: 0.00MB wp_wfBadLeechers: Data: 0.02MB + Index: 0.00MB wp_wfBlockedIPLog: Data: 0.02MB + Index: 0.00MB wp_wfBlocks: Data: 0.02MB + Index: 0.02MB wp_wfBlocksAdv: Data: 0.02MB + Index: 0.00MB wp_wfConfig: Data: 2.52MB + Index: 0.00MB wp_wfCrawlers: Data: 0.02MB + Index: 0.00MB wp_wfFileMods: Data: 0.02MB + Index: 0.00MB wp_wfHits: Data: 0.02MB + Index: 0.05MB wp_wfHoover: Data: 0.02MB + Index: 0.02MB wp_wfIssues: Data: 0.02MB + Index: 0.00MB wp_wfLeechers: Data: 0.02MB + Index: 0.00MB wp_wfLockedOut: Data: 0.02MB + Index: 0.00MB wp_wfLocs: Data: 0.02MB + Index: 0.00MB wp_wfLogins: Data: 0.02MB + Index: 0.03MB wp_wfNet404s: Data: 0.02MB + Index: 0.02MB wp_wfReverseCache: Data: 0.02MB + Index: 0.00MB wp_wfScanners: Data: 0.02MB + Index: 0.00MB wp_wfStatus: Data: 0.02MB + Index: 0.03MB wp_wfThrottleLog: Data: 0.02MB + Index: 0.02MB wp_wfVulnScanners: Data: 0.02MB + Index: 0.00MB wp_woocommerce_subscription_downloads: Data: 0.02MB + Index: 0.00MB wp_woof_query_cache: Data: 0.02MB + Index: 0.02MB wp_wpam_actions: Data: 0.02MB + Index: 0.00MB wp_wpam_affiliates: Data: 0.02MB + Index: 0.00MB wp_wpam_affiliates_fields: Data: 0.02MB + Index: 0.00MB wp_wpam_creatives: Data: 0.02MB + Index: 0.00MB wp_wpam_events: Data: 0.02MB + Index: 0.00MB wp_wpam_impressions: Data: 0.02MB + Index: 0.00MB wp_wpam_messages: Data: 0.02MB + Index: 0.00MB wp_wpam_paypal_logs: Data: 0.02MB + Index: 0.00MB wp_wpam_tracking_tokens: Data: 0.02MB + Index: 0.00MB wp_wpam_tracking_tokens_purchase_logs: Data: 0.02MB + Index: 0.00MB wp_wpam_transactions: Data: 0.02MB + Index: 0.00MB wp_wpc_comments_subscription: Data: 0.00MB + Index: 0.00MB wp_wpc_phrases: Data: 0.00MB + Index: 0.01MB wp_wpc_users_voted: Data: 0.00MB + Index: 0.01MB wp_wpfront_ure_options: Data: 0.02MB + Index: 0.00MB wp_wpsp_agent_settings: Data: 0.02MB + Index: 0.00MB wp_wpsp_attachments: Data: 0.02MB + Index: 0.00MB wp_wpsp_canned_reply: Data: 0.02MB + Index: 0.00MB wp_wpsp_catagories: Data: 0.02MB + Index: 0.00MB wp_wpsp_custom_fields: Data: 0.02MB + Index: 0.00MB wp_wpsp_custom_priority: Data: 0.02MB + Index: 0.00MB wp_wpsp_custom_status: Data: 0.02MB + Index: 0.00MB wp_wpsp_faq: Data: 0.02MB + Index: 0.00MB wp_wpsp_faq_catagories: Data: 0.02MB + Index: 0.00MB wp_wpsp_panel_custom_menu: Data: 0.02MB + Index: 0.00MB wp_wpsp_ticket: Data: 0.02MB + Index: 0.00MB wp_wpsp_ticket_thread: Data: 0.02MB + Index: 0.00MB wp_wsluserscontacts: Data: 0.02MB + Index: 0.02MB wp_wslusersprofiles: Data: 0.02MB + Index: 0.03MB wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB ### Post Type Counts ### accordion: 1 accordion-items: 1 accordion_post: 1 acf: 2 attachment: 2865 audioplayer: 1 bp-email: 16 certificate: 1 certificate_template: 2 chronosly: 1 chronosly_calendar: 1 chronosly_organizer: 1 chronosly_places: 1 course: 90 ct_size_guide: 2 custom_css: 1 dt_gradings: 2 dt_portfolios: 12 dt_teachers: 5 extra_product_tab: 3 faq: 10 forum: 71 gpages: 7 lesson: 106 logos: 8 lp_course: 1 mc4wp-form: 2 membership_plan: 4 mpp-gallery: 78 multiple_question: 33 nav_menu_item: 82 option-tree: 1 page: 227 popup: 1 popup_theme: 6 portfolio: 8 post: 63 product: 141 product_tabpage: 3 question: 150 quiz: 145 reply: 1 responsive-gallery: 1 responsive_accordion: 1 revision: 51 scheduled-action: 1 shopannouncements: 3 shop_coupon: 1 shop_order: 118 showcases: 16 sidebar: 2 stgh_ticket: 15 stgh_ticket_comments: 1 templatera: 3 testimonials: 17 topic: 71 topreviews: 3 tribe_events: 1 tribe_organizer: 1 tribe_venue: 3 ttshowcase: 23 um_directory: 1 um_form: 3 um_role: 2 vc_grid_item: 2 wc_membership_plan: 5 wc_user_membership: 15 wishlist: 3 wooslider: 2 wordapp_mobile_pages: 2 wpcf7_contact_form: 8 ywar_reviews: 3505 ### Security ### Secure connection (HTTPS): ?Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates. Hide errors from visitors: ? ### Active Plugins (37) ### Gravity Forms: by rocketgenius – 2.1.2.1 Ultimate Addons for Visual Composer: by Brainstorm Force – 3.16.12 User Switching in Admin Bar: by Mark Wilkinson – 1.1.1 Ajax Search Pro: by Ernest Marcinko – 4.9.7 bbPress: by The bbPress Community – 2.5.13 Visual Composer Plugin for BuddyPress: by creativeG – 1.5 Better Search Replace: by Delicious Brains – 1.3.1 BuddyPress Activity ShortCode: by BuddyDev – 1.0.8 BuddyPress: by The BuddyPress Community – 2.9.0 Chronosly: by Chronosly – 2.5.7 Contact Form 7: by Takayuki Miyoshi – 4.8.1 DesignThemes Core Features Plugin: by DesignThemes – 2.3.1 WooCommerce Single Product Page Builder: by SiteSao Team – 3.0.2 – Not tested with the active version of WooCommerce Gravity Forms PayPal Standard Add-On: by rocketgenius – 2.8 Gravity Forms PayPal Payments Pro Add-On: by rocketgenius – 2.1 Gravity Forms Stripe Add-On: by rocketgenius – 2.2.1 Gravity Forms User Registration Add-On: by rocketgenius – 3.7 Hide YouTube Related Videos: by SparkWeb Interactive Inc. – 1.4.2 Indeed My Testimonials: by indeed – 2.5 WPBakery Visual Composer: by Michael M - WPBakery.com – 5.2.1 Kunaki Woocommerce: by Daniel Ray of dmwds.com – 4.01 – Not tested with the active version of WooCommerce Lab - Notifications Off: by 1wd.tv – 1.8 MediaPress: by BuddyDev – 1.1.8 Popup Maker: by WP Popup Maker – 1.6.5 Show Current Template: by JOTAKI Taisuke – 0.3.0 Simple CSS: by Tom Usborne – 0.4 Testimonials Showcase: by Carlos Moreira – 1.4.6 User Switching: by John Blackbourn – 1.0.9 Elegant Tabs for Visual Composer: by InfiWebs – 2.3.3 Woo Sensei Shortcodes: by wooexpert – 1.2.0 WooCommerce Stripe Gateway: by WooCommerce – 3.2.3 – Not tested with the active version of WooCommerce WooCommerce Memberships: by WooThemes / SkyVerge – 1.6.2 – 1.9.5 is available – Not tested with the active version of WooCommerce WOOF - WooCommerce Products Filter: by realmag777 – 2.1.7 – Not tested with the active version of WooCommerce WooCommerce Subscriptions: by Prospress Inc. – 2.0.17 – 2.2.16 is available – Not tested with the active version of WooCommerce WooCommerce: by Automattic – 3.2.0-beta.2 – 3.2.6 is available Sensei: by WooThemes – 1.9.11 – 1.9.19 is available WP-Mail-SMTP: by Callum Macdonald – 0.10.1 ### Settings ### API Enabled: ? Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 0 Taxonomies: Product Types: bundle (bundle) composite (composite) external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) yith_bundle (yith_bundle) 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: #1286 - /shop/ Cart: #1061 - /cart/ Checkout: #1062 - /checkout-2/ My account: ? Page does not contain the shortcode. Terms and conditions: ? Page not set ### Theme ### Name: Version: – 0 is available Author URL: Child Theme: ? Parent Theme Name: Parent Theme Version: – 0 is available Parent Theme Author URL: WooCommerce Support: ? ### Templates ### Overrides: lms-child-dbo/woocommerce/archive-product.php lms-child-dbo/woocommerce/checkout/form-checkout.php lms-child-dbo/woocommerce/checkout/form-shipping.php lms-child-dbo/woocommerce/content-product.php lms-child-dbo/woocommerce/content-product_cat.php lms-child-dbo/woocommerce/content-single-product.php lms-child-dbo/woocommerce/content-widget-product.php lms-child-dbo/woocommerce/myaccount/dashboard.php lms-child-dbo/woocommerce/myaccount/form-login.php lms-child-dbo/woocommerce/product-searchform.php lms-child-dbo/woocommerce/single-product-reviews.php version 2.3.2 is out of date. The core version is 3.2.0 lms-child-dbo/woocommerce/single-product.php lms-child-dbo/woocommerce/taxonomy-product_cat.php lms-child-dbo/woocommerce/taxonomy-product_tag.php Outdated Templates: ?Learn how to update
AND HERE IS A SAMPLE RESPONSE FROM STRIPE:
Request POST body{ "email": "[email protected]", "validation_type": "card", "payment_user_agent": "Stripe Checkout v3 checkout-manhattan (stripe.js/604c5e8)", "card": { "number": "************4242", "exp_month": "03", "exp_year": "20", "cvc": "***", "name": "[email protected]" }, "time_on_page": "16883", "guid": "8668833a-d95a-4358-9d3c-e088623ffb9b", "muid": "4ac99aaa-6d44-4c8b-839f-e6d2504ecaa6", "sid": "952607ec-1757-4aa8-975c-ac8d46a976a2", "key": "pk_test_2BqQuDYMRZGb9JCVUbqWguOf" }
Response body
{ "id": "tok_1BZUjaAOuAs97F2b0kM8Wj0S", "object": "token", "card": { "id": "card_1BZUjaAOuAs97F2bZtiXDdw0", "object": "card", "address_city": null, "address_country": null, "address_line1": null, "address_line1_check": null, "address_line2": null, "address_state": null, "address_zip": null, "address_zip_check": null, "brand": "Visa", "country": "US", "cvc_check": "pass", "dynamic_last4": null, "exp_month": 3, "exp_year": 2020, "funding": "credit", "last4": "4242", "metadata": { }, "name": "[email protected]", "tokenization_method": null }, "client_ip": "182.48.157.9", "created": 1513388702, "email": "[email protected]", "livemode": false, "type": "card", "used": false }
The page I need help with: [log in to see the link]
- The topic ‘Bad Gateway ( 502 ) Woocommerce / stripe’ is closed to new replies.