Deprecation notice
-
Below errors shows only when Rating plugin is activated. All template files listed below are up to date. I tried replacing them with the original WooCommerce templates and problem persisted.
Deprecation notice shows up above the stars of the plugin and once plugin gets deactivated – notice goes away.
There is only 1 file that has this string notice inside:
/wp-content/plugins/rating-widget/lib/extensions/rw-woocommerce.phpDeprecated: WC_Product::get_post_data is deprecated since version 3.0! Use get_post instead.
Notice: id 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/white/woocommerce/single-product.php’), wc_get_template_part, load_template, require(‘/themes/white/woocommerce/content-single-product.php’), do_action(‘woocommerce_single_product_summary’), WP_Hook->do_action, WP_Hook->apply_filters, RW_WooCommerce->AddProductRating, RW_WooCommerce->EmbedRatingByProduct, 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 /wp-includes/functions.php on line 5313
- The topic ‘Deprecation notice’ is closed to new replies.