• Resolved deschong

    (@deschong)


    I’m getting PHP Fatal error on:

    PHP Fatal error: Uncaught Error: Call to a member function get_data() on boolean in /home/mydomain/public_html/wp-content/themes/ciyashop-child/woocommerce/checkout/thankyou.php:41
    Stack trace:
    #0 /home/phshairscience/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(210): include()
    #1 /home/mydomain/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(213): wc_get_template(‘checkout/thanky…’, Array)
    #2 /home/mydomain/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(63): WC_Shortcode_Checkout::order_received(26652)
    #3 /home/mydomain/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_Checkout::output(”)
    #4 /home/mydomain/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(95): WC_Shortcodes::shortcode_wrapper(Array, ”)
    #5 /home/mydomain/public_html/wp-includes/shortcodes.php(343): WC_Shortcodes::checkout(”, ”, in /home/mydomain/public_html/wp-content/themes/ciyashop-child/woocommerce/checkout/thankyou.php on line 41

    Nothing has changed on the checkout.php and no new plugins was installed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Hello there,
    This issue is from your child theme, not WooCommerce.

    Check the thankyou.php file in the child theme and see what is on line 41 that uses a boolean value with get_data.

    Thread Starter deschong

    (@deschong)

    This is the code on line 41.

    	<?php
    	$order_data = $order->get_data();
    	?>
    Plugin Support RK a11n

    (@riaanknoetze)

    Thanks for sharing that code; To troubleshoot this further, you’d need to get in touch with the developers of that child theme or consider deactivating the child theme entirely.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal error: Uncaught Error: Call to a member function get_data()’ is closed to new replies.