Home › Forums › Basel support forum › Having Issues With Woocommerce Product Loops
Having Issues With Woocommerce Product Loops
- This topic has 8 replies, 2 voices, and was last updated 7 years, 10 months ago by
Artem Temos.
-
AuthorPosts
-
May 1, 2017 at 2:06 am #13012
leighlandecheParticipantI am having some issues with The WooCommerce Product Loops Throwing some Apache Errors which is causing some severe performance issues.
Below is the attached Errors, If I replace the content-product.php template with the Stock Woocommerce template everything works great but then i loose the custom look and functionality that i purchased the theme for. Can you advise of a way to fix this?
Thanks
AH01071: Got error ‘Hook->apply_filters, call_user_func_array, wcva_shop_page_swatches->wcva_change_shop_attribute_swatches, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.\nPHP message: The The “woocommerce_get_price” hook uses out of date data structures and function is deprecated since version 3.0.5. Replace with woocommerce_product_get_price.\nPHP message: id was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_wpseo_filter_shortcodes’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPSEO_Shortcode_Filter->do_filter, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, WC_Shortcodes::recent_products, WC_Shortcodes::product_loop, wc_get_template_part, load_template, require(‘/themes/basel/woocommerce/content-product.php’), wc_get_template_part, load_template, require(‘/themes/basel/woocommerce/content-product-alt.php’), do_action(‘woocommerce_after_shop_loop_item’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, woocommerce_template_loop_add_to_cart, WC_Product->is_purchasable, WC_Product->get_price, WC_Data->get_prop, apply_filters(‘woocommerce_product_get_price’), WP_Hook->apply_filters, call_user_func_array, WC_Deprecated_Hooks->maybe_handle_deprecated_hook, WC_Deprecated_Filter_Hooks->handle_deprecated_hook, WC_Deprecated_Filter_Hook…\nPHP message: The The “woocommerce_get_price” hook uses out of date data structures and function is deprecated since version 3.0.5. Replace with woocommerce_product_get_price.\nPHP message: id was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_wpseo_filter_shortcodes’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPSEO_Shortcode_Filter->do_filter, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, WC_Shortcodes::recent_products, WC_Shortcodes::product_loop, wc_get_template_part, load_template, require(‘/themes/basel/woocommerce/content-product.php’), wc_get_template_part, load_template, require(‘/themes/basel/woocommerce/content-product-alt.php’), do_action(‘woocommerce_after_shop_loop_item’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, 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, WC_Product->is_purchasable, WC_Product->get_price, WC_Data->get_prop, apply_filters(‘woocommerce_product_get_price’), WP_Hook->apply_filters, call_user_func_array, WC_Depre…\nPHP message: The The “woocommerce_get_price” hook uses out of date data structures and function is deprecated since version 3.0.5. Replace with woocommerce_product_get_price.\nPHP message: id was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_wpseo_filter_shortcodes’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPSEO_Shortcode_Filter->do_filter, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, WC_Shortcodes::recent_products, WC_Shortcodes::product_loop, wc_get_template_part, load_template, require(‘/themes/basel/woocommerce/content-product.php’), post_class, get_post_class, apply_filters(‘post_class’), WP_Hook->apply_filters, call_user_func_array, wc_product_post_class, WC_Product->is_purchasable, WC_Product->get_price, WC_Data->get_prop, apply_filters(‘woocommerce_product_get_price’), WP_Hook->apply_filters, call_user_func_array, WC_Deprecated_Hooks->maybe_handle_deprecated_hook, WC_Deprecated_Filter_Hooks->handle_deprecated_hook, WC_Deprecated_Filter_Hooks->trigger_hook, apply_filters_ref_array, WP_Hook->apply_filters, call_user_func_array, ok_get_price, WC_Abstract_Legacy_Prod…\nPHP message: product_type was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_wpseo_filter_shortcodes’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPSEO_Shortcode_Filter->do_filter, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, WC_Shortcodes::recent_products, WC_Shortcodes::product_loop, wc_get_template_part, load_template, require(‘/themes/basel/woocommerce/content-product.php’), wc_get_template_part, load_template, require(‘/themes/basel/woocommerce/content-product-alt.php’), do_action(‘woocommerce_after_shop_loop_item_title’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, wcva_shop_page_swatches->wcva_change_shop_attribute_swatches, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.\nPHP message: id was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_wpseo_filter_shortcodes’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPSEO_Shortcode_Filter->do_filter, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, WC_Shortcodes::recent_products, WC_Shortcodes::product_loop, wc_get_template_part, load_template, require(‘/themes/basel/woocommerce/content-product.php’), wc_get_template_part, load_template, require(‘/themes/basel/woocommerce/content-product-alt.php’), do_action(‘woocommerce_after_shop_loop_item_title’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, wcva_shop_page_swatches->wcva_change_shop_attribute_swatches, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.\nPHP message: id was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_wpseo_filter_shortcodes’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPSEO_Shortcode_Filter->do_filter, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, WC_Shortcodes::recent_products, WC_Shortcodes::product_loop, wc_get_template_part, load_template, require(‘/themes/basel/woocommerce/content-product.php’), wc_get_template_part, load_template, require(‘/themes/basel/woocommerce/content-product-alt.php’), do_action(‘woocommerce_after_shop_loop_item_title’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, wcva_shop_page_swatches->wcva_change_shop_attribute_swatches, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.\nPHP message: id was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_wpseo_filter_shortcodes’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPSEO_Shortcode_Filter->do_filter, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, WC_Shortcodes::recent_products, WC_Shortcodes::product_loop, wc_get_template_part, load_template, require(‘/themes/basel/woocommerce/content-product.php’), wc_get_template_part, load_template, require(‘/themes/basel/woocommerce/content-product-alt.php’), do_action(‘woocommerce_after_shop_loop_item_title’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, wcva_shop_page_swatches->wcva_change_shop_attribute_swatches, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.\nPHP message: The The “woocommerce_get_price” hook uses out of date data structures and function is deprecated since version 3.0.5. Replace with woocommerce_product_get_price.\nPHP message: id was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_wpseo_filter_shortcodes’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WPSEO_Shortcode_Filter->do_filter, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, WC_Shortcodes::recent_products, WC_Shortcodes::product_loop, wc_get_template_part, load_template, require(‘/themes/basel/woocommerce/content-product.php’), wc_get_template_part, load_template, require(‘/themes/basel/woocommerce/content-product-alt.php’), do_action(‘woocommerce_after_shop_loop_item’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_arr
May 1, 2017 at 3:17 am #13013
leighlandecheParticipantAlso wanted to make note that if you look at the site currently i’m getting a 6 Second Time To First Byte. Thats only with the product Xtemos Product Carousel I need another section below the email signup that list my latest products but when I include that I get a 18 Second Time To First Byte so I had to remove it until we can figure out what’s going on.
Without either of the Products on the page I get less than 1 second Time To First Byte.
May 1, 2017 at 6:18 am #13017
Artem TemosKeymasterHello,
Thank you for choosing our theme and contacting us.
Please, disable all additional plugins installed on your website and provide us your admin access so we can check it.
Kind Regards
XTemos StudioMay 1, 2017 at 5:16 pm #13040
leighlandecheParticipantHi, We can not disable all the plugins this is a live functional site. But I assure you we have been through that process. As soon as we turn on Woocommerce that is where the issue comes up.
We have even narrowed it down to the themes/basel/woocommerce/content-product.php file. if we use the stock Woocommerce File everything works perfect.
Attaching Admin access
May 1, 2017 at 6:37 pm #13048
Artem TemosKeymasterSorry, but we have to disable all plugins to be sure that the issue is caused by our theme explicitly.
May 1, 2017 at 7:07 pm #13054
leighlandecheParticipantokay, do what you have to do I guess. Do you know around when y’all will Trouble Shoot it so that I can have an idea when its going to go down?
Thanks,
LeighMay 1, 2017 at 7:33 pm #13058
Artem TemosKeymasterFirstly, disable all plugins one by one to check which one causes the problem.
May 1, 2017 at 9:44 pm #13063
leighlandecheParticipantDon’t worry about it I went through and trouble shot it. If you have anyone else with these issues you can comment line 56 out of your content-product template and it works fine after
<?php
basel_swatches_list();
?>That guy is the problem.
May 2, 2017 at 8:12 am #13067
Artem TemosKeymasterHi,
But it is very strange since for all customers it works correctly with this line also. Our demo works ok as well. So it would be better to find a real root of the problem.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register