WooCommerce Checkout Page Display Problem
-
Recently I am trying to change my PHP version from 7.4 to 8.0. Everything was working smoothly until I tried to checkout my cart.
The checkout page was in this weird container which you would see if you’d encounter the message “There has been a critical error on this website.” but that message was not shown. My checkout page was scrunched into the width of that container and its height expanded to the content of my checkout page, with a few missing stylings. There was no button to continue the checkout process from there.
I rerolled the PHP version from 8.0 to 7.4 and the issue was gone. I have tried switching to the default Twenty Twenty-Two. I have also tried disabling every plugin but that too does not solve the problem.
Picture:
https://imgur.com/a/AjqICVsDebug Log:
[18-Nov-2022 04:33:33 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * int in /home/upekkhac/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php:2035 Stack trace: #0 /home/upekkhac/public_html/wp-content/plugins/woocommerce/templates/checkout/review-order.php(43): WC_Cart->get_product_subtotal() #1 /home/upekkhac/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/upekkhac/...') #2 /home/upekkhac/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2336): wc_get_template() #3 /home/upekkhac/public_html/wp-includes/class-wp-hook.php(308): woocommerce_order_review() #4 /home/upekkhac/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #5 /home/upekkhac/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #6 /home/upekkhac/public_html/wp-content/plugins/jet-woo-builder/templates/widgets/checkout/order-review.php(15): do_action() #7 /home/upekkhac/public_html/wp-content/plugins/jet-woo-builder/includes/widgets/checkout/jet-woo-builder-checkout-order-review.php(328): include('/home/upekkhac/...') #8 /home/upekkhac/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2266): Elementor\Jet_Woo_Builder_Checkout_Order_Review->render() #9 /home/upekkhac/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack->render_by_mode() #10 /home/upekkhac/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(750): Elementor\Widget_Base->render_content() #11 /home/upekkhac/public_html/wp-content/plugins/elementor/includes/base/element-base.php(447): Elementor\Widget_Base->print_content() #12 /home/upekkhac/public_html/wp-content/plugins/elementor/includes/base/element-base.php(801): Elementor\Element_Base->print_element() #13 /home/upekkhac/public_html/wp-content/plugins/elementor/includes/base/element-base.php(447): Elementor\Element_Base->print_content() #14 /home/upekkhac/public_html/wp-content/plugins/elementor/includes/base/element-base.php(801): Elementor\Element_Base->print_element() #15 /home/upekkhac/public_html/wp-content/plugins/elementor/includes/base/element-base.php(447): Elementor\Element_Base->print_content() #16 /home/upekkhac/public_html/wp-content/plugins/elementor/includes/base/element-base.php(801): Elementor\Element_Base->print_element() #17 /home/upekkhac/public_html/wp-content/plugins/elementor/includes/base/element-base.php(447): Elementor\Element_Base->print_content() #18 /home/upekkhac/public_html/wp-content/plugins/elementor/includes/base/element-base.php(801): Elementor\Element_Base->print_element() #19 /home/upekkhac/public_html/wp-content/plugins/elementor/includes/base/element-base.php(447): Elementor\Element_Base->print_content() #20 /home/upekkhac/public_html/wp-content/plugins/elementor/core/base/document.php(1652): Elementor\Element_Base->print_element() #21 /home/upekkhac/public_html/wp-content/plugins/elementor/core/base/document.php(1087): Elementor\Core\Base\Document->print_elements() #22 /home/upekkhac/public_html/wp-content/plugins/elementor/includes/frontend.php(1144): Elementor\Core\Base\Document->print_elements_with_wrapper() #23 /home/upekkhac/public_html/wp-content/plugins/jet-woo-builder/includes/class-jet-woo-builder-template-functions.php(597): Elementor\Frontend->get_builder_content() #24 /home/upekkhac/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/checkout/form-checkout.php(38): Jet_Woo_Builder_Template_Functions->get_woo_builder_content() #25 /home/upekkhac/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/upekkhac/...') #26 /home/upekkhac/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(316): wc_get_template() #27 /home/upekkhac/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(67): WC_Shortcode_Checkout::checkout() #28 /home/upekkhac/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_Checkout::output() #29 /home/upekkhac/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(95): WC_Shortcodes::shortcode_wrapper() #30 /home/upekkhac/public_html/wp-includes/shortcodes.php(355): WC_Shortcodes::checkout() #31 [internal function]: do_shortcode_tag() #32 /home/upekkhac/public_html/wp-includes/shortcodes.php(227): preg_replace_callback() #33 /home/upekkhac/public_html/wp-includes/class-wp-hook.php(308): do_shortcode() #34 /home/upekkhac/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #35 /home/upekkhac/public_html/wp-includes/post-template.php(255): apply_filters() #36 /home/upekkhac/public_html/wp-content/themes/hello-elementor/template-parts/single.php(23): the_content() #37 /home/upekkhac/public_html/wp-includes/template.php(785): require('/home/upekkhac/...') #38 /home/upekkhac/public_html/wp-includes/template.php(718): load_template() #39 /home/upekkhac/public_html/wp-includes/general-template.php(204): locate_template() #40 /home/upekkhac/public_html/wp-content/themes/hello-elementor/index.php(21): get_template_part() #41 /home/upekkhac/public_html/wp-includes/template-loader.php(106): include('/home/upekkhac/...') #42 /home/upekkhac/public_html/wp-blog-header.php(19): require_once('/home/upekkhac/...') #43 /home/upekkhac/public_html/index.php(17): require('/home/upekkhac/...') #44 {main} thrown in /home/upekkhac/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php on line 2035
Status Report:
### WordPress Environment ### WordPress address (URL): https://www.upekkhacleaning.com Site address (URL): https://www.upekkhacleaning.com WC Version: 7.1.0 REST API Version: ? 7.1.0 WC Blocks Version: ? 8.7.5 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: 6.1.1 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: ? WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: LiteSpeed PHP Version: 8.0.25 PHP Post Max Size: 256 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.71.0 OpenSSL/1.1.1p SUHOSIN Installed: – MySQL Version: 5.7.39-cll-lve Max Upload Size: 256 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 7.1.0 WC Database Prefix: wpkx_ Total Database Size: 51.36MB Database Data Size: 45.18MB Database Index Size: 6.18MB wpkx_woocommerce_sessions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wpkx_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkx_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpkx_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_woocommerce_order_itemmeta: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wpkx_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpkx_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkx_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkx_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkx_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_actionscheduler_actions: Data: 0.20MB + Index: 0.22MB + Engine InnoDB wpkx_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_actionscheduler_logs: Data: 0.14MB + Index: 0.11MB + Engine InnoDB wpkx_adfoin_integration: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_adfoin_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_cleantalk_ac_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpkx_cleantalk_no_cookie_data: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpkx_cleantalk_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpkx_cleantalk_sfw: Data: 0.21MB + Index: 0.40MB + Engine MyISAM wpkx_cleantalk_sfw_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpkx_cleantalk_spamscan_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpkx_cleantalk_ua_bl: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpkx_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkx_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wpkx_consolety_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_dae_links: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wpkx_dae_subscribermeta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpkx_dae_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB wpkx_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpkx_e_submissions: Data: 0.05MB + Index: 0.27MB + Engine InnoDB wpkx_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wpkx_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkx_fsmpt_email_logs: Data: 1.02MB + Index: 0.00MB + Engine InnoDB wpkx_fv_enteries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_fv_entry_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_fv_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_jet_post_types: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_jet_smart_filters_indexer: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wpkx_jet_taxonomies: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_litespeed_avatar: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkx_litespeed_crawler: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkx_litespeed_crawler_blacklist: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkx_litespeed_img_optm: Data: 0.38MB + Index: 0.23MB + Engine InnoDB wpkx_litespeed_img_optming: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpkx_litespeed_url: Data: 0.08MB + Index: 0.08MB + Engine InnoDB wpkx_litespeed_url_file: Data: 0.05MB + Index: 0.08MB + Engine InnoDB wpkx_nf3_actions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_nf3_action_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_nf3_chunks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_nf3_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_nf3_field_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wpkx_nf3_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_nf3_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_nf3_objects: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_nf3_object_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_nf3_relationships: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_nf3_upgrades: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wpkx_npxyz2021_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_options: Data: 12.03MB + Index: 0.61MB + Engine InnoDB wpkx_postmeta: Data: 19.41MB + Index: 1.86MB + Engine InnoDB wpkx_posts: Data: 9.47MB + Index: 0.25MB + Engine InnoDB wpkx_social_users: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkx_std_subscribers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_termmeta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB wpkx_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkx_term_relationships: Data: 0.08MB + Index: 0.05MB + Engine InnoDB wpkx_term_taxonomy: Data: 0.16MB + Index: 0.03MB + Engine InnoDB wpkx_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkx_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpkx_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wpkx_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkx_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkx_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkx_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpkx_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpkx_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkx_wc_product_attributes_lookup: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wpkx_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_wc_product_meta_lookup: Data: 0.05MB + Index: 0.09MB + Engine InnoDB wpkx_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkx_woo_shippment_provider: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wpkx_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_wpns_attack_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkx_wpns_ip_rate_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### amp_validated_url: 2 attachment: 675 custom_css: 3 customize_changeset: 1 e-landing-page: 2 elementor_library: 42 GOTMLS_quarantine: 1 jet-menu: 4 jet-popup: 3 jet-smart-filters: 11 jet-woo-builder: 10 nav_menu_item: 127 oembed_cache: 6 page: 34 popup: 1 popup_theme: 8 post: 11 product: 152 product_variation: 89 revision: 148 seedprod: 1 shop_order: 29 tablepress_table: 18 wp_global_styles: 2 wpforms: 2 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (19) ### The SEO Framework: by The SEO Framework Team – 4.2.7.1 Anti-Spam by CleanTalk: by СleanTalk – 5.189 Elementor Pro: by Elementor.com – 3.8.1 Elementor: by Elementor.com – 3.8.1 FluentSMTP: by FluentSMTP & WPManageNinja Team – 2.2.2 JetMenu: by Crocoblock – 2.2.4 JetPopup: by Crocoblock – 1.6.3 JetSmartFilters: by Crocoblock – 3.0.1 JetSmartFilters: by Crocoblock – 3.0.1 JetWooBuilder For Elementor: by Crocoblock – 2.0.5 LiteSpeed Cache: by LiteSpeed Technologies – 5.3 NinjaFirewall (WP Edition): by The Ninja Technologies Network – 4.5.4 Perfmatters: by forgemedia – 2.0.0 TablePress Extension: Responsive Tables: by Tobias B?thge – 1.8 TablePress: by Tobias B?thge – 1.14 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.22.23 NP Quote Request WooCommerce: by Neah Plugins – 1.9.47 WooCommerce: by Automattic – 7.1.0 WP Search with Algolia: by WebDevStudios – 2.3.1 ### Inactive Plugins (0) ### ### Dropin Plugins (1) ### maintenance.php: maintenance.php ### Must Use Plugins (1) ### 0-ninjafirewall.php: by The Ninja Technologies Network – 1.0 ### Settings ### API Enabled: – Force SSL: – Currency: MYR (RM) 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) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: – ### WC Pages ### Shop base: #4739 - /products/ Cart: #12188 - /cart/ Checkout: #12189 - /checkout/ My account: ? Page visibility should be public Terms and conditions: #3400 - /terms-and-conditions/ ### Theme ### Name: Hello Elementor Child Version: 1.0.1 Author URL: https://elementor.com/ Child Theme: ? Parent Theme Name: Hello Elementor Parent Theme Version: 2.6.1 Parent Theme Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash WooCommerce Support: ? ### Templates ### Overrides: /home/upekkhac/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/cart/cart-empty.php version 3.5.0 is out of date. The core version is 7.0.1 /home/upekkhac/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/cart/cart.php version 3.8.0 is out of date. The core version is 7.0.1 /home/upekkhac/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/checkout/form-checkout.php /home/upekkhac/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/checkout/thankyou.php Outdated Templates: ? Learn how to update ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience settings Daily Cron: ? Next scheduled: 2022-11-19 01:45:26 +08:00 Options: ? Notes: 49 Onboarding: completed ### Action Scheduler ### Complete: 524 Oldest: 2022-10-18 19:43:52 +0800 Newest: 2022-11-18 10:42:27 +0800 Failed: 2 Oldest: 2021-08-19 12:59:42 +0800 Newest: 2021-08-19 12:59:42 +0800 Pending: 4 Oldest: 2022-11-18 23:26:54 +0800 Newest: 2022-11-18 23:26:54 +0800 ### Status report information ### Generated at: 2022-11-18 12:40:09 +08:00
Any sort of help will be great!
Edit:
It seems that the issue arises when one of the products in the checkout list does not have a price. This only occurs for variation products but not simple products. When the said particular variation product’s price is set to 0 instead of leaving it blank, the checkout page is restored. I’m currently using NP Quote Request WooCommerce plugin therefor products do not have a price set. Is there anyway to solve this without needing to manually set the prices of variation products to 0?
- The topic ‘WooCommerce Checkout Page Display Problem’ is closed to new replies.