Home › Forums › Ticket Products › Event Tickets Plus › Fatal Error For Tribe Events
- This topic has 9 replies, 5 voices, and was last updated 9 years, 6 months ago by
Yulia.
-
AuthorPosts
-
September 5, 2016 at 4:37 pm #1160149
Yulia
ParticipantHi,
We are having a Fatal error with Event Tickets that just started today. Updates were applied a while ago and all previous responses to similar issues were related to an update so I’m not sure whats causing this issue.
PHP Fatal error: Class 'Tribe__Events__Main' not found in /srv/www/gentleheartyoga/htdocs/wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php on line 1975I’ve gone through reinstalling and testing deactivating and activating order. When I deactivate woocomerce the issue clears up and when I try to reactivate woocomerce i get a database error:
WordPress database error Duplicate key name 'location_type_code' for query ALTER TABLE wp_woocommerce_shipping_zone_locations ADD KEY <code>location_type_code</code> (<code>location_type</code>(40),<code>location_code</code>(90)) made by activate_plugin, do_action('activate_woocommerce/woocommerce.php'), call_user_func_array, WC_Install::install, WC_Install::create_tables, dbDelta, QM_DB->querySeptember 6, 2016 at 10:08 am #1160516Josh
ParticipantHey Yulia,
Thanks for reaching out to us!
I’m sorry to hear about the issue you’re experiencing with our plugins here. Would you mind sharing your system information her in a private reply so I can take a closer look at this one for you.
Thanks!
September 6, 2016 at 8:15 pm #1160751Joel
ParticipantThis reply is private.
September 8, 2016 at 7:53 am #1161498Josh
ParticipantThis reply is private.
September 15, 2016 at 2:00 pm #1164845Yulia
ParticipantSeptember 19, 2016 at 7:53 am #1165848Josh
ParticipantThis reply is private.
September 19, 2016 at 11:53 am #1166014Yulia
ParticipantOk i’ll give that a shot for now and do a little testing on my side, but obviously not a long term solution.
The issue does seem to resolve (without moving the core functionality plugin) when deactivating woocomerce. For example if I deactivate the core functionality plugin and reactivate woocomerce with both the event ticket and event tickets plus active the issue is still present. We get a new error:
[19-Sep-2016 19:29:55 UTC] WordPress database error Duplicate key name 'location_type_code' for query ALTER TABLE wp_woocommerce_tax_rate_locations ADD KEY <code>location_type_code</code> (<code>location_type</code>(40),<code>location_code</code>(90)) made by activate_plugin, do_action('activate_woocommerce/woocommerce.php'), call_user_func_array, WC_Install::install, WC_Install::create_tables, dbDelta, QM_DB->query [19-Sep-2016 19:29:55 UTC] WordPress database error Duplicate key name 'location_type_code' for query ALTER TABLE wp_woocommerce_shipping_zone_locations ADD KEY <code>location_type_code</code> (<code>location_type</code>(40),<code>location_code</code>(90)) made by activate_plugin, do_action('activate_woocommerce/woocommerce.php'), call_user_func_array, WC_Install::install, WC_Install::create_tables, dbDelta, QM_DB->queryIf i activate both woocomerce (with payment gateway plugins deactivated) and core functionality i get the error:
PHP Fatal error: Class 'Tribe__Events__Main' not found in /srv/www/gentleheartyoga/htdocs/wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php on line 1976So is this a woocommerce issue that would be resolved using another payment gateway (i’ll test that but haven’t tried yet) or is it not that simple.
-
This reply was modified 9 years, 6 months ago by
Yulia.
September 21, 2016 at 5:47 am #1166861Josh
ParticipantHey Yulia,
It looks like this is a known bug with our Event Tickets Plus plugin. The issue here is that there is a constant used in the WooCommerce portion of Event Tickets Plus that is currently only defined in the core Events Calendar plugin. Definitely not behavior we intend for that particular plugin.
The simplest solution here is to activate the core plugin temporarily, however there is another option that you could pursue here if you’re comfortable with accessing your site via FTP.
The option here would be to create a new file called “et-temp-fix.php” and add the following to the file:
<?php if ( class_exists( 'Tribe__Events__Main' ) ) return; class Tribe__Events__Main { const POSTTYPE = 'tribe_events'; }From there, you would add that file to an “mu-plugins” folder within the “wp-content” folder of your install. So it would go to “wp-content/mu-plugins/et-temp-fix.php”.
Let me know if this helps.
Thanks!
October 13, 2016 at 9:35 am #1175997Support 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 -
This reply was modified 9 years, 6 months ago by
-
AuthorPosts
- The topic ‘Fatal Error For Tribe Events’ is closed to new replies.
