• Hello,

    There is a big issue with the latest WP+plugin update (shop is completely broken) :

    FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to a member function get_meta() on string in […]/public/wp-content/plugins/yith-pre-order-for-woocommerce/includes/class-yith-pre-order-product.php:69

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Alberto Ruggiero

    (@witcher83)

    Hello @goudie35,

    could you paste the entire stack trace of the error? That mentioned method is no longer used on the plugin frontend. Maybe you have a custom code?

    Thread Starter Goudie

    (@goudie35)

    #0 /www/project/public/wp-content/themes/custom/functions.php(779): YITH_Pre_Order_Product->get_pre_order_status()
    #1 /www/project/public/wp-includes/class-wp-hook.php(324): wcs_custom_get_availability(Array, Object(WC_Product_Simple))
    #2 /www/project/public/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
    #3 /www/project/public/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(2127): apply_filters('woocommerce_get...', Array, Object(WC_Product_Simple))
    #4 /www/project/public/wp-content/themes/custom/functions.php(231): WC_Product->get_availability()
    #5 /www/project/public/wp-includes/class-wp-hook.php(324): flatsome_woocommerce_shop_loop_category('')
    #6 /www/project/public/wp-includes/c" while reading response header from upstream

    It seems the get_pre_order_status was not even used anymore – previously used to display a different availability text. Do you confirm this is the issue ? So I can check if this code was used elsewere on the website to avoid errors.

    Thank you

    Plugin Support Alberto Ruggiero

    (@witcher83)

    Hello @goudie35

    the function is still available in the plugin but probably your customization inside the wcs_custom_get_availability function is using it in the wrong way.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP fatal error’ is closed to new replies.