WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
[resolved] Events Calendar Pro Error Establishing Database Connection (23 posts)

  1. LDD Consulting, Inc.
    Member
    Posted 2 years ago #

    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/

  2. jonahcoyote
    Member
    Posted 2 years ago #

    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

  3. LDD Consulting, Inc.
    Member
    Posted 2 years ago #

    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

  4. LDD Consulting, Inc.
    Member
    Posted 2 years ago #

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

  5. LDD Consulting, Inc.
    Member
    Posted 2 years ago #

    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

  6. jonahcoyote
    Member
    Posted 2 years ago #

    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

  7. LDD Consulting, Inc.
    Member
    Posted 2 years ago #

    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

  8. LDD Consulting, Inc.
    Member
    Posted 2 years ago #

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

  9. jonahcoyote
    Member
    Posted 2 years ago #

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

  10. LDD Consulting, Inc.
    Member
    Posted 2 years ago #

    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.

  11. jonahcoyote
    Member
    Posted 2 years ago #

    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.

  12. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    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.

  13. LDD Consulting, Inc.
    Member
    Posted 2 years ago #

    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

  14. tuxradio
    Member
    Posted 2 years ago #

    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.

  15. LDD Consulting, Inc.
    Member
    Posted 2 years ago #

    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).

  16. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    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.

  17. jonahcoyote
    Member
    Posted 2 years ago #

    Hi guys,

    I have no idea what this could be but I've created a ticket for one of our other devs to take a look. I'll follow up here as soon as I get a response. Thanks for your patience.

    - Jonah

  18. Liz
    Member
    Posted 2 years ago #

    I was having this error as well, in addition to not being able to edit my pages (the visual editor was filled with HTML in white text). Both of these symptoms showed up at the same time.

    I am using WP 3.2.1
    The Genesis News Theme

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

  19. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Hey there Liz. is there a reason you haven't updated to WP 3.4.1? The Events Calendar isn't meant to run with anything earlier than 3.3, so if you're on 3.2.1 that could definitely have an impact. Are you in a position where you can update to the latest WP to see if this issue persists?

  20. pope_acute
    Member
    Posted 1 year ago #

    i was having this error as well:
    Fatal error: Call to undefined method WP_Admin_Bar::add_group() in /home/psjrftp/psjrpatriotsfootball.com/wp-content/plugins/the-events-calendar/lib/the-events-calendar.class.php on line 2556

    I commented out the code suggested relating to WP_Admin_Bar

    now i'm getting this error at the bottom of the page in the event pages:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'TribeEvents::addToolbarItems' was given in /home/www/skateboardni.org/wordpress/wp-includes/plugin.php on line 405

    i have tried commenting out various bit of code, but it either breaks the plugin or does the same, can someone give me a pointer of what to do to resolve it or do i jus tlive with it.

    using wordpress 3.2.1(hosted free can't change)& T.E.C 2.0.8

    thanks

  21. Barry
    Member
    Posted 1 year ago #

    Hi pope_acute - unfortunately I can't add much here, but if you look at the plugin page you will see WordPress 3.3 is the current minimum requirement.

  22. pope_acute
    Member
    Posted 1 year ago #

    Hi pope_acute - unfortunately I can't add much here, but if you look at the plugin page you will see WordPress 3.3 is the current minimum requirement.

    Cheers for reply anyways, figure i will just live with it. Or find a new host using 3.3

  23. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Sorry to hear we couldn't offer up more here, pope_acute. If you ever are able to make the jump to 3.3 you will definitely enjoy the improved experience of your overall WordPress site, not just the plugin.

    I realize we didn't reach an official resolution here, but it seems this thread is as close to RESOLVED as it can be. I'm going to mark it as such unless anyone disagrees.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic