Why am I getting an error while using PHP 8.0?

Top WooCommerce & WordPress Plugins Forums Cost of Goods for WooCommerce Why am I getting an error while using PHP 8.0?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #89630
    Aline Duchesne
    Participant

    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

    Stack trace:

    #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: 99.239.179.13, 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

    #89631
    Zohaib
    Participant

    Hi,

    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.

    #89632
    Aline Duchesne
    Participant

    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.

    #89633
    Zohaib
    Participant

    Hi,

    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]

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.