• Resolved Ali

    (@lindenhoff)


    Hey,
    We have this error in our logs.

    2021-11-22T11:13:37+00:00 CRITICAL Uncaught TypeError: Argument 2 passed to Pronamic\WordPress\Pay\Extensions\WooCommerce\Extension::woocommerce_thankyou_order_received_text() must be an instance of WC_Order, null given, called in /var/app/current/app/wordpress/wp-includes/class-wp-hook.php on line 303 and defined in /var/app/current/app/content/plugins/pronamic-ideal/vendor/wp-pay-extensions/woocommerce/src/Extension.php:394
    Stack trace:
    #0 /var/app/current/app/wordpress/wp-includes/class-wp-hook.php(303): Pronamic\WordPress\Pay\Extensions\WooCommerce\Extension::woocommerce_thankyou_order_received_text('Bedankt. Je bes...', NULL)
    #1 /var/app/current/app/wordpress/wp-includes/plugin.php(189): WP_Hook->apply_filters('Bedankt. Je bes...', Array)
    #2 /var/app/current/app/content/plugins/woocommerce/templates/checkout/thankyou.php(84): apply_filters('woocommerce_tha...', 'Bedankt. Je bes...', NULL)
    #3 /var/app/current/app/content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/var/app/curren...')
    #4 /var/app/current/app/content/p in /var/app/current/app/content/plugins/pronamic-ideal/vendor/wp-pay-extensions/woocommerce/src/Extension.php op de lijn 394

    That’s because woocommerce has two apply filters and one them has null argument instead of order object.
    <p class="woocommerce-notice woocommerce-notice--success woocommerce-thankyou-order-received"><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thank you. Your order has been received.', 'woocommerce' ), null );

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘woocommerce error log’ is closed to new replies.