Empty Cart Error in Woocommerce though product is added to Cart
-
Hi Team
In my website nameplateworld, I am facing error in cart checkout/view cart pages.
Though product is added to cart, it shows empty cart.
I have tried all solutions available on internet
1. Flush Cache
2. Updating all plugins
3. Disable all plugins
4. Change theme to default word press theme
5. System checkStill issue persists. Unable to debug what is the cause.
Please help me in this.
ThanksThe page I need help with: [log in to see the link]
-
Hi there,
Thank you for including information about the steps you have already tried in diagnosing the issue.
This “Empty Cart” issue is most often related to caching — I understand you tried flushing the cache, however the page will need to be completely excluded from any caching.
Please make sure your Cart, Checkout, and My Account pages are all excluded from any caching plugins you have installed on the site. Also, please reach out to your hosting company to make sure those pages are excluded from caching on the server itself as well.
If you are still having trouble, please share a copy of your site’s System Status. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, you can paste it here in your reply. Please note that since this is a public forum, you may want to remove any sensitive information that you don’t want shared publicly.
Please let me know how that goes, or if you have any questions!
### WordPress Environment ### WordPress address (URL): https://nameplateworld.com Site address (URL): https://nameplateworld.com WC Version: 4.3.1 REST API Version: ? 1.0.10 WC Blocks Version: ? 2.7.2 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 1.3.1 Log Directory Writable: ? WP Version: 5.4.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: ? WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.2.25 PHP Post Max Size: 100 MB PHP Time Limit: 300 PHP Max Input Vars: 1000 cURL Version: 7.45.0 OpenSSL/1.0.1e SUHOSIN Installed: – MySQL Version: 5.7.26-29-log Max Upload Size: 100 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.3.1 WC Database Prefix: wp_3ncp87n2ga_ Total Database Size: 32.09MB Database Data Size: 29.06MB Database Index Size: 3.03MB wp_3ncp87n2ga_woocommerce_sessions: Data: 8.52MB + Index: 0.25MB + Engine InnoDB wp_3ncp87n2ga_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_3ncp87n2ga_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_3ncp87n2ga_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_woocommerce_order_items: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_3ncp87n2ga_woocommerce_order_itemmeta: Data: 0.05MB + Index: 0.04MB + Engine MyISAM wp_3ncp87n2ga_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_3ncp87n2ga_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_3ncp87n2ga_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_3ncp87n2ga_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_3ncp87n2ga_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_3ncp87n2ga_actionscheduler_actions: Data: 0.05MB + Index: 0.11MB + Engine InnoDB wp_3ncp87n2ga_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_3ncp87n2ga_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_3ncp87n2ga_actionscheduler_logs: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_3ncp87n2ga_adtribes_my_conversions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_3ncp87n2ga_commentmeta: Data: 0.05MB + Index: 0.03MB + Engine MyISAM wp_3ncp87n2ga_comments: Data: 0.08MB + Index: 0.03MB + Engine MyISAM wp_3ncp87n2ga_edd_customermeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_edd_customers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_gf_draft_submissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_gf_entry: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_gf_entry_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_gf_entry_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_gf_form: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_gf_form_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_gf_form_revisions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_gf_form_view: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_grp_google_place: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_grp_google_review: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_ig_actions: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_3ncp87n2ga_ig_blocked_emails: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_ig_campaigns: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_ig_contactmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_3ncp87n2ga_ig_contacts: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_3ncp87n2ga_ig_contacts_ips: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_ig_contact_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_3ncp87n2ga_ig_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_ig_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_3ncp87n2ga_ig_lists: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_ig_lists_contacts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_ig_mailing_queue: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_ig_queue: Data: 0.02MB + Index: 0.13MB + Engine InnoDB wp_3ncp87n2ga_ig_sending_queue: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_ig_workflows: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_ig_workflows_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_nf3_actions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_nf3_action_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_nf3_chunks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_nf3_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_nf3_field_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_nf3_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_nf3_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_nf3_objects: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_nf3_object_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_nf3_relationships: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_nf3_upgrades: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_options: Data: 4.08MB + Index: 0.58MB + Engine InnoDB wp_3ncp87n2ga_postmeta: Data: 8.99MB + Index: 0.62MB + Engine MyISAM wp_3ncp87n2ga_posts: Data: 5.85MB + Index: 0.23MB + Engine MyISAM wp_3ncp87n2ga_strong_views: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_3ncp87n2ga_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_3ncp87n2ga_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_3ncp87n2ga_term_relationships: Data: 0.01MB + Index: 0.03MB + Engine MyISAM wp_3ncp87n2ga_term_taxonomy: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_3ncp87n2ga_usermeta: Data: 0.07MB + Index: 0.01MB + Engine MyISAM wp_3ncp87n2ga_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_3ncp87n2ga_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_3ncp87n2ga_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_3ncp87n2ga_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_3ncp87n2ga_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_3ncp87n2ga_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_3ncp87n2ga_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_3ncp87n2ga_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_3ncp87n2ga_wc_product_meta_lookup: Data: 0.01MB + Index: 0.02MB + Engine MyISAM wp_3ncp87n2ga_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_3ncp87n2ga_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_3ncp87n2ga_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_wplc_chat_msgs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_wplc_chat_ratings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_wplc_chat_sessions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_wplc_chat_triggers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_wplc_custom_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_wplc_departments: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_wplc_offline_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_wplc_roi_conversions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_wplc_roi_goals: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_wplc_webhooks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_3ncp87n2ga_yoast_indexable: Data: 0.16MB + Index: 0.06MB + Engine InnoDB wp_3ncp87n2ga_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_3ncp87n2ga_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_3ncp87n2ga_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_3ncp87n2ga_yoast_seo_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_3ncp87n2ga_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 555 bsf-sidebar: 4 custom_css: 1 customize_changeset: 212 elementor_library: 12 elementor-hf: 1 es_template: 2 nav_menu_item: 19 page: 31 post: 4 product: 174 product_variation: 4 revision: 829 shop_coupon: 8 shop_order: 48 wpforms: 2 wpm-testimonial: 1 wpmm_theme: 3 yith-wcbm-badge: 2 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ?Error messages should not be shown to visitors. ### Active Plugins (18) ### Elementor Addons & Templates - Sizzify Lite: by ThemeIsle – 1.3.2 Elementor: by Elementor.com – 2.9.14 Email Subscribers & Newsletters: by Icegram – 4.5.3 Enhanced E-commerce for Woocommerce store: by Tatvic – 2.3.4 – Installed version not tested with active version of WooCommerce 4.3.1 Elementor - Header, Footer & Blocks: by Brainstorm Force Nikhil Chavan – 1.5.1 Premium Addons for Elementor: by Leap13 – 3.20.9 Sidebar Manager: by Brainstorm Force – 1.1.3 Sticky Menu (or Anything!) on Scroll: by WebFactory Ltd – 2.21 Sucuri Security - Auditing, Malware Scanner and Hardening: by Sucuri Inc. – 1.8.21 WooCommerce Product Feed: by WebAppick – 3.6.14 – Installed version not tested with active version of WooCommerce 4.3.1 Checkout Field Editor for WooCommerce: by ThemeHigh – 1.4.3 – Installed version not tested with active version of WooCommerce 4.3.1 Instamojo for WooCommerce: by instamojo – 1.0.7 – Installed version not tested with active version of WooCommerce 4.3.1 Product Feed PRO for WooCommerce: by AdTribes.io – 8.5.3 – Installed version not tested with active version of WooCommerce 4.3.1 WooCommerce Google Ads Conversion Tracking: by Wolf+B?r Agency – 1.6.8 – Installed version not tested with active version of WooCommerce 4.3.1 WooCommerce: by Automattic – 4.3.1 Yoast SEO: by Team Yoast – 14.6.1 WPForms Lite: by WPForms – 1.6.1 YITH WooCommerce Badge Management: by YITH – 1.4.3 – Installed version not tested with active version of WooCommerce 4.3.1 ### Inactive Plugins (4) ### Akismet Anti-Spam: by Automattic – 4.1.4 QR Code for WooCommerce: by WCBeginner – 1.2.0 – Installed version not tested with active version of WooCommerce 4.3.1 Shiprocket: by Shiprocket – 1.0.5 Strong Testimonials: by MachoThemes – 2.50.0 ### Dropin Plugins (1) ### object-cache.php: APCu Object Cache ### Must Use Plugins (2) ### Elementor Safe Mode: by Elementor.com – 1.0.0 System Plugin: by – 3.16.4 ### Settings ### API Enabled: ? Force SSL: – Currency: INR (?) 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: – ### WC Pages ### Shop base: #11 - /nameplates/ Cart: #259 - /cart/ Checkout: #260 - /checkout/ My account: ? Page not set Terms and conditions: #1055 - /terms-of-use/ ### Theme ### Name: Astra Version: 2.4.5 (update to version 2.5.1 is available) Author URL: https://wpastra.com/about/ Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: – ### Action Scheduler ### Complete: 67 Oldest: 2020-07-26 10:52:28 +0000 Newest: 2020-08-03 12:36:30 +0000 Pending: 1 Oldest: 2020-08-04 12:36:30 +0000 Newest: 2020-08-04 12:36:30 +0000
I am not using any caching plugin.
I am using godaddy hosting for website.
Thanks for reply.
Please help me in this issue.
I have also contacted godaddy host and cleared cache. Please help me in this issue.
Hi there,
I see your Status Report mentions the follow:
### Dropin Plugins (1) ### object-cache.php: APCu Object Cache
Dropin plugins will not appear in your Plugins > Installed Plugins list — please ask GoDaddy about disabling that temporarily for testing.
Also, it is not just a matter of “clearing the cache” as you mentioned having GoDaddy do — those pages (Cart, Checkout, My Account) will need to be completely excluded from caching so that they are never cached. If they are not excluded, then a new empty version of the Cart page may be cached as soon as the site is loaded.
Please reach out to GoDaddy one more time to ask about both of the above points.
Godaddy team unable to exclude. As per them they have cleared cache.
Can you please elaborate more on creating a new empty version of Cart page?
What exactly need to do after creating duplicate page of cart?
Thanks.
Hi there,
Can you please elaborate more on creating a new empty version of Cart page?
What exactly need to do after creating duplicate page of cart?To clarify, this is not something you would do — you do not need to make a duplicate/empty Cart page.
I was saying that the caching functionality would be doing that, which could cause the issue you are seeing.
Caching works by saving a version of the page which can be served to visitors, so that the site doesn’t need to generate the page every time. This works well for pages that stay the same, however for dynamic pages that are always changing (like Cart, Checkout, My Account), they can’t be cached.
If you clear the cache but caching is still enabled, then the next time the page is generated it will be cached again. So if it caches an “Empty Cart” version of the page, then that will be served and cause the issue you are seeing.
This is why Cart, Checkout, and My Account pages need to be excluded from caching.
Thanks for clarifying.
I have disable WP_CACHE in wp-config.php file and tested. Still issue persists.Please help me in this.
Hi @contactusnameplateworld. I can see that you have solved the issue so I’m going to go ahead and mark this thread as resolved.
Please start a new thread if you have any other questions.
- The topic ‘Empty Cart Error in Woocommerce though product is added to Cart’ is closed to new replies.