• Resolved dilusionz

    (@dilusionz)


    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

Viewing 1 replies (of 1 total)
  • Thread Starter dilusionz

    (@dilusionz)

    With different themes the message changes slightly.. This is with default 2023 WP them enabled.

    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(‘wp-includes/template-canvas.php’), get_the_block_template_html, do_blocks, render_block, WP_Block->render, WP_Block->render, WP_Block->render, WP_Block->render, WP_Block->render, Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callback, Automattic\WooCommerce\Blocks\BlockTypes\AddToCartForm->render, do_action(‘woocommerce_simple_add_to_cart’), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_simple_add_to_cart, wc_get_template, include(‘/plugins/woocommerce/templates/single-product/add-to-cart/simple.php’), 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

Viewing 1 replies (of 1 total)
  • The topic ‘Many errors generated due to deprecated code ?’ is closed to new replies.