• Resolved Naqi

    (@naqirizvi)


    Hi there

    I have latest plugin , wordpress and woocommerce and all latest themes

    getting this error in my error log kindly resolve this
    [Thu May 30 07:30:27.098982 2019] [proxy_fcgi:error] [pid 7590] [client 127.0.0.1:51160] AH01071: Got error ‘PHP message: The WC_Product::get_parent function is deprecated since version 3.0. Replace with WC_Product::get_parent_id.\nPHP message: The WC_Product::get_post_data function is deprecated since version 3.0. Replace with get_post

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Well, this error not generated from WCFM, it’s from some other plugin.

    WCFM has no use of this function.

    Thank You

    Thread Starter Naqi

    (@naqirizvi)

    here is the Fatal error logs
    WooCommerce -> Status -> Logs -> fatal_errors log -> is any error generated?

    
    2019-05-05T16:41:49+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_available_variations() in /home/pnubdgksau/public_html/wp-content/themes/martfury-child/functions.php:226
    Stack trace:
    #0 /home/pnubdgksau/public_html/wp-includes/class-wp-hook.php(286): dcwd_populate_ninja_forms_select_for_variations(Array, Array)
    #1 /home

    /pnubdgksau/public_html/wp-includes/plugin.php(208): WP_Hook->apply_filters(Array, Array)
    #2 /home/pnubdgksau/public_html/wp-content/plugins/ninja-forms/includes/Display/Render.php(253): apply_filters(‘ninja_forms_ren…’, Array, Array)
    #3 /home/pnubdgksau/public_html/wp-content/plugins/ninja-forms/ninja-forms.php(737): NF_Display_Render::localize(3)
    #4 /home/pnubdgksau/public_html/wp-content/plugins/ninja-forms/includes/Display/Shortcodes.php(27): Ninja_Forms->display(‘3’)
    #5 /home/pnubdgksau/public_html/wp-includes/short in /home/pnubdgksau/public_html/wp-content/themes/martfury-child/functions.php on line 226

    2019-05-05T16:51:45+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_available_variations() in /homepnubdgksau/public_html/wp-content/themes/martfury-child/functions.php:36
    Stack trace:
    #0 /home/pnubdgksau/public_html/wp-includes/class-wp-hook.php(286): dcwd_populate_ninja_forms_select_for_variations(Array, Array)
    #1 /home/pnubdgksau/public_html/wp-includes/plugin.php(208): WP_Hook->apply_filters(Array, Array)
    #2 /home/pnubdgksau/public_html/wp-content/plugins/ninja-forms/includes/Display/Render.php(253): apply_filters(‘ninja_forms_ren…’, Array, Array)
    #3 /home/pnubdgksau/public_html/wp-content/plugins/ninja-forms/ninja-forms.php(737): NF_Display_Render::localize(3)
    #4 /home/pnubdgksau/public_html/wp-content/plugins/ninja-forms/includes/Display/Shortcodes.php(27): Ninja_Forms->display(‘3’)
    #5 /home/pnubdgksau/public_html/wp-includes/shortc in /home/pnubdgksau/public_html/wp-content/themes/martfury-child/functions.php on line 36`

    Thread Starter Naqi

    (@naqirizvi)

    This is the only occurrence in my theme , I have found the function in this file wp-content/plugins/wc-multivendor-membership/core/class-wcfmvm.php

    on these lines
    wp-content/plugins/wc-multivendor-membership/core/class-wcfmvm.php:1278: $order_id = $subscription->get_parent();
    wp-content/plugins/wc-multivendor-membership/core/class-wcfmvm.php:1347: $order_id = $subscription->get_parent();
    wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-product.php-bak:416: public function get_parent() {
    wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-product.php:416: public function get_parent() {
    wp-content/plugins/woocommerce-product-addons/classes/class-product-addon-display.php:458: if ( $product && $product->get_parent() && is_single( $product->get_parent() ) && $this->check_required_addons( $product->id ) ) {

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    This is the only occurrence in my theme , I have found the function in this file wp-content/plugins/wc-multivendor-membership/core/class-wcfmvm.php

    – Well, that’s related to “Subscription”, not products – https://ibb.co/ypvx5js

    Thank You

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘getting error in error logs’ is closed to new replies.