Home › Forums › Ticket Products › Event Tickets Plus › CRITICAL Uncaught Exception: Invalid product
- This topic has 3 replies, 2 voices, and was last updated 8 years, 4 months ago by
James DonFrancesco.
-
AuthorPosts
-
December 12, 2017 at 3:42 pm #1404150
James DonFrancesco
ParticipantGetting this error (via the debug log) when trying to purchase a ticket:
2017-11-27T17:11:42+00:00 CRITICAL Uncaught Exception: Invalid product. in /nas/content/live/gnladmin/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:136
Stack trace:
#0 /nas/content/live/gnladmin/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(147): WC_Product_Data_Store_CPT->read(Object(WC_Product_Simple))
#1 /nas/content/live/gnladmin/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(126): WC_Data_Store->read(Object(WC_Product_Simple))
#2 /nas/content/live/gnladmin/wp-content/plugins/woocommerce/includes/class-wc-product-simple.php(26): WC_Product->__construct(‘1556’)
#3 /nas/content/live/gnladmin/wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php(2083): WC_Product_Simple->__construct(‘1556’)
#4 /nas/content/live/gnladmin/wp-content/plugins/event-tickets-plus/src/views/tickets-plus/orders-tickets.php(78): Tribe__Tickets_Plus__Commerce__WooCommerce__Main->get_price_html(‘1556’, Array)
#5 /nas/content/live/gnladmin/wp-content/plugins/eveDecember 14, 2017 at 8:30 am #1405583Jaime Marchwinski
KeymasterHi James,
Thanks so much for reaching out!
Are you able to purchase the ticket anyway when you see this error? How/where are tickets set up on your site? Are they just set up through your events pages?
As a first step, please update your WordPress version and WooCommerce plugin to the most recent versions and see if you still get the error.
If you do, let’s try to rule out if there is some type of conflict at play.
This is usually because of:1. A conflict with another plugin
2. A conflict with your WordPress theme
3. A template customization for the Events Calendar that requires updating
When it comes to that type of issue, it is preferable to troubleshoot in a staging environment if you have one.
A first quick test is to simply temporarily revert back to a default WordPress theme such as twenty-sixteen to see if the issue persists.
The next step would be to go through our testing for conflicts procedure and let us know what you find out.
Basically the goal here is to revert back to a bare WordPress installation to see if the problem persists. It also allows us to pinpoint what the cause of the issue is.
But, before you do that, there are 2 things I would advise:
1. Make a backup of your database
2. Consider activating a “Maintenance Page” plugin if you are doing this on your live site (to minimize impact on your visitors)
Let me know how that goes!
Thanks,
Jaime
January 5, 2018 at 8:35 am #1418921Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘CRITICAL Uncaught Exception: Invalid product’ is closed to new replies.
