PHP Fatal error: Uncaught TypeError

Top WooCommerce & WordPress Plugins Forums Cost of Goods for WooCommerce PHP Fatal error: Uncaught TypeError

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #129827
    Woo
    Participant

    PHP Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in ../wp-content/plugins/cost-of-goods-for-woocommerce/includes/class-alg-wc-cog-orders.php:846

    #129952
    Moshtafizur
    Moderator
    Plugin Support

    Hi there,

    I was unable to reproduce it. Could you please ensure that you are using latest version of the WooCommerce and our plugin?

    #129953
    Woo
    Participant

    Hi there,

    Yes, we’re using latest version now – Version 3.1.5

    When we installed and activated this plugin, when we view the order page, it will pop up error.

    You can try to install this plugin and test : https://wordpress.org/plugins/woo-order-export-lite/

    #130105
    pablo-pacheco
    Moderator

    I couldn’t reproduce the bug too, however, I believe I was able to fix it by simply checking if the variable is null before using it in the function.

    Please, update the plugin to version 3.1.6 and let me know if it helps.

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