- Support forum for the Cost of Goods Sold (COGS): Cost & Profit Calculator for WooCommerce.
- May 11, 2021 at 12:58 am #89630Aline DuchesneParticipant
I updated my PHP engine to 8.0 and get this error. Do you plan on updating the plugin to accommodate PHP 8.0
cost of Goods error
2021/05/11 00:41:38 [error] 30677#30677: *299 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * int in /www/sapphireinkntoner_985/public/wp-content/plugins/cost-of-goods-for-woocommerce-pro/includes/class-alg-wc-cog-orders.php:614
#0 /www/sapphireinkntoner_985/public/wp-content/plugins/cost-of-goods-for-woocommerce-pro/includes/class-alg-wc-cog-orders.php(362): Alg_WC_Cost_of_Goods_Orders->update_order_items_costs(31427, true, true)
#1 /www/sapphireinkntoner_985/public/wp-includes/class-wp-hook.php(292): Alg_WC_Cost_of_Goods_Orders->update_order_items_costs_save_post(31427, Object(WP_Post), true)
#2 /www/sapphireinkntoner_985/public/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(”, Array)
#3 /www/sapphireinkntoner_985/public/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#4 /www/sapphireinkntoner_985/public/wp-includes/post.php(4373): do_action(‘save_post_shop_…’, 31427, Object(WP_Post), true)
#5 /www/sapphireinkntoner_985/public/wp-includes/post.php(4486): wp_insert_pos” while reading response header from upstream, client: 184.108.40.206, server: sapphireinkntoner.com, request: “GET /wp-admin/admin-ajax.php?action=woocommerce_mark_order_status&status=processing&order_id=31427&_wpnonce=2b9a29ea9b HTTP/1.0”, upstream: “fastcgi://unix:/var/run/php8.0-fpm-sapphireinkntoner.sock:”, host: “sapphireinkntoner.com”, referrer: “https://sapphireinkntoner.com/wp-admin/edit.php?post_type=shop_order&kinsta-cache-cleared=true”May 11, 2021 at 12:50 pm #89631ZohaibParticipant
I just tested the plugin with PHP V 8.0 and could not re-create the problem. Is there something that you need to do to trigger the error?
Could you please make sure you are using the latest version of the plugin.May 11, 2021 at 8:06 pm #89632Aline DuchesneParticipant
I am using version 2.4.1.
When using PHP 7.4 all is good but when updating to 8.0, tried it again, and the same error happens.
It occurs when I go to Woocommerce/Orders and click on an order. The order is in the processing stage. The minute I click on the order, my site breaks.May 12, 2021 at 12:17 pm #89633ZohaibParticipant
Tried again with PHP V8.0 and edit order option, tried with an order which had the processing status. Still working ok for us.
Is it possible for you to share your WordPress dashboard access and our developers can have a look for you?
You can send your details to [email protected]
- You must be logged in to reply to this topic.