Fatal Error For Tribe Events

Home Forums Ticket Products Event Tickets Plus Fatal Error For Tribe Events

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1160149
    Yulia
    Participant

    Hi,

    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 1975
    

    I’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->query
    
    #1160516
    Josh
    Participant

    Hey 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!

    #1160751
    Joel
    Participant

    This reply is private.

    #1161498
    Josh
    Participant

    This reply is private.

    #1164845
    Yulia
    Participant

    This reply is private.

    • This reply was modified 9 years, 7 months ago by Yulia.
    • This reply was modified 9 years, 7 months ago by Yulia.
    #1165848
    Josh
    Participant

    This reply is private.

    #1166014
    Yulia
    Participant

    Ok 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->query
    

    If 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 1976
     

    So 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.
    #1166861
    Josh
    Participant

    Hey 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!

    #1175997
    Support Droid
    Keymaster

    Hey 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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Fatal Error For Tribe Events’ is closed to new replies.