Title: Mini cart empty and get_image() error when adding item
Last modified: November 19, 2018

---

# Mini cart empty and get_image() error when adding item

 *  Resolved [LearningDev](https://wordpress.org/support/users/bbowers2014/)
 * (@bbowers2014)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/mini-cart-empty-when-adding-item/)
 * On every attempt of adding an item to the cart, the following is recorded in 
   the Woocommerce log. The item is technically added to the cart, but no details
   about the item can be seen, only an X to click to remove it from the cart. (seen
   here – [https://imgur.com/a/2vdCAXe](https://imgur.com/a/2vdCAXe) )
 * What does the error indicate to be the problem?
 * Using: WordPress 4.9.8 , Woocommerce 3.5.1
 * 2018-11-18T21:34:32+00:00 CRITICAL Uncaught Error: Call to a member function 
   get_image() on boolean in /home/XXXXX/public_html/wp-content/plugins/woocommerce/
   includes/abstracts/abstract-wc-product.php:1828
    Stack trace: #0 /home/XXXXX/
   public_html/wp-content/plugins/woocommerce/templates/cart/mini-cart.php(38): 
   WC_Product->get_image() #1 /home/XXXXX/public_html/wp-content/plugins/woocommerce/
   includes/wc-core-functions.php(208): include(‘/home/XXXXX/p…’) #2 /home/XXXXX/
   public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(
   1999): wc_get_template(‘cart/mini-cart….’, Array) #3 /home/XXXXX/public_html/
   wp-content/plugins/woocommerce/includes/class-wc-ajax.php(171): woocommerce_mini_cart()#
   4 /home/XXXXX/public_html/wp-includes/class-wp-hook.php(286): WC_AJAX::get_refreshed_fragments(”)#
   5 /home/XXXXX/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”,
   Array) #6 /home/XXXXX/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(
   Array) #7 /home/XXXXX/public_html/wp-content/plug in /home/XXXXX/public_html/
   wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php on 
   line 1828
    -  This topic was modified 7 years, 4 months ago by [LearningDev](https://wordpress.org/support/users/bbowers2014/).
    -  This topic was modified 7 years, 4 months ago by [LearningDev](https://wordpress.org/support/users/bbowers2014/).
      Reason: added link to picture

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [LearningDev](https://wordpress.org/support/users/bbowers2014/)
 * (@bbowers2014)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/mini-cart-empty-when-adding-item/#post-10897387)
 * As a followup, the items are being added to the cart via an event tickets plugin.
   I’ve also noticed CoursePress(different plugin) users starting to experience 
   the same symptoms with that plugin used to add products to the cart.
 * Another symptom. Woocommerce products are not visible in the backend. The count
   is present, but all products are invisible.
 *  Plugin Support [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * (@fernashes)
 * Automattic Happiness Engineer
 * [7 years, 4 months ago](https://wordpress.org/support/topic/mini-cart-empty-when-adding-item/#post-10898745)
 * Hey there!
 * It sounds like you have a few different issues that are related to a plugin and/
   or theme conflict – quite possibly that CoursePress plugin.
 * The best way to determine if the issue is being caused by a theme and/or plugin
   is to temporarily switch your theme to Storefront ([https://woocommerce.com/products/storefront/?aff=10486&cid=1131038](https://woocommerce.com/products/storefront/?aff=10486&cid=1131038))
   and disable all plugins except for WooCommerce. Finally, test to see if the issue
   is resolved by trying to add a product to the cart.
 * 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, continue to the next step.5. Reactivate
   your other plugins one by one, testing after each, until you find the one causing
   conflict.
 * —–
 * Tools to help you troubleshoot:
 * Meks Quick Plugin Disabler is a plugin you can install which will remember what
   plugins you currently have active so it’s easy to switch them back on. Link: 
   [https://wordpress.org/plugins/meks-quick-plugin-disabler/](https://wordpress.org/plugins/meks-quick-plugin-disabler/)
 * Health Check is a plugin that allows you to temporarily disable other plugins
   and switch themes for that session without impacting your users. Link: [https://wordpress.org/plugins/health-check/](https://wordpress.org/plugins/health-check/)
 * You can clone your site to a staging environment and perform tests without modifying
   your live site or impacting customers. Many hosts provide staging facilities,
   so it’s worth checking in with them. It’s also possible to do it using the free
   WP Staging plugin. Link: [https://wordpress.org/plugins/wp-staging/](https://wordpress.org/plugins/wp-staging/)
 *  Thread Starter [LearningDev](https://wordpress.org/support/users/bbowers2014/)
 * (@bbowers2014)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/mini-cart-empty-when-adding-item/#post-10899110)
 * (I don’t use CoursePress)
 * I have disabled all plugins(other than woocommerce) and used the Storefront theme.
   The problem persists. Products are not visible in the Products list and the get_image()
   error shown above is displayed.
 * > [View post on imgur.com](https://imgur.com/kIz3oP6)
    -  This reply was modified 7 years, 4 months ago by [LearningDev](https://wordpress.org/support/users/bbowers2014/).
 *  Plugin Support [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * (@fernashes)
 * Automattic Happiness Engineer
 * [7 years, 4 months ago](https://wordpress.org/support/topic/mini-cart-empty-when-adding-item/#post-10903433)
 * Hey there!
 * Whoops – sorry about that, I misread your comment about CoursePress.
 * Thanks for that screenshot! That shouldn’t be happening with just WooCommerce
   enabled – I haven’t been able to reproduce it on my own site. Can you please 
   re-install the WooCommerce files?
 *  [wbrubaker.a11n](https://wordpress.org/support/users/wbrubaker/)
 * (@wbrubaker)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/mini-cart-empty-when-adding-item/#post-10952899)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Mini cart empty and get_image() error when adding item’ is closed to 
new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [wbrubaker.a11n](https://wordpress.org/support/users/wbrubaker/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/mini-cart-empty-when-adding-item/#post-10952899)
 * Status: resolved