Critical error – method on boolean value instead of object
-
My customer uses the free Kadence WooCommerce Email Designer, but when editing emails, sees the message: “A critical error has occurred on this site”. See attached screenshot.
When testing, I see that this is because of a conflict with the Pre-Orders For WooCommerce plugin: if I disable that plugin, the error message disappears and I can visually see the editor and the results of the changes I’m making in the left side fields of the Kadence Email Designer plugin.
This is the error message from the log and underneath that a cause for the error, based on a reply from a WooCommerce forum member:
Uncaught Error: Call to a member function get_meta() on bool in /home/website199/domains/ourwebsite.com/public_html/wp-content/plugins/pre-orders-for-woocommerce/src/Checkout.php:67 CONTEXT: {“error”:{“type”:1,”file”:”\/home\/website199\/domains\/ourwebsite.com\/public_html\/wp-content\/plugins\/pre-orders-for-woocommerce\/src\/Checkout.php”,”line”:67},”backtrace” “”,”#0 \/home\/website199\/domains\/ourwebsite.com\/public_html\/wp-includes\/class-wp-hook.php(324): Woocommerce_Preorders\Checkout->setPreroderStatus()”,”#1 \/home\/website199\/domains\/ourwebsite.com\/public_html\/wp-includes\/plugin.php(205): WP_Hook->apply_filters()”,”#2 \/home\/website199\/domains\/ourwebsite.com\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-order.php(323): apply_filters()”,”#3 \/home\/website199\/domains\/ourwebsite.com\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-order.php(300): WC_Order->maybe_set_date_paid()”,”#4 \/home\/website199\/domains\/ourwebsite.com\/public_html\/wp-content\/plugins\/woocommerce\/includes\/abstracts\/abstract-wc-data.php(801): WC_Order->set_status()”,”#5 \/home\/website199\/domains\/ourwebsite.com\/public_html\/wp-content\/plugins\/kadence-woocommerce-email-designer\/includes\/class-kadence-woomail-p”]}
Cause:
The error message you see, Uncaught Error: Call to a member function get_meta() on bool, indicates that a method (get_meta) is being called on a boolean value instead of an object. This is done in the Checkout.php file of the pre-orders-for-woocommerce plugin.
Based on this error, how can I solve this error, so that both Pre-Order and Kadence Email Customizer plugins work?
The page I need help with: [log in to see the link]
- The topic ‘Critical error – method on boolean value instead of object’ is closed to new replies.