Cart becomes blank after deleting one product
-
Hi,
I have trouble on two websites (the link to one of them is provided) : until recently, I could delete one product that was added to cart and the remaining of the cart was still displayed. Now, when I delete just one product in the cart, I only see the page title (cart, Panier in French actually) and nothing under it. I have to manually refresh the page or click on cart again somewhere in the menu to see what is actually in the cart.
I’d be grateful if you could take a look or at least provide me with some hints to solve this siutation.
The page I need help with: [log in to see the link]
-
Hi there,
I visited your site as a customer and can see the issue you described, where if you add two items to the cart, and then try to remove only one, the cart is then empty.
Link to image: https://cld.wthms.co/HzL2IfThis kind of problem is usually caused by either a conflict with your theme or with another plugin.
The best way to determine this is to:
- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
Hello Amanda,
Thanks for your fast reply. I did activate briefly Storefront as main theme and deactivate all plugins but WooCommerce. As you can see on the screecast (https://d.pr/free/v/4FYuEO), the problem is still there.
Besides deactivating plugins and switching themes, do I also need to reset htaccess files or activate debug mode?
Looking forward to reading you.
Hi there,
Could you 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, paste it here in your response.Hello Kenin,
Sure, here goes:
### WordPress Environment ### WordPress address (URL): https://abriservices.net Site address (URL): https://abriservices.net WC Version: 3.6.4 Log Directory Writable: ✔ WP Version: 5.2.1 WP Multisite: – WP Memory Limit: 1 GB WP Debug Mode: – WP Cron: ✔ Language: fr_FR External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.6 PHP Post Max Size: 128 MB PHP Time Limit: 600 PHP Max Input Vars: 5000 cURL Version: 7.62.0 OpenSSL/1.0.2k SUHOSIN Installed: – MySQL Version: 5.5.5-10.3.15-MariaDB Max Upload Size: 128 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 3.6.4 WC Database Prefix: wp_ MaxMind GeoIP Database: ✔ Taille totale de la base de données: 27.38MB Taille de la base de données: 24.29MB Taille de l’index: 3.09MB wp_woocommerce_sessions: Données : 2.22MB + Index: 0.13MB wp_woocommerce_api_keys: Données : 0.00MB + Index: 0.01MB wp_woocommerce_attribute_taxonomies: Données : 0.00MB + Index: 0.00MB wp_woocommerce_downloadable_product_permissions: Données : 0.00MB + Index: 0.00MB wp_woocommerce_order_items: Données : 0.00MB + Index: 0.00MB wp_woocommerce_order_itemmeta: Données : 0.00MB + Index: 0.01MB wp_woocommerce_tax_rates: Données : 0.00MB + Index: 0.01MB wp_woocommerce_tax_rate_locations: Données : 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zones: Données : 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zone_locations: Données : 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zone_methods: Données : 0.00MB + Index: 0.00MB wp_woocommerce_payment_tokens: Données : 0.00MB + Index: 0.00MB wp_woocommerce_payment_tokenmeta: Données : 0.00MB + Index: 0.00MB wp_woocommerce_log: Données : 0.00MB + Index: 0.00MB sib_model_contact: Données : 0.00MB + Index: 0.00MB sib_model_country: Données : 0.00MB + Index: 0.00MB wp_blc_filters: Données : 0.00MB + Index: 0.00MB wp_blc_instances: Données : 0.02MB + Index: 0.01MB wp_blc_links: Données : 0.03MB + Index: 0.01MB wp_blc_synch: Données : 0.00MB + Index: 0.00MB wp_cf_forms: Données : 0.03MB + Index: 0.00MB wp_cf_form_entries: Données : 0.00MB + Index: 0.01MB wp_cf_form_entry_meta: Données : 0.00MB + Index: 0.00MB wp_cf_form_entry_values: Données : 0.00MB + Index: 0.01MB wp_cf_pro_messages: Données : 0.00MB + Index: 0.00MB wp_cf_queue_failures: Données : 0.00MB + Index: 0.00MB wp_cf_queue_jobs: Données : 0.00MB + Index: 0.00MB wp_cf_tracking: Données : 0.00MB + Index: 0.00MB wp_cf_tracking_meta: Données : 0.00MB + Index: 0.00MB wp_commentmeta: Données : 0.00MB + Index: 0.00MB wp_comments: Données : 0.03MB + Index: 0.03MB wp_links: Données : 0.00MB + Index: 0.00MB wp_options: Données : 1.78MB + Index: 0.13MB wp_postmeta: Données : 8.05MB + Index: 1.45MB wp_posts: Données : 6.64MB + Index: 0.24MB wp_redirection_404: Données : 0.00MB + Index: 0.00MB wp_redirection_groups: Données : 0.00MB + Index: 0.00MB wp_redirection_items: Données : 0.00MB + Index: 0.00MB wp_redirection_logs: Données : 0.00MB + Index: 0.00MB wp_rio_process_queue: Données : 0.17MB + Index: 0.10MB wp_termmeta: Données : 0.01MB + Index: 0.02MB wp_terms: Données : 0.01MB + Index: 0.02MB wp_term_relationships: Données : 0.04MB + Index: 0.08MB wp_term_taxonomy: Données : 0.01MB + Index: 0.01MB wp_usermeta: Données : 0.02MB + Index: 0.02MB wp_users: Données : 0.00MB + Index: 0.01MB wp_wc_admin_notes: Données : 0.00MB + Index: 0.00MB wp_wc_admin_note_actions: Données : 0.00MB + Index: 0.00MB wp_wc_customer_lookup: Données : 0.00MB + Index: 0.01MB wp_wc_download_log: Données : 0.00MB + Index: 0.00MB wp_wc_order_coupon_lookup: Données : 0.00MB + Index: 0.00MB wp_wc_order_product_lookup: Données : 0.00MB + Index: 0.01MB wp_wc_order_stats: Données : 0.00MB + Index: 0.01MB wp_wc_order_tax_lookup: Données : 0.00MB + Index: 0.00MB wp_wc_product_meta_lookup: Données : 0.05MB + Index: 0.07MB wp_wc_webhooks: Données : 0.00MB + Index: 0.00MB wp_wfblockediplog: Données : 0.00MB + Index: 0.00MB wp_wfblocks7: Données : 0.00MB + Index: 0.00MB wp_wfconfig: Données : 1.92MB + Index: 0.01MB wp_wfcrawlers: Données : 0.00MB + Index: 0.00MB wp_wffilechanges: Données : 0.00MB + Index: 0.00MB wp_wffilemods: Données : 1.96MB + Index: 0.40MB wp_wfhits: Données : 0.07MB + Index: 0.01MB wp_wfhoover: Données : 0.00MB + Index: 0.00MB wp_wfissues: Données : 0.01MB + Index: 0.01MB wp_wfknownfilelist: Données : 1.03MB + Index: 0.12MB wp_wflivetraffichuman: Données : 0.00MB + Index: 0.00MB wp_wflocs: Données : 0.00MB + Index: 0.00MB wp_wflogins: Données : 0.01MB + Index: 0.00MB wp_wfls_2fa_secrets: Données : 0.02MB + Index: 0.02MB wp_wfls_settings: Données : 0.02MB + Index: 0.00MB wp_wfnotifications: Données : 0.00MB + Index: 0.00MB wp_wfpendingissues: Données : 0.00MB + Index: 0.01MB wp_wfreversecache: Données : 0.00MB + Index: 0.00MB wp_wfsnipcache: Données : 0.00MB + Index: 0.00MB wp_wfstatus: Données : 0.06MB + Index: 0.03MB wp_wftrafficrates: Données : 0.00MB + Index: 0.00MB wp_yoast_seo_links: Données : 0.02MB + Index: 0.01MB wp_yoast_seo_meta: Données : 0.06MB + Index: 0.06MB ### Post Type Counts ### attachment: 981 custom_css: 2 customize_changeset: 1 et_pb_layout: 37 nav_menu_item: 30 page: 18 post: 2 product: 550 product_variation: 348 revision: 165 scheduled-action: 126 shop_coupon: 1 shop_order: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (21) ### ManageWP - Worker: par GoDaddy – 4.8.0 Akismet Anti-Spam: par Automattic – 4.1.2 BackWPup: par Inpsyde GmbH – 3.6.9 Block Bad Queries (BBQ): par Jeff Starr – 20190501 Broken Link Checker: par ManageWP – 1.11.8 Caldera Forms: par Caldera Labs – 1.8.5 Disable Emojis (GDPR friendly): par Ryan Hellyer – 1.7.2 Favicon par RealFaviconGenerator: par Philippe Bernard – 1.3.15 PayPlug pour WooCommerce (Officiel): par PayPlug – 1.0.17 Redirection: par John Godley – 4.3.1 Webcraftic Robin image optimizer: par Webcraftic – 1.4.0 Social Warfare: par Warfare Plugins – 3.6.1 WC Speed Drain Repair: par WP Fix It – 1.3 – Non testé avec la version active de WooCommerce WooCommerce Admin: par WooCommerce – 0.12.0 WooCommerce Google Analytics Integration: par WooCommerce – 1.4.9 WooCommerce Sendinblue Newsletter Subscription: par SendinBlue – 1.2.13 – Non testé avec la version active de WooCommerce WooCommerce: par Automattic – 3.6.4 Wordfence Security: par Wordfence – 7.3.3 Yoast SEO: par L’équipe Yoast – 11.3 – Non testé avec la version active de WooCommerce WP Rocket: par WP Media – 3.3.5 WP Sitemap Page: par Tony Archambeau – 1.6.1 ### Inactive Plugins (0) ### ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Must Use Plugins (1) ### ManageWP - Worker Loader: par GoDaddy – ### Settings ### API Enabled: ✔ Force SSL: – Currency: EUR (€) Currency Position: right 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 ### Base de la boutique: #15 - /boutique/ Panier: #5493 - /panier/ Validation de la commande: #5494 - /commande/ Mon compte: #18 - /mon-compte/ Conditions générales de vente et d’utilisation: #650 - /conditions-generales-de-vente/ ### Theme ### Name: Divi Child Version: 1.0 Author URL: https://perspectives.marketing Child Theme: ✔ Parent Theme Name: Divi Parent Theme Version: 3.23.3 Parent Theme Author URL: http://www.elegantthemes.com WooCommerce Support: ✔ ### Templates ### Overrides: Divi-child/woocommerce/global/breadcrumb.php Divi-child/woocommerce/single-product/meta.php ### Action Scheduler ### Complete: 121 Oldest: 2019-05-16 11:46:15 +0200 Newest: 2019-06-15 11:05:07 +0200 Pending: 2 Oldest: 2019-06-15 12:05:07 +0200 Newest: 2019-06-20 12:05:59 +0200 Canceled: 3 Oldest: 2019-06-11 20:36:59 +0200 Newest: 2019-06-11 20:53:26 +0200 In-progress: 0 Oldest: – Newest: – Failed: 0 Oldest: – Newest: –
Thanks for your help!
Hi @stefanp44
Thanks for providing the System Status report.
It looks like all plugins are still active and that the Divi theme is being used. Can you please provide us with a direct URL to the site where you only have WooCommerce core active and the Storefront theme so we can observe the behaviour that still persists with only those active?
If you don’t want to leave the live site like this until we can take a look, you can also make a clone of the site, using a plugin like WP Staging and then do the testing there, and let us know when it’s ready. We will also want an updated System Status Report of the site.
Thanks!
Hi Amanda,
Sorry for the delay, I spent a bit of time to creae the staging site.
You can have access to the staging website here : https://test.abriservices.net/
You can use “test” as id and “Test44Test” as password.All plugins are deactivated except WooCommerce and Storefront theme is active. I also deleted the files left by WP Rocket and Wordfence, as well as the htaccess lines created by those two plugins. Finally, I removed the extra htaccess files I created in wp-admin, wp-includes, wp-content and wp-uploads.
The problem still remains : the cart goes blank when you delete one product from it, and you need to refresh to get it back.
Here is the updated status report:
### WordPress Environment ### WordPress address (URL): https://test.abriservices.net Site address (URL): https://test.abriservices.net WC Version: 3.6.4 Log Directory Writable: ✔ WP Version: 5.2.2 WP Multisite: – WP Memory Limit: 1 GB WP Debug Mode: – WP Cron: ✔ Language: fr_FR External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.6 PHP Post Max Size: 128 MB PHP Time Limit: 600 PHP Max Input Vars: 5000 cURL Version: 7.62.0 OpenSSL/1.0.2k SUHOSIN Installed: – MySQL Version: 5.5.5-10.3.16-MariaDB Max Upload Size: 128 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 3.6.4 WC Database Prefix: wp_ MaxMind GeoIP Database: ✔ Taille totale de la base de données: 25.15MB Taille de la base de données: 22.07MB Taille de l’index: 3.08MB wp_woocommerce_sessions: Données : 1.73MB + Index: 0.09MB wp_woocommerce_api_keys: Données : 0.00MB + Index: 0.01MB wp_woocommerce_attribute_taxonomies: Données : 0.00MB + Index: 0.00MB wp_woocommerce_downloadable_product_permissions: Données : 0.00MB + Index: 0.00MB wp_woocommerce_order_items: Données : 0.00MB + Index: 0.00MB wp_woocommerce_order_itemmeta: Données : 0.00MB + Index: 0.00MB wp_woocommerce_tax_rates: Données : 0.00MB + Index: 0.01MB wp_woocommerce_tax_rate_locations: Données : 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zones: Données : 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zone_locations: Données : 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zone_methods: Données : 0.00MB + Index: 0.00MB wp_woocommerce_payment_tokens: Données : 0.00MB + Index: 0.00MB wp_woocommerce_payment_tokenmeta: Données : 0.00MB + Index: 0.00MB wp_woocommerce_log: Données : 0.00MB + Index: 0.00MB sib_model_contact: Données : 0.00MB + Index: 0.00MB wp_blc_filters: Données : 0.00MB + Index: 0.00MB wp_blc_instances: Données : 0.02MB + Index: 0.01MB wp_blc_links: Données : 0.03MB + Index: 0.01MB wp_blc_synch: Données : 0.00MB + Index: 0.00MB wp_cf_forms: Données : 0.03MB + Index: 0.00MB wp_cf_form_entries: Données : 0.00MB + Index: 0.01MB wp_cf_form_entry_meta: Données : 0.00MB + Index: 0.00MB wp_cf_form_entry_values: Données : 0.00MB + Index: 0.01MB wp_cf_pro_messages: Données : 0.00MB + Index: 0.00MB wp_cf_queue_failures: Données : 0.00MB + Index: 0.00MB wp_cf_queue_jobs: Données : 0.00MB + Index: 0.00MB wp_cf_tracking: Données : 0.00MB + Index: 0.00MB wp_cf_tracking_meta: Données : 0.00MB + Index: 0.00MB wp_commentmeta: Données : 0.00MB + Index: 0.00MB wp_comments: Données : 0.06MB + Index: 0.05MB wp_links: Données : 0.00MB + Index: 0.00MB wp_options: Données : 1.53MB + Index: 0.13MB wp_postmeta: Données : 8.10MB + Index: 1.44MB wp_posts: Données : 6.66MB + Index: 0.24MB wp_redirection_404: Données : 0.00MB + Index: 0.00MB wp_redirection_groups: Données : 0.00MB + Index: 0.00MB wp_redirection_items: Données : 0.00MB + Index: 0.00MB wp_redirection_logs: Données : 0.00MB + Index: 0.00MB wp_rio_process_queue: Données : 0.17MB + Index: 0.07MB wp_termmeta: Données : 0.01MB + Index: 0.02MB wp_terms: Données : 0.01MB + Index: 0.02MB wp_term_relationships: Données : 0.05MB + Index: 0.10MB wp_term_taxonomy: Données : 0.01MB + Index: 0.02MB wp_usermeta: Données : 0.02MB + Index: 0.02MB wp_users: Données : 0.00MB + Index: 0.01MB wp_wc_admin_notes: Données : 0.00MB + Index: 0.00MB wp_wc_admin_note_actions: Données : 0.00MB + Index: 0.00MB wp_wc_customer_lookup: Données : 0.00MB + Index: 0.01MB wp_wc_download_log: Données : 0.00MB + Index: 0.00MB wp_wc_order_coupon_lookup: Données : 0.00MB + Index: 0.00MB wp_wc_order_product_lookup: Données : 0.00MB + Index: 0.01MB wp_wc_order_stats: Données : 0.00MB + Index: 0.01MB wp_wc_order_tax_lookup: Données : 0.00MB + Index: 0.00MB wp_wc_product_meta_lookup: Données : 0.05MB + Index: 0.07MB wp_wc_webhooks: Données : 0.00MB + Index: 0.00MB wp_wfblockediplog: Données : 0.00MB + Index: 0.00MB wp_wfblocks7: Données : 0.00MB + Index: 0.00MB wp_wfconfig: Données : 0.38MB + Index: 0.02MB wp_wfcrawlers: Données : 0.00MB + Index: 0.00MB wp_wffilechanges: Données : 0.00MB + Index: 0.00MB wp_wffilemods: Données : 1.90MB + Index: 0.40MB wp_wfhits: Données : 0.11MB + Index: 0.02MB wp_wfhoover: Données : 0.00MB + Index: 0.00MB wp_wfissues: Données : 0.00MB + Index: 0.01MB wp_wfknownfilelist: Données : 1.00MB + Index: 0.12MB wp_wflivetraffichuman: Données : 0.00MB + Index: 0.00MB wp_wflocs: Données : 0.00MB + Index: 0.00MB wp_wflogins: Données : 0.01MB + Index: 0.00MB wp_wfls_2fa_secrets: Données : 0.02MB + Index: 0.02MB wp_wfls_settings: Données : 0.02MB + Index: 0.00MB wp_wfnotifications: Données : 0.00MB + Index: 0.00MB wp_wfpendingissues: Données : 0.00MB + Index: 0.01MB wp_wfreversecache: Données : 0.00MB + Index: 0.00MB wp_wfsnipcache: Données : 0.00MB + Index: 0.00MB wp_wfstatus: Données : 0.07MB + Index: 0.04MB wp_wftrafficrates: Données : 0.00MB + Index: 0.00MB wp_yoast_seo_links: Données : 0.02MB + Index: 0.01MB wp_yoast_seo_meta: Données : 0.06MB + Index: 0.06MB ### Post Type Counts ### attachment: 982 custom_css: 2 et_pb_layout: 37 nav_menu_item: 30 page: 18 post: 1 product: 548 product_variation: 348 revision: 168 scheduled-action: 214 shop_coupon: 1 shop_order: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (1) ### WooCommerce: par Automattic – 3.6.4 ### Inactive Plugins (18) ### Akismet Anti-Spam: par Automattic – 4.1.2 BackWPup: par Inpsyde GmbH – 3.6.9 Block Bad Queries (BBQ): par Jeff Starr – 20190501 Broken Link Checker: par ManageWP – 1.11.8 Caldera Forms: par Caldera Labs – 1.8.5 Disable Emojis (GDPR friendly): par Ryan Hellyer – 1.7.2 Favicon by RealFaviconGenerator: par Philippe Bernard – 1.3.15 ManageWP - Worker: par GoDaddy – 4.8.0 PayPlug pour WooCommerce (Officiel): par PayPlug – 1.0.17 Redirection: par John Godley – 4.3.1 Social Warfare: par Warfare Plugins – 3.6.1 WC Speed Drain Repair: par WP Fix It – 1.3 – Non testé avec la version active de WooCommerce Webcraftic Robin image optimizer: par Webcraftic <wordpress.webraftic@gmail.com> – 1.4.0 WooCommerce Admin: par WooCommerce – 0.13.2 WooCommerce Google Analytics Integration: par WooCommerce – 1.4.9 WooCommerce Sendinblue Newsletter Subscription: par SendinBlue – 1.2.13 – Non testé avec la version active de WooCommerce WP Sitemap Page: par Tony Archambeau – 1.6.1 Yoast SEO: par Team Yoast – 11.4 – Non testé avec la version active de WooCommerce ### Settings ### API Enabled: ✔ Force SSL: – Currency: EUR (€) Currency Position: right 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 ### Base de la boutique: #15 - /boutique/ Panier: #5493 - /panier/ Validation de la commande: #5494 - /commande/ Mon compte: #18 - /mon-compte/ Conditions générales de vente et d’utilisation: #650 - /conditions-generales-de-vente/ ### Theme ### Name: Storefront Version: 2.5.0 Author URL: https://woocommerce.com/ Child Theme: ❌ – Si vous modifiez WooCommerce sur un thème parent que vous n’avez pas construit personnellement nous vous recommandons d’utiliser un thème enfant. Voir : Comment créer un thème enfant WooCommerce Support: ✔ ### Templates ### Overrides: – ### Action Scheduler ### Complete: 209 Oldest: 2019-05-23 11:47:06 +0200 Newest: 2019-06-19 21:04:15 +0200 Pending: 1 Oldest: 2019-06-20 12:05:59 +0200 Newest: 2019-06-20 12:05:59 +0200 Canceled: 4 Oldest: 2019-06-11 20:36:59 +0200 Newest: 2019-06-19 22:04:15 +0200 In-progress: 0 Oldest: – Newest: – Failed: 0 Oldest: – Newest: –
Really looking forward to reading you!
Best regards,
Hello
I somehow managed to solve the problem. I’m not sure which action ensured this but here goes:
– step one: I deactivated AND deleted the WooCommerce Admin plugin,
– step two: I change dthe referrer policy in the main htaccess file, going fromHeader always set Referrer-Policy "strict-origin"
toHeader always set Referrer-Policy "strict-origin-when-cross-origin"
And there it was, the cart page was working again, just thought I’d let you know. I will delete the staging website sometime next week, unless you tell not to meanwhile.
Best regards,
- The topic ‘Cart becomes blank after deleting one product’ is closed to new replies.