Home › Forums › Ticket Products › Event Tickets Plus › fatal error: Class 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' not found
- This topic has 14 replies, 5 voices, and was last updated 9 years, 8 months ago by
Jadzia.
-
AuthorPosts
-
July 9, 2016 at 2:09 pm #1137834
Jadzia
ParticipantHello, when I try to update a ticket in the WooCommerce product section I get this error: Fatal error: Class ‘Tribe__Events__API’ not found in:plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php on line 354
What can I do to fix this?
July 10, 2016 at 3:16 pm #1137960Jadzia
ParticipantAnother problem. My ticket products show up in the admin but do not display on my /shop page. This plugin is very disappointing so far.
July 11, 2016 at 11:55 am #1138283George
ParticipantHey @Jadzia,
I’m really sorry to hear about this!
1. I cannot produce that error anywhere on my site. To help us investigate, can you share a screenshot of the place where you are trying to “update a ticket in the WooCommerce product section”? I just want to make sure I know exactly what part of your site you’re referring to.
(You can do so by uploading the screenshots to this thread. If you have issues with that, you can upload to Imgur.com, Flickr.com, CloudUp.com, or any similar image-hosting site; then just share the links to those images here and I’ll take a look.)
I will use that information to help our developers find and fix a bug here.
Next, you say this:
My ticket products show up in the admin but do not display on my /shop page.
2. Can you share a screenshot of where the tickets show up in the admin?
If you provide both screenshots here, I will take a look and try to offer insight on what is going on. I’m sorry for the trouble with things—to be clear, I cannot recreate your problems so there may be a bug that is arising on your site for a number of reasons. It is not normal, but if you can share the above-requested screenshots it will help us investigate!
Thank you,
GeorgeJuly 12, 2016 at 8:34 am #1138645Jason
ParticipantI’m having the same issue with the error since the update.
Fatal error: Class 'Tribe__Events__API' not found in /home/******/public_html/wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php on line 354This happens when I save a product in woocommerce that is attached to a ticket. All plugins and wordpress are up to date.
Please advise.
July 12, 2016 at 8:38 am #1138647Jason
ParticipantThis reply is private.
July 12, 2016 at 8:46 am #1138650Jason
ParticipantIf it helps at all, the class
Tribe__Events__APIisn’t defined anywhere in v4.2.2 of Event Tickets or Event Tickets Plus. Hence the error.July 12, 2016 at 9:03 am #1138652Jason
ParticipantI rolled back to version 4.2.1 and things work fine. Please advise if you find a fix for this.
Cheers.
July 12, 2016 at 11:45 am #1138818Jadzia
ParticipantHello,
1. I’ve attached the screenshot of the white screen with the error message on it. This happens every time I go to Products -> Edit -> Click UPDATE to the product (all of my products are tickets).
2. Screenshots of my Products page with the listing of the tickets. And another showing my /shop page where it states there are no products.
I appreciate your help. I want to have these issues fixed and should not need to rollback to a previous version of the plugin. Thank you.
-
This reply was modified 9 years, 9 months ago by
Jadzia.
July 13, 2016 at 6:22 am #1139108Jason
ParticipantI believe this issue needs to be fixed before any other recently identified ones. Any fixes to my other issues that you might release can’t be applied since I can’t even update to the most recent version due to this bug.
Would appreciate your urgency with this one. Thanks.
July 14, 2016 at 8:58 am #1139689George
ParticipantHey folks,
Thank you for your patience here. I am struggling to reproduce these sorts of issues but am going to escalate this issue to the attention of our developers and see if we can identify a specific cause.
Apologies for the trouble–stay tuned!
George
July 14, 2016 at 9:27 am #1139707George
ParticipantHey Folks,
So, there are two main things to report here:
The WooCommerce Errors
These errors may be arising because of an issue with the first batch of files uploaded to WordPress.org with the recent update. This was a weird problem that happened and was quickly fixed, but which does cause fatal errors in many cases. We fixed the issue very, very quickly on the day of the release, but your update might have grabbed the old and broken files instead before our fix was published.So, what I would recommend doing is the following:
- Back up your site and database. The following steps will NOT delete any event content or data, but backing things up before updating, installing, or removing ANY theme or plugin on your site is a good practice to get into, just in case…I strongly recommend that you do not proceed without a backup, but if you do, that is certainly up to you and, as noted, the following steps are NOT designed to delete event content or data.
- DELETE — not just deactivated, but DELETE — the existing version of The Events Calendar, Events Calendar Pro, and any other add-ons for it on your site.
- Download fresh copies of all of the plugins you just deleted. Get a fresh copy of The Events Calendar at http://wordpress.org/plugins/the-events-calendar, and of premium add-ons at theeventscalendar.com/my-account/downloads
- Install these fresh copies of the plugins, activate them, and enter any license keys if need be.
After these steps, how do things behave?
The Tribe__Events__API Errors
These are emerging because of a bug we just identified in the Event Tickets code. To temporarily resolve this, install the free plugin “The Events Calendar” and activate it on your site. You do not need to use this plugin or have it publicly visible, or anything — it just needs to be active.
We are working on a fix and will publish it as soon as possible; after which time you can then delete The Events Calendar from your site if you would like to.
Let us know how things go! 😀
GeorgeJuly 14, 2016 at 10:40 am #1139822Jason
ParticipantHi George.
Okay, I’ve done the equivalent of “shooting a fly with an elephant gun” and have completed the following tasks:
- Made Backups
- Deleted both the events calendar and the plus version completely
- Deleted my product in woocommerce
- Deleted the page which held my ticket (and emptied trash)
- Installed fresh copies of plugins AND as was recommended installed The Events Calendar (I’m assuming the Tribe__Events__API class is defined in that plugin which is why it’s required)
- Created my page, added a ticket to it, adjusted in woocommerce
I have now tested this and the API errors are gone, and the admin menu works as anticipated. Seems like the workarounds are working.
Can I make a suggestion? Getting to the attendee list is really difficult for the average user. Would be cool if there was an easy way for them to do that. What I’ve done to make it easy for my client to check people into the even is this:
/*-----------------------------------------------------------------------------------*/ /* Add event attendee link to WP menu to make it easy */ /*-----------------------------------------------------------------------------------*/ add_action( 'admin_menu', 'register_custom_menu_link' ); // Thanks for the tip http://wpsites.net/wordpress-admin/add-top-level-custom-admin-menu-link-in-dashboard-to-any-url/ function register_custom_menu_link(){ //Add main admin menu link add_menu_page( 'ticket-holders', 'Ticket Holders', 'manage_options', 'ticketholders', 'wpsites_custom_menu_link', 'dashicons-tickets-alt', 5 ); //Add submenu link for Events menu item add_submenu_page('edit.php?post_type=tribe_events', 'Ticket Holders', 'Ticket Holders', 'manage_options', 'attendees', 'wpsites_custom_menu_link'); } function wpsites_custom_menu_link(){ wp_redirect( 'http://santasvillage.ca/wp-admin/edit.php?post_type=page&page=tickets-attendees&event_id=11071', 301 ); exit; }Cheers.
July 14, 2016 at 4:34 pm #1140001George
ParticipantHey @Jason,
Thanks for the update–I am glad to here that our temporary solutions work for now. Stay tuned to the forthcoming plugin updates for proper, actual in-code fixes to things.
Also, thanks for sharing your custom solution to the navigation problem! This is an interesting approach, and I can see this being a huge boon for saving a few clicks and page loads along the way of trying to access the attendees and such…I’ll pass this feedback along because we are aware of some of the difficulty in wading through the wp-admin structures to get to certain features. It’s something we can definitely improve.
Thank you!
GeorgeAugust 5, 2016 at 9:35 am #1148237Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
This reply was modified 9 years, 9 months ago by
-
AuthorPosts
- The topic ‘fatal error: Class 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' not found’ is closed to new replies.
