Home Forums Basel support forum Error with other plugin

Error with other plugin

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #55670

    sovrgn
    Participant

    Hello,

    I’m getting an error on my product page, so wrote to YITH Request a quote support and apparently they corrected a bug with your Theme. Could you please confirm this is the right solution and that it will be corrected definitely? See below the email conversation:

    Hello,

    I’m getting the error message below on my product page

    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/basel/woocommerce/single-product.php’), wc_get_template_part, load_template, require(‘/themes/basel/woocommerce/content-single-product.php’), do_action(‘woocommerce_before_single_product’), WP_Hook->do_action, WP_Hook->apply_filters, basel_show_YWRAQ_button_single_page, 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/achatcloud/public_html/wp-includes/functions.php on line 4147

    This error message disappears when disabling YITH Request a quote plugin.

    How to fix this error?

    ______________________________________________________________

    YITH Support Team (YITH)
    May 2, 11:36 CEST
    Hi there,
    i found an error on your theme in the file wp-content/themes/basel/inc/woocommerce.php at the line 2340
    i changed it from

    if( $product->product_type == ‘variable’ ){
    into

    if( $product->is_type(‘variable’) ){
    and now the issue is gone.
    You should report it to the theme’s developer in order to fix this in a definitive way.

    Regards,

    #55673

    Eric Watson
    Participant

    Hi,

    OK, thank you. We will definitely add this fix in our next update.

    Best Regards

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