This topic has 12 replies, 2 voices, and was last updated 2 years, 11 months ago ago by Olga Barlow
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
Hello,
Provide us with WP Dashboard and FTP access to your site. We’ll check and help you.
Regards
Thank You
Hello,
Could you, please, tell me your actions before you get this error in the log file to reproduce that?
Regards
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
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
Hello Olga,
I see the errors in Apache error log file.
Thank You
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
Hello,
I see. Ok. I passed the issue to our developers. I’ll inform you once they fix the problem.
Regards
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
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
You must be logged in to reply to this topic.Log in/Sign up