Home Forums WoodMart support forum WordPress Debug Log is full of a notice after theme update to 4.0.2

WordPress Debug Log is full of a notice after theme update to 4.0.2

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #137523

    webaits
    Participant

    Hi,

    My WP debug.log file is logging a notice with each request as follow after updating the theme to version 4.0.2. Prior to that the notice was never there.

    PHP Notice: product_type 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/woodmart/woocommerce/archive-product.php’), do_action(‘woodmart_woocommerce_main_loop’), WP_Hook->do_action, WP_Hook->apply_filters, woodmart_woocommerce_main_loop, wc_get_template_part, load_template, require(‘/themes/woodmart/woocommerce/content-product.php’), wc_get_template_part, load_template, require(‘/themes/woodmart/woocommerce/content-product-quick.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(‘/themes/woodmart/woocommerce/loop/add-to-cart.php’), WC_Product_Variable->add_to_cart_text, apply_filters(‘woocommerce_product_add_to_cart_text’), WP_Hook->apply_filters, change_add_to_cart_text, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Please see <a href=”https://codex.word in /public_html/wp-includes/functions.php on line 4773

    As I’m in the process of setting up the website so can’t turn off notices and error.
    Please fix the issue.

    Thanks

    #137590

    Artem Temos
    Keymaster

    Hello,

    Could you please check how it works with some default WordPress theme like twentysixteen to understand is it our theme issue or not? We don’t have any place that calls the product_type property.

    Regards

    #137633

    webaits
    Participant

    Hi,

    The issue was with some other plugin, not with the Woodmart theme.

    Thanks

    #137644

    Artem Temos
    Keymaster

    OK, we are glad that you sorted it out.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘WordPress Debug Log is full of a notice after theme update to 4.0.2’ is closed to new replies.