• Whenever I go to the cart in woocommerce on a site, I get a fatal error. Found it is likely a plugin conflict between query monitor and a plugin called Dynamic Pricing, but only in the fact that they are both interacting with elements of woocommerce.

    This message appears on the cart page and is the only thing that appears. It shows for all users.

    Fatal error: Uncaught Error: Call to a member function exists() on string in /wp-content/plugins/woocommerce/includes/class-wc-cart.php:746 Stack trace: #0 /wp-content/plugins/woocommerce/includes/class-wc-cart.php(703): WC_Cart->check_cart_item_validity() #1 /wp-includes/class-wp-hook.php(286): WC_Cart->check_cart_items(”) #2 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 /wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-cart.php(79): do_action(‘woocommerce_che…’) #5 /wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(76): WC_Shortcode_Cart::output(Array) #6 /wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(89): WC_Shortcode in /wp-content/plugins/woocommerce/includes/class-wc-cart.php on line 746

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Does the error go away when QM is deactivated?

    Thread Starter JohnArcadian

    (@johnarcadian)

    Yes. The issue only occurs when both are activated at the same time. We’ve talked with the author of Dynamic Pricing and he is aware of the issue but they haven’t been able to resolve it from their end.

    We often do testing with QM to gauge speeds when different options are enabled on the store, and we can turn off QM (which is our current solution), but if we leave it on at all it kills the cart. Dynamic Pricing plugin is part of a wholesaler strategy we use, so we can’t turn that off.

    It’d be awesome to see a fix for this from either end, since both are useful plugins.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error with Woocommerce’ is closed to new replies.