Hello ?? Thanks for responding.
We are using woocommerce product add-on and i don’t think they work together. As soon as I disabled woocommerce product add on, it worked.
THis is what we get in the log:
2019-12-19T18:23:22+00:00 CRITICAL Uncaught Error: Cannot use object of type YWGC_Gift_Card as array in /srv/htdocs/wp-content/plugins/woocommerce-product-addons/includes/class-wc-product-addons-cart.php:142
Stack trace:
#0 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(290): WC_Product_Addons_Cart->add_cart_item_data(Object(YWGC_Gift_Card), 98368)
#1 /wordpress/core/5.3.2/wp-includes/plugin.php(206): WP_Hook->apply_filters(Object(YWGC_Gift_Card), Array)
#2 /srv/htdocs/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1027): apply_filters(‘woocommerce_add…’, Object(YWGC_Gift_Card), 98368, 0, 1)
#3 /srv/htdocs/wp-content/plugins/yith-woocommerce-gift-cards/lib/class.yith-woocommerce-gift-cards.php(540): WC_Cart->add_to_cart(98368, 1, 0, Array, Object(YWGC_Gift_Card))
#4 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(288): YITH_WooCommerce_Gift_Cards->add_to_cart_handler(”)
#5 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array)
#6 /wordpress/core/5.3.2/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#7 /srv/htdocs/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(748): do_action(‘woocommerce_add…’, ”)
#8 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(288): WC_Form_Handler::add_to_cart_action(”)
#9 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
#10 /wordpress/core/5.3.2/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#11 /wordpress/core/5.3.2/wp-settings.php(545): do_action(‘wp_loaded’)
#12 /srv/htdocs/wp-config.php(81): require_once(‘/wordpress/core…’)
#13 /wordpress/core/5.3.2/wp-load.php(42): require_once(‘/srv/htdocs/wp-…’)
#14 /wordpress/core/5.3.2/wp-blog-header.php(13): require_once(‘/wordpress/core…’)
#15 /wordpress/core/5.3.2/index.php(17): require(‘/wordpress/core…’)
#16 {main}
thrown i /srv/htdocs/wp-content/plugins/woocommerce-product-addons/includes/class-wc-product-addons-cart.php p? linje 142