CRITICAL Uncaught Error: Call to a member function get_title() on null
-
I want to load the WooCommerce payment template on my custom checkout page. I placed the following code inside
page-checkout.php
.<?php wc_get_template( 'checkout/payment.php' ); ?>
Payment methods start showing up upon adding the code. However, the payment does not proceed. I checked the error logs and it says the following:
CRITICAL Uncaught Error: Call to a member function get_title() on null in /checkout/payment-method.php:26
.I haven’t made any changes to the
payment-method.php
file at all. It works with the Storefront theme but they don’t have a custom Checkout page layout that I want. So, I created my own child theme based on Storefront.What is causing this error?
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘CRITICAL Uncaught Error: Call to a member function get_title() on null’ is closed to new replies.