Error in the log files - by cloudtechltd

This topic has 12 replies, 2 voices, and was last updated 2 years, 9 months ago ago by Olga Barlow

  • Avatar: cloudtechltd
    cloudtechltd
    Participant
    September 9, 2021 at 21:35

    Hi

    I see the following Error in the log files:

    Got error ‘PHP message: product_type was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_nopriv_et_ajax_element’), WP_Hook->do_action, WP_Hook->apply_filters, et_ajax_element, do_shortcode, preg_replace_callback, do_shortcode_tag, ETC\\App\\Controllers\\Shortcodes\\Products->products_shortcode, etheme_products, wc_get_template_part, load_template, require(‘/themes/xstore/woocommerce/content-product.php’), do_action(‘woocommerce_after_shop_loop_item’),

    PHP Version 7.4

    Can you please debug this issue

    Thank You

    11 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 10, 2021 at 12:03

    Hello,

    Provide us with WP Dashboard and FTP access to your site. We’ll check and help you.

    Regards

    Avatar: cloudtechltd
    cloudtechltd
    Participant
    September 24, 2021 at 04:05

    Thank You

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 24, 2021 at 14:59

    Hello,

    Could you, please, tell me your actions before you get this error in the log file to reproduce that?

    Regards

    Avatar: cloudtechltd
    cloudtechltd
    Participant
    September 24, 2021 at 15:22

    I can’t confirm when this error is showing in the log files, But i just visited the home page and I See the same error in the log files.

    Thank You

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 24, 2021 at 17:26

    Hello,

    WooCommerce error log file (WooCommerce > Status > Logs ) is empty.
    wp-content/debug.log file is empty. So, where do you see the mentioned error?

    Regards

    Avatar: cloudtechltd
    cloudtechltd
    Participant
    September 24, 2021 at 17:40

    Hello Olga,

    I see the errors in Apache error log file.

    Thank You

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 24, 2021 at 17:54

    Hello,

    What is the time of that error? Clear the error log file and visit the home page. Do you get that error just once visit the home page?

    Regards

    Avatar: cloudtechltd
    cloudtechltd
    Participant
    September 24, 2021 at 18:05

    I did please see the screen shot below

    https://paste.pics/E06Q8

    Thank You

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 27, 2021 at 11:15

    Hello,

    I see. Ok. I passed the issue to our developers. I’ll inform you once they fix the problem.

    Regards

    Avatar: cloudtechltd
    cloudtechltd
    Participant
    October 13, 2021 at 18:06

    Dear Olga,

    Do you have any updates on this ?

    we are still getting the following Error in the log files.

    AH01071: Got error ‘e was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_et_ajax_element’), WP_Hook->do_action, WP_Hook->apply_filters, et_ajax_element, do_shortcode, preg_replace_callback, do_shortcode_tag, ETC\\App\\Controllers\\Shortcodes\\Products->products_shortcode, etheme_products, wc_get_template_part, load_template, require(‘/themes/xstore/woocommerce/content-product.php’), do_action(‘woocommerce_after_shop_loop_item’), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_template_loop_add_to_cart, apply_filters(‘woocommerce_loop_add_to_cart_args’), WP_Hook->apply_filters, wvs_pro_loop_add_to_cart_args, WC_Product_Simple->add_to_cart_text, apply_filters(‘woocommerce_product_add_to_cart_text’), WP_Hook->apply_filters, custom_select_options_text, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.PHP message: product_type was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_et_ajax_element’), WP_Hook->do_action, WP_Hook->apply_filters, et_ajax_element, do_shortcode, preg_replace_callback, do_shortcode_tag, ETC\\App\\Controllers\\Shortcodes\\Products->products_shortcode, etheme_products, wc_get_template_part, load_template, require(‘/themes/xstore/woocommerce/content-product.php’), do_action(‘woocommerce_after_shop_loop_item’), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_template_loop_add_to_cart, apply_filters(‘woocommerce_loop_add_to_cart_args’), WP_Hook->apply_filters, wvs_pro_loop_add_to_cart_args, WC_Product_Variable->add_to_cart_text, apply_filters(‘woocommerce_product_add_to_cart_text’), WP_Hook->apply_filters, custom_select_options_text, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.PHP message: product_type was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_et_ajax_element’), WP_Hook->do_action, WP_Hook->apply_filters, et_ajax_element, do_shortcode, preg_replace_callback, do_shortcode_tag, ETC\\App\\Controllers\\Shortcodes\\Products->products_shortcode, etheme_products, wc_get_template_part, load_template, require(‘/themes/xstore/woocommerce/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’), WC_Product_Variable->add_to_cart_text, apply_filters(‘woocommerce_product_add_to_cart_text’), WP_Hook->apply_filters, custom_select_options_text, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.’, referer: https://eshop.hypercy.com/

    Thank You

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    October 15, 2021 at 10:29

    Hello,

    Take my apologies for the delay in answering.
    Error comes because of the third-party swatches plugin that you use. They have the following file https://prnt.sc/1twwdtc where they add compatibility with the premium themes. Please, contact the plugin author and ask them to add compatibility with the XStore theme too.

    Regards

  • Viewing 12 results - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.