-
Hi,
Sorry to come again with another depricated issue.
I was wondering if these are caused because a compatibility problem between the theme and Woocommerce.I do not want to ask not-theme related things to you guys, I only want to have e this fixed and reported so other theme members can benefit from this as well.
My host is throwing the following message:
[Thu Jul 20 12:40:06.902181 2017] [proxy_fcgi:error] [pid 7248:tid 140040956983040] [client 145.130.132.79:63972] AH01071: Got error ‘PHP message: The woocommerce_get_product_schema function is deprecated since version 3.0.\nPHP message: The get_product function is deprecated since version 3.0. Replace with wc_get_product.\nPHP message: The WC_Product::get_gallery_attachment_ids function is deprecated since version 3.0. Replace with WC_Product::get_gallery_image_ids.\nPHP message: The get_product function is deprecated since version 3.0. Replace with wc_get_product.\nPHP message: The WC_Product::get_gallery_attachment_ids function is deprecated since version 3.0. Replace with WC_Product::get_gallery_image_ids.\nPHP message: The get_product function is deprecated since version 3.0. Replace with wc_get_product.\nPHP message: The WC_Product::get_gallery_attachment_ids function is deprecated since version 3.0. Replace with WC_Product::get_gallery_image_ids.\nPHP message: The get_product function is deprecated since version 3.0. Replace with wc_get_product.\nPHP message: The WC_Product::get_gallery_attachment_ids function is deprecated since version 3.0. Replace with WC_Product::get_gallery_image_ids.\nPHP message: The get_product function is deprecated since version 3.0. Replace with wc_get_product.\nPHP message: The WC_Product::get_gallery_attachment_ids function is deprecated since version 3.0. Replace with WC_Product::get_gallery_image_ids.\nPHP message: id was called incorrectly. Producteigenschappen mogen niet rechtstreeks aangeroepen worden. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/dmcs/woocommerce.php’), DH_Woocommerce::content, wc_get_template_part, load_template, require(‘/themes/dmcs-child/woocommerce/content-single-product.php’), do_action(‘woocommerce_single_product_summary’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, woocommerce_template_single_add_to_cart, do_action(‘woocommerce_variable_add_to_cart’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, woocommerce_variable_add_to_cart, wc_get_template, include(‘/themes/dmcs/woocommerce/single-product/add-to-cart/variable.php’), WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.\nPHP message: id was called incorrectly. Producteigenschappen mogen niet rechtstreeks aangeroepen worden. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/dmcs/woocommerce.php’), DH_Woocommerce::content, wc_get_template_part, load_template, require(‘/themes/dmcs-child/woocommerce/content-single-product.php’), do_action(‘woocommerce_single_product_summary’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, woocommerce_template_single_add_to_cart, do_action(‘woocommerce_variable_add_to_cart’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, woocommerce_variable_add_to_cart, wc_get_template, include(‘/themes/dmcs/woocommerce/single-product/add-to-cart/variable.php’), DH_Woocommerce_Product_Variable->get_product_image, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.\nPHP message: The get_product function is deprecated since version 3.0. Replace with wc_get_product.\nPHP message: The WC_Product::get_gallery_attachment_ids function is deprecated since version 3.0. Replace with WC_Product::get_gallery_image_ids.\nPHP message: The WC_Product::get_upsells function is deprecated since version 3.0. Replace with WC_Product::get_upsell_ids.\nPHP message: id was called incorrectly. Producteigenschappen mogen niet rechtstreeks aangeroepen worden. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/dmcs/woocommerce.php’), DH_Woocommerce::content, wc_get_template_part, load_template, require(‘/themes/dmcs-child/woocommerce/content-single-product.php’), do_action(‘woocommerce_after_single_product_summary’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, DH_Woocommerce->upsell_display, woocommerce_upsell_display, wc_get_template, include(‘/themes/dmcs-child/woocommerce/single-product/up-sells.php’), WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.\nPHP message: The WC_Product::get_related function is deprecated since version 3.0. Replace with wc_get_related_products.\nPHP message: id was called incorrectly. Producteigenschappen mogen niet rechtstreeks aangeroepen worden. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/dmcs/woocommerce.php’), DH_Woocommerce::content, wc_get_template_part, load_template, require(‘/themes/dmcs-child/woocommerce/content-single-product.php’), do_action(‘woocommerce_after_single_product_summary’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, woocommerce_output_related_products, woocommerce_related_products, wc_get_template, include(‘/themes/dmcs-child/woocommerce/single-product/related.php’), WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.\n’, referer: https://www.klerenmakendebaby.nl/product/vest-black/
[Thu Jul 20 12:40:08.649169 2017] [proxy_fcgi:error] [pid 7248:tid 140040621307648] [client 145.130.132.79:63983] AH01067: Failed to read FastCGI header, referer: https://www.klerenmakendebaby.nl/product-categorie/vesten/Regards,
Michiel
Get_product & _get_product_schema depricated funtion
This topic is: resolved