Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @hammaddilawar1,

    When I add a product in a cart, then the cart get empty after 1s, and it shows “your cart is empty”. Please check this video: https://itneedssolution.com/cart-issue.mp4

    I tried everything but not able to resolve this issue. I deactivated all the plugins, changed the theme, updated WooCommerce plugin but the issue is still there.

    From what I understand, you’re experiencing an issue where your WooCommerce cart empties itself almost immediately after adding a product, despite deactivating all plugins, changing themes, and updating the WooCommerce plugin. I watched the video you provided and was able to replicate the issue, which is indeed unusual.

    Let’s dig a little deeper to find out what’s causing this. Could you turn on debugging on your site and share the log with us? You can do this by adding these lines to your wp-config.php file:

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );

    This will create a debug.log file in your wp-content directory, logging any PHP errors or notices. For a more detailed guide on enabling debugging in WordPress, you can visit this link: ?? Debugging in WordPress.

    It would also be super helpful if you could share your site’s System Status report with us. This will give us a better understanding of your site’s setup and help us pinpoint the problem. You can find it via WooCommerce > Status. Select Get system report and then Copy for support.

    Lastly, if there are any fatal error logs, please share those too. You can find them under WooCommerce > Status > Logs.

    Once you have all this information, you can paste it inside a Code block in your reply, or use https://pastebin.com to paste it and share the link with us.

    Thanks for your patience and cooperation in this matter! We’re here to help you get this sorted.

    Thread Starter hammaddilawar1

    (@hammaddilawar1)

    ` WordPress Environment
    
    WordPress address (URL): https://thrasherofficial.store
    Site address (URL): https://thrasherofficial.store
    WC Version: 8.2.1
    REST API Version: ? 8.2.1
    WC Blocks Version: ? 11.1.2
    Action Scheduler Version: ? 3.6.4
    Log Directory Writable: ?
    WP Version: 6.3.2
    WP Multisite: –
    WP Memory Limit: 2 GB
    WP Debug Mode: ?
    WP Cron: ?
    Language: en_US
    External object cache: – Server Environment
    
    Server Info: LiteSpeed
    PHP Version: 7.4.33
    PHP Post Max Size: 2 GB
    PHP Time Limit: 120
    PHP Max Input Vars: 5000
    cURL Version: 7.84.0
    OpenSSL/1.1.1p
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.5.19-MariaDB-cll-lve
    Max Upload Size: 2 GB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ? Database
    
    WC Database Version: 8.2.1
    WC Database Prefix: wp_
    Total Database Size: 12.96MB
    Database Data Size: 9.36MB
    Database Index Size: 3.60MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.14MB + Index: 0.16MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 0.28MB + Index: 0.30MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 0.22MB + Index: 0.14MB + Engine InnoDB
    wp_ce4wp_abandoned_checkout: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_ce4wp_contacts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.06MB + Index: 0.09MB + Engine InnoDB
    wp_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_kbp_countdown_entry: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_kbp_form_entry: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_kbp_form_entrymeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mclean_refs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mclean_scan: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_nf3_actions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_nf3_action_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_nf3_chunks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_nf3_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_nf3_field_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_nf3_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_nf3_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_nf3_objects: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_nf3_object_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_nf3_relationships: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_nf3_upgrades: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_options: Data: 3.47MB + Index: 0.17MB + Engine InnoDB
    wp_postmeta: Data: 1.52MB + Index: 0.44MB + Engine InnoDB
    wp_posts: Data: 1.52MB + Index: 0.13MB + Engine InnoDB
    wp_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_rank_math_analytics_gsc: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_rank_math_analytics_inspections: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wp_rank_math_analytics_objects: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_rank_math_internal_links: Data: 0.09MB + Index: 0.05MB + Engine InnoDB
    wp_rank_math_internal_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_rank_math_redirections: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_vi_wad_ali_orders_info: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vi_wad_error_product_images: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wp_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.06MB + Index: 0.09MB + Engine InnoDB
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpmelon_advbedit_temp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpr_rocket_cache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wpr_rucss_used_css: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_indexable: Data: 0.16MB + Index: 0.09MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB Post Type Counts
    
    attachment: 55
    custom_css: 2
    customize_changeset: 9
    elementor_library: 4
    kadence_element: 1
    mc4wp-form: 1
    nav_menu_item: 13
    page: 19
    post: 1
    product: 32
    product_variation: 31
    revision: 42
    shop_order: 113
    shop_order_refund: 1
    wmpc-trash: 98
    wp_global_styles: 3 Security
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ? Active Plugins (12)
    
    All-in-One WP Migration: by ServMask – 7.79
    EditorsKit: by Munir Kamal – 1.40.3
    Kadence Blocks - PRO Extension: by Kadence WP – 2.0.16
    Kadence Blocks – Gutenberg Blocks for Page Builder Features: by Kadence WP – 3.1.22
    Kadence Pro - Premium addon for the Kadence Theme: by Kadence WP – 1.0.14
    Media Cleaner: by Jordy Meow – 6.6.7
    Ninja Forms: by Saturday Drive – 3.6.34
    Rank Math SEO: by Rank Math – 1.0.204
    WooCommerce Advanced Bulk Edit: by George Iron – 4.6.1
    WooCommerce: by Automattic – 8.2.1
    WP Rocket: by WP Media – 3.14.2.1
    WP Rollback: by GiveWP.com – 1.7.3 Inactive Plugins (1)
    
    Merchant Solutions Stripe: by Abdullah – 1.0.1 Dropin Plugins (1)
    
    advanced-cache.php: advanced-cache.php Must Use Plugins (1)
    
    SSO: by Garth Mortensen
    Mike Hansen – 0.4 Settings
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    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: ?
    HPOS feature screen enabled: –
    HPOS feature enabled: –
    Order datastore: WC_Order_Data_Store_CPT
    HPOS data sync enabled: – WC Pages
    
    Shop base: ? Page not set
    Cart: #9 - /cart/
    Checkout: #10 - /checkout/
    My account: #11 - /my-account/
    Terms and conditions: ? Page not set Theme
    
    Name: Kadence
    Version: 1.1.48
    Author URL: https://www.kadencewp.com/
    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: – Admin
    
    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    core-profiler
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    product-variation-management
    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: customize-store
    minified-js
    new-product-management-experience
    settings
    async-product-editor-category-field
    
    Daily Cron: ? Next scheduled: 2023-11-01 08:15:57 +00:00
    Options: ?
    Notes: 147
    Onboarding: completed Action Scheduler
    
    Canceled: 1
    Oldest: 2023-10-09 18:26:52 +0000
    Newest: 2023-10-09 18:26:52 +0000
    
    Complete: 728
    Oldest: 2023-10-02 17:02:34 +0000
    Newest: 2023-10-31 08:20:43 +0000
    
    Failed: 77
    Oldest: 2022-10-29 15:15:58 +0000
    Newest: 2023-10-30 20:45:32 +0000
    
    Pending: 1
    Oldest: 2023-11-01 08:20:43 +0000
    Newest: 2023-11-01 08:20:43 +0000 Status report information
    
    Generated at: 2023-10-31 10:42:09 +00:00
    `
    Thread Starter hammaddilawar1

    (@hammaddilawar1)

    Below is some information about your current WordPress and server setup. This information may be useful for your technical support, website developers, and plugin or theme developers who need to diagnose problems on your site.

    WordPress Version: 6.3.2
    Current WordPress Theme: Kadence version 1.1.48
    Theme Author: Kadence WP – https://www.kadencewp.com/
    Theme URI: https://www.kadencewp.com/kadence-theme/
    PHP Version: 7.4.33
    MySQL Version: 10.5.19-MariaDB-cll-lve
    Apache Version: This information is not available.
    Active Plugins:

    Hi @hammaddilawar1,

    Thank you for providing the detailed system status report. It gives us a clear view of your WordPress and server setup.

    From the status report, your site seems to be running on a fairly recent version of PHP (7.4.33), and your WooCommerce version (8.2.1) is also up-to-date. The memory limit and other server parameters also seem to be within acceptable limits. Your theme and plugins are also updated, which is good.

    However, I noticed that the Shop base page in your WooCommerce pages is not set. This could potentially cause issues with your cart. You might want to check this setting under WooCommerce > Settings > Products and ensure that a valid page is set as the Shop base. Need a hand? Here’s a quick guide on ?? WooCommerce Pages.

    As for the issue with the cart emptying itself, it’s still not clear what could be causing this. To help us investigate further, can you please provide the debug log and any fatal error logs?

    You can find the debug.log file in your wp-content directory if you’ve enabled debugging as per my previous instructions. For fatal error logs, you can find them under WooCommerce > Status > Logs.

    You can paste the logs inside a Code block in your reply, or use https://pastebin.comto paste it and share the link with us.

    Once we have these logs, we’ll be in a better position to diagnose and address the issue.

    Thank you for your patience and cooperation. We’re committed to helping you resolve this issue as soon as possible.

    Hi,
    Had exactly the same problem. This problem appeared when I used the cart widget with the new block structure. I did some work to find out what was causing this and found the problem in the title. I excluded the display conditions cart page for the header I created with Elementor and the problem was resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Empty cart issue’ is closed to new replies.