Many errors generated due to deprecated code ?
-
When debug is enabled my WC pages are full of this error. The Quantity buttons are still displaying. Does the plugin need a minor update ?
Notice: Function get_stock_quantity was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/flatsome/page-blank.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, ux_row, do_shortcode, preg_replace_callback, do_shortcode_tag, ux_col, do_shortcode, preg_replace_callback, do_shortcode_tag, WC_Shortcodes::recent_products, WC_Shortcode_Products->get_content, WC_Shortcode_Products->product_loop, wc_get_template_part, load_template, require(‘/themes/character-parties-2018/woocommerce/content-product.php’), do_action(‘flatsome_product_box_after’), WP_Hook->do_action, WP_Hook->apply_filters, flatsome_woocommerce_shop_loop_button, woocommerce_template_loop_add_to_cart, wc_get_template, include(‘/plugins/woocommerce/templates/loop/add-to-cart.php’), apply_filters(‘woocommerce_loop_add_to_cart_link’), WP_Hook->apply_filters, woa_wqfsp->woa_add_quantity_fields, woocommerce_quantity_input, apply_filters(‘woocommerce_quantity_input_args’), WP_Hook->apply_filters, woa_wqfsp->woa_woocommerce_quantity_input_args, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.) in /home/pfaazwzh/public_html/wp-includes/functions.php on line 5905
- The topic ‘Many errors generated due to deprecated code ?’ is closed to new replies.