Support » Plugin: The Events Calendar » [Plugin: The Events Calendar] Events Calendar Pro Error Establishing Database Connection

  • Resolved LDDConsulting

    (@suffrage)


    Suddenly, for no apparent reason the events calendar has stopped working on one of our sites. It has always been slow on the backend, but now it just hangs and often causes an error establishing database connection on the front-end of the site. I’ve repaired the database already and in an attempt to fix the problem, I just updated to version 2.0.6 of The Events Calendar and 2.0.5 of Pro, and I noticed on activation of Pro I got a warning “Your version of Events Calendar Pro requires version 2.0.5 or higher of The Events Calendar (you are currently running 2.0.6).” But the problem persists. I can access Event Categories, Venues, and Organizers, but not Add Event or Events. Any ideas?

    Thanks,

    Thomas

    http://wordpress.org/extend/plugins/the-events-calendar/

Viewing 15 replies - 1 through 15 (of 22 total)
  • Hey Thomas,

    Sorry to hear about the problems. The first thing you should do is make sure you update to 2.0.7 for both the base plugin and PRO (if you have a license for it). Try that and let me know if that settles things for you.

    Regards,
    Jonah

    Hey Jonah,

    I have updated both plugins to 2.0.7 and I’m still getting hung up when I attempt to access the “Events” or “Add Event” tabs. This only occurs when I have the Pro plugin activated, the plain events calendar works fine. Anything else to try?

    Thanks,

    Thomas

    And then I still have trouble accessing the site front-end after I attempt to access either of those tabs in the backend.

    I’m also now getting a fatal error on the site:

    Fatal error: Call to undefined method WP_Admin_Bar::add_group() in /home/calvaryr/public_html/wp-content/plugins/the-events-calendar/lib/the-events-calendar.class.php on line 2556

    Hey suffrage,

    Something sounds fishy here… Have you tried deactivating all other plugins to see if there’s a conflict? Also, try reverting to the Twenty Eleven theme to see if it’s a problem with your theme.

    – Jonah

    Hey Jonah,

    This is getting strange, so I was going to try to revert to the 2011 theme and I notice now that I can’t install a new theme from the backend, or even see all of the themes that are in the wp-content folder. Also, since updating The Events Calendar standard, I notice a lot of the javascript in the backend is not functioning (quick edit, edit post status, upload image, etc.). I just started working on this site, so I did not write the theme or set it up, it’s part of a multi-site if that helps. Any ideas as to what’s causing this?

    Thanks,

    Thomas

    Okay, got that figured out, silly network admin stuff, and still have the problems when I switch to twentyeleven theme.

    Hey suffrage, what’s the problem you are having in twentyeleven?

    It’s the same thing as the custom theme: I’m getting the fatal error when I access any of the front-end pages, the javascript in the backend is not working (i.e. quick edit fields, image uploads, etc.), I can access neither the Add Event nor Events tab in the backend, and after attempting to access those tabs the front-end goes down for a time.

    Sounds like an issue with your server or install of WordPress and/or plugins. I would try reinstalling the latest version of the event plugins first to see if this helps. If that doesn’t do it you might want to look at WordPress and/or your server configuration.

    Plugin Author Rob La Gatta

    (@roblagatta)

    Hey suffrage, were you ever able to get this figured out? Let us know if you were ever able to determine if your server configuration was indeed responsible.

    So I’ve figured out the problem with the normal events calendar. On line 2556 – 2574 of the file lib/the-events-calendar.class.php there’s a series of $wp_admin_bar->add_group calls. I’m not sure why that’s throwing such an error (this site is running wp 3.2.1 for fear of some custom plugin compatibility, but when I upgraded the-events-calendar to 2.0.7 it listed it as having 100% compatibility with wp 3.2.1). Not sure if it’s helpful, but the final answer to this question (http://wordpress.org/support/topic/fatal-error-after-updating-1) seemed to be on track. So I’ve commented out that code and now the javascript works on the backend and I’m not getting a fatal error anymore, but if I activate events calendar pro I still have the same troubles as before (inability to access “add event” or “events” tab and whenever I do try to access them the front-end goes down for a time, even if I deactivate the Pro plugin).

    Any thoughts on a fix?

    Thanks,

    Thomas

    I’m getting the same error:
    Fatal error: Call to undefined method WP_Admin_Bar::add_group() in /home/wwwkbmq/public_html/wp-content/plugins/the-events-calendar/lib/the-events-calendar.class.php on line 2556

    I searched the support forums at Modern Tribe and couldn’t find anything.

    Could someone post code to comment out the strings?

    Any help would be appreciated.

    The file in question is located in wp-content/plugins/the-events-calendar/lib/the-events-calendar.class.php and I commented out lines 2556 to 2574 (anything with the wp_admin_bar). This is the code I commented out, in case your line numbers don’t match:

    $wp_admin_bar->add_group( array(
        'id' => 'tribe-events-group',
    	'parent' => 'tribe-events'
    ) );
    
    $wp_admin_bar->add_group( array(
    	'id' => 'tribe-events-add-ons-group',
    	'parent' => 'tribe-events'
    ) );
    
    $wp_admin_bar->add_group( array(
    	'id' => 'tribe-events-settings-group',
    	'parent' => 'tribe-events'
    ) );
    
    $wp_admin_bar->add_group( array(
    	'id' => 'tribe-events-import-group',
    	'parent' => 'tribe-events-add-ons-group'
    ) );

    I’m sure I’m missing some sweet admin bar functionality, but otherwise the site is working fine again (though my events calendar pro is still not working).

    Plugin Author Rob La Gatta

    (@roblagatta)

    Hey guys. Thanks for the notes here. I’m not sure about this one myself, but let me get Jonah – who may not have seen the follow-ups – to take a look and see what he can share. Thanks for your patience so far.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘[Plugin: The Events Calendar] Events Calendar Pro Error Establishing Database Connection’ is closed to new replies.