• Resolved Marco Almeida | Webdados

    (@webdados)


    Hi,

    We’re getting this fatal error when exporting some orders:

    2026/07/31 12:58:13 [error] 19088#19088: *555452 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined method WC_Order::get_reason() in /var/www/our_domain/htdocs/wp-content/plugins/woo-order-export-lite/classes/core/class-wc-order-export-order-fields.php:531

    This is the problematic code:

    $row[$field] = $this->parent_order->{'get_' . $field}(); //use main order details for refund

    I guess you need to safeguard this with method_exists( $this->parent_order, 'get_' . $field ) just like you do at line 462

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.