Top WooCommerce & WordPress Plugins › Forums › Cost of Goods for WooCommerce › How to fix this error when I try to recalculate orders cost?
- Support forum for the Cost of Goods Sold (COGS): Cost & Profit Calculator for WooCommerce.
- This topic has 3 replies, 2 voices, and was last updated 3 years, 6 months ago by
Tom Anbinder.
- AuthorPosts
- May 23, 2020 at 12:19 pm #89323
Asbjørn Fjendbo
ParticipantHi,
When i try to Recalculate orders cost and profit for all orders it comes up with the following error.
what could be wrong?Fatal error: Uncaught Error: Call to undefined method AutomatticWooCommerceAdminOverridesOrderRefund::get_payment_method() in /var/www/fritrolderi.dk/public_html/wp-content/plugins/cost-of-goods-for-woocommerce-pro/includes/class-alg-wc-cost-of-goods-core.php:364 Stack trace: #0 /var/www/fritrolderi.dk/public_html/wp-content/plugins/cost-of-goods-for-woocommerce-pro/includes/pro/class-alg-wc-cost-of-goods-pro.php(115): Alg_WC_Cost_of_Goods_Core->update_order_items_costs(8667, true, false) #1 /var/www/fritrolderi.dk/public_html/wp-includes/class-wp-hook.php(288): Alg_WC_Cost_of_Goods_Pro->recalculate_orders_cost_and_profit(‘tools’) #2 /var/www/fritrolderi.dk/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array) #3 /var/www/fritrolderi.dk/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #4 /var/www/fritrolderi.dk/public_html/wp-content/plugins/cost-of-goods-for-woocommerce-pro/includes/settings/class-alg-wc-settings-cost-of-goods.php(108): do_action(‘alg_wc_cog_save…’, ‘to in /var/www/fritrolderi.dk/public_html/wp-content/plugins/cost-of-goods-for-woocommerce-pro/includes/class-alg-wc-cost-of-goods-core.php on line 364
May 27, 2020 at 2:52 am #89324Hi,
Sorry for the late reply.
From the error message – it looks like this is related to our “Extra Payment Gateway Costs” section (there should be no errors if you disable it). I will be fixing that asap.
May 27, 2020 at 11:58 pm #89325Hi,
I’ve just sent you our newest development version via email. The issue should be fixed now. Please give it a try. And please let me know if you have any questions.
June 6, 2020 at 12:14 am #89326If anyone else has a similar problem – this is fixed in plugin v1.7.0.
- AuthorPosts
- You must be logged in to reply to this topic.