Getting a fatal error on some pages
-
Hi,
We’ve been getting fatal errors on our site centered around events and tickets for them. I haven’t been able to establish a cause. From what I can see it happens at various places for various reasons.
I’ve also previously had the fatal error when hitting the “checkout now” button on the ticket popup.
I’m hoping this is something you’ve seen before because it seems pretty random.
Here’s the error.
[28-Jan-2021 21:17:57 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_items() on bool in /www/wp-content/plugins/woocommerce/includes/class-wc-order.php:1902
Stack trace:
#0 /www/wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Orders/Refunded.php(101): WC_Order->get_item_count_refunded()
#1 /www/wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Orders/Refunded.php(50): Tribe__Tickets_Plus__Commerce__WooCommerce__Orders__Refunded->real_get_count(1023)
#2 /www/wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php(2963): Tribe__Tickets_Plus__Commerce__WooCommerce__Orders__Refunded->get_count(1023)
#3 /www/wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php(1814): Tribe__Tickets_Plus__Commerce__WooCommerce__Main->get_refunded(1023)
#4 /www/wp-content/plugins/event-tickets-plus/src/views/v2/attendee-registration/mini-cart.php(67): Tribe__Tickets_Plus__Commerce__WooCommerce__Main->get_ticket(848, 1023)
#5 /www/wp-content/plugins/event-tickets/common/ in /www/wp-content/plugins/woocommerce/includes/class-wc-order.php on line 1902
- The topic ‘Getting a fatal error on some pages’ is closed to new replies.