Cart Error Message
-
I intermittently but often get an error message on my Shop page:
“(Product Name) has been removed from your cart because it can no longer be purchased. Please contact us if you need assistance.”
I do not have a Woocommerce cart activated, as I am using Woo for a catalog only and have a Shopify Add To Cart button on my products.
I recently added a YITH plugin to additionally disable any cart activity, and also Super Cache.
How can I stop this from happening — thanks for your help!
Regards, Ned
-
Hi there Ned,
That is certainly strange! Usually that message would be displayed if a product has been added to the Cart, but then it went out of stock or something else changed that would cause it to be unavailable. If Cart functionality on your site is disabled though, then it seems that message should not be displayed.
About how often do you see it appear? A few times a day?
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.
Thank you!
Hi Kelly:
Thanks for responding!
A couple of observations. I opened the shop page from 3 different browsers, with no error message. My client would surely have told me if she had experienced the problem, which she has not.
This morning, to pull the WooCommerce status report (which follows), I went to the shop page, and there it was again. I would almost say that the problem occurs only when I am logged into the Admin.
Appreciate your checking the status report…
Thanks, Ned
`
### WordPress Environment ###WordPress address (URL): https://www.katherinegreenefineart.com
Site address (URL): https://www.katherinegreenefineart.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.3.20
PHP Post Max Size: 260 MB
PHP Time Limit: 0
PHP Max Input Vars: 1000
cURL Version: 7.71.0
OpenSSL/1.1.1gSUHOSIN Installed: –
MySQL Version: 5.6.41-84.1
Max Upload Size: 256 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_
Total Database Size: 18.33MB
Database Data Size: 17.11MB
Database Index Size: 1.22MB
wp_woocommerce_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_order_itemmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_actionscheduler_actions: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_actionscheduler_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_bwg_album: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_bwg_album_gallery: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_bwg_gallery: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_bwg_image: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_bwg_image_comment: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_bwg_image_rate: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_bwg_image_tag: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_bwg_option: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_bwg_shortcode: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_bwg_theme: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_comments: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_options: Data: 9.87MB + Index: 0.08MB + Engine MyISAM
wp_postmeta: Data: 0.70MB + Index: 0.23MB + Engine MyISAM
wp_posts: Data: 1.43MB + Index: 0.06MB + Engine MyISAM
wp_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_term_relationships: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_term_taxonomy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_usermeta: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
wp_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_wc_admin_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_customer_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_order_product_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_order_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wfblockediplog: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wfblocks7: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wfconfig: Data: 1.62MB + Index: 0.02MB + Engine MyISAM
wp_wfcrawlers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wffilechanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wffilemods: Data: 1.96MB + Index: 0.39MB + Engine MyISAM
wp_wfhits: Data: 0.10MB + Index: 0.02MB + Engine MyISAM
wp_wfhoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wfissues: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_wfknownfilelist: Data: 1.05MB + Index: 0.12MB + Engine MyISAM
wp_wflivetraffichuman: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wflocs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wflogins: Data: 0.08MB + Index: 0.03MB + Engine MyISAM
wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wfnotifications: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
wp_wfpendingissues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wfreversecache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wfsnipcache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wfstatus: Data: 0.12MB + Index: 0.06MB + Engine MyISAM
wp_wftrafficrates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wpforms_tasks_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_yoast_indexable: Data: 0.07MB + Index: 0.04MB + Engine MyISAM
wp_yoast_indexable_hierarchy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_yoast_primary_term: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_yoast_seo_links: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
wp_yoast_seo_meta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM### Post Type Counts ###
attachment: 42
avada_portfolio: 24
ccf_field: 6
ccf_form: 1
ccf_submission: 20
customize_changeset: 1
foogallery: 3
nav_menu_item: 9
page: 7
post: 1
product: 12
revision: 326
rl_gallery: 1
wpcf7_contact_form: 1### Security ###
Secure connection (HTTPS): ✔
Hide errors from visitors: ✔### Active Plugins (16) ###
Conditional Menus: by Themify – 1.1.8
Contact Form 7: by Takayuki Miyoshi – 5.2
Disable Gutenberg: by Jeff Starr – 2.1
Avada Builder: by ThemeFusion – 3.0.1
Avada Core: by ThemeFusion – 5.0.1
MMWD Remove Add To Cart for WooCommerce: by McGregor Media Web Design – 1.4.12
Post Duplicator: by Metaphor Creations – 2.20
Post Types Order: by Nsp Code – 1.9.5.1
Really Simple SSL: by Really Simple Plugins – 3.3.4
UpdraftPlus – Backup/Restore: by UpdraftPlus.Com
DavidAnderson – 1.16.26WooCommerce: by Automattic – 4.3.1
Wordfence Security: by Wordfence – 7.4.9
Yoast SEO: by Team Yoast – 14.6.1
WP Super Cache: by Automattic – 1.7.1
Custom Product Tabs for WooCommerce: by YIKES
Inc. – 1.7.1 – Installed version not tested with active version of WooCommerce 4.3.1YITH WooCommerce Catalog Mode: by YITH – 2.0.2
### Inactive Plugins (2) ###
Akismet Anti-Spam: by Automattic – 4.1.6
Hello Dolly: by Matt Mullenweg – 1.7.2### Dropin Plugins (1) ###
advanced-cache.php: advanced-cache.php
### Must Use Plugins (1) ###
endurance-page-cache.php: by –
### 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: –
### WC Pages ###
Shop base: #1574 – /shop/
Cart: ❌ Page not set
Checkout: ❌ Page not set
My account: ❌ Page not set
Terms and conditions: ❌ Page not set### Theme ###
Name: Avada Child
Version: (update to version 0 is available)
Author URL:
Child Theme: ✔
Parent Theme Name: Avada
Parent Theme Version: 7.0.1
Parent Theme Author URL: http://themeforest.net/user/ThemeFusion
WooCommerce Support: ✔### Templates ###
Overrides: Avada/woocommerce/cart/cart.php
Avada/woocommerce/checkout/form-pay.php
Avada/woocommerce/checkout/review-order.php
Avada/woocommerce/checkout/thankyou.php
Avada/woocommerce/loop/loop-start.php
Avada/woocommerce/single-product/add-to-cart/variable.php
Avada/woocommerce/single-product/short-description.php
Avada/woocommerce/single-product/tabs/additional-information.php
Avada/woocommerce/single-product/tabs/description.php### Action Scheduler ###
Complete: 22
Oldest: 2020-06-27 21:25:07 -0700
Newest: 2020-07-25 22:36:09 -0700Hi there Ned,
Thank you very much for providing that Status Report. I also did not see the error at all while clicking around through the shop and products, and hard refreshing the pages. I think your note about it only seeming to happen when you are logged in as admin could be related.
Checking the plugin code, it seems that error message you are seeing is triggered in the
get_cart_from_sessionmethod in the/woocommerce/includes/class-wc-cart-session.phpfile. I am guessing that is being called at some point in one of the other active plugins on the site (likely either theMMWD Remove Add To Cart for WooCommerceorYITH WooCommerce Catalog Mode: by YITHplugin).In order to narrow down what is causing it, I would recommend conflict testing by deactivating plugins aside from WooCommerce and switching back to the default Storefront theme, then testing to see if you still see the issue.
If that resolves the issue, then re-enable the theme first, and then plugins one at a time until you find the one that’s causing the conflict.
You can read more about conflict testing in our Self Service Guide here:
https://docs.woocommerce.com/document/woocommerce-self-service-guide/To avoid affecting customers on the live site, you may want to do this on a test/staging site. If you don’t have one already, your hosting company might offer one as part of your package. Alternatively, you can use a free plugin like https://wordpress.org/plugins/wp-staging/
That said though, if it is only occurring for your user when logged in as admin and not affecting customers/visitors on the site, then perhaps it would be ok to just ignore it.
Please let me know if you have any questions. Thank you!
Hi Kelly:
Without getting too deep into this matter, I tried several different setting combinations on the above-mentioned plugins, and after trial-and-error have to keep it the way it is.
I am comfortable in the assumption that the error message is only seen by the admin once per session and not by visitors, (it is always the same product “Clarity”, and when messing with the plugins it was only with this item in the Shop page that the links were oddly affected), I am going to stand pat.
Thanks so much for your advice!
Regards, Ned
Hi there Ned,
Thanks for getting back to us here — that sounds like a good plan! Yes, as long as customers are not being affected, then it should hopefully be OK.
I’m going to mark this thread as resolved. If you have any further questions, please start a new thread.
Have a wonderful day!
The topic ‘Cart Error Message’ is closed to new replies.