Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes i get the same error, we use php 8

    [31-Jan-2022 21:40:52 UTC] PHP Notice: stock_quantity was called <strong>incorrectly</strong>. Product properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/minimal/page.php'), get_template_part, locate_template, load_template, require('/themes/minimal/content.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, WC_Template_Loader::unsupported_theme_shop_content_filter, WC_Shortcode_Products->get_content, WC_Shortcode_Products->product_loop, wc_get_template_part, load_template, require('/themes/minimal/content-product.php'), do_action('woocommerce_after_shop_loop_item'), WP_Hook->do_action, WP_Hook->apply_filters, 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 <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.0.) in /home/XXXXX/public_html/wp-includes/functions.php on line 5768

    The error is multiplied for each product in shop page – the log get 20 KB on each refresh.

    same problem here

    Same problema here!

    Please @wooassist help us.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Log Error: “stock_quantity was called incorrectly”’ is closed to new replies.