PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback
-
Hi: I am seeing the error message below.
PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘sa_cp_get_cart_count’ not found or invalid function name in /home/**removed**/public_html/**removed**/wp-includes/class-wp-hook.php on line 298
I am using the Query Monitor plugin to help determine the cause. Query Monitor provides the Call Stack below and identifes the component as “Plugin: woocommerce-menu-bar-cart.
If I deactivate Woocommerce Menu Cart, the error message disappears.
Any thoughts?
Thanks!
Call Stack (obtained through Query Monitor plugin):
apply_filters(‘woocommerce_cart_contents_count’)
wp-content/plugins/woocommerce/includes/class-wc-cart.php:349WC_Cart->get_cart_contents_count()
wp-content/plugins/woocommerce-menu-bar-cart/includes/wpmenucart-woocommerce.php:32WPMenuCart_WooCommerce->menu_item()
wp-content/plugins/woocommerce-menu-bar-cart/wp-menu-cart.php:429WpMenuCart->wpmenucart_menu_item()
wp-content/plugins/woocommerce-menu-bar-cart/wp-menu-cart.php:353WpMenuCart->add_itemcart_to_menu()
wp-includes/class-wp-hook.php:298apply_filters(‘wp_nav_menu_shop_menu_items’)
wp-includes/nav-menu-template.php:231wp_nav_menu()
wp-content/themes/genesis/lib/functions/menu.php:87genesis_get_nav_menu()
wp-content/themes/genesis/lib/functions/menu.php:145genesis_nav_menu()
wp-content/themes/genesis/lib/structure/menu.php:116genesis_do_subnav()
wp-includes/class-wp-hook.php:298do_action(‘genesis_before_header’)
wp-content/themes/genesis/header.php:33load_template(‘~/wp-content/themes/genesis/header.php’)
wp-includes/template.php:643locate_template()
wp-includes/general-template.php:45get_header()
wp-content/themes/genesis/lib/framework.php:24genesis()
wp-content/plugins/genesis-connect-woocommerce/templates/single-product.php:85
- The topic ‘PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback’ is closed to new replies.