WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
[resolved] Error message and "Full width, no sidebar" doesn't work (8 posts)

  1. LuboUzunov
    Member
    Posted 1 year ago #

    Hi,
    I have a few problems with the calendar. One error message in the-events-calendar.class.php and the calendar view with no sidebar.

    The error message is:

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

    Line 2615 in the-events-calendar.class.php

    2615			$wp_admin_bar->add_group( array(
    2616				'id' => 'tribe-events-group',
    2617				'parent' => 'tribe-events'
    2618			) );

    Where is the problem here?

    And why in Template Settings when i choose "Full width, no sidebar", the sidebar is still there in my event page?

    Error msg screenshot:
    Error message screenshot
    Full width, no sidebar:
    With no sidebar problem screenshot

    WordPress 3.2.1
    Site
    Theme: Dusk To Down

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

  2. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Thanks the report here, Lubo. Regarding the specifics of that error message, I'm actually not sure and will need a member of our dev team to take a look directly. I've asked someone to comment so stay tuned on that end.

    The full width, no sidebar setting is applied to the individual entry, not the broader calendar itself. Might that be the issue here or have I misunderstood your question?

  3. LuboUzunov
    Member
    Posted 1 year ago #

    Hi roblagatta,
    The pages, in my theme, have the option "Full width, no sidebar" and when i choose this, the page is showing up with no sidebar. Which means with no menus, gadgets, search or anything else there. Also with no blue part /on the left in my case/. See the screenshot 2 - second part.

    I expect from this page ".../events", when I set "Full width, no sidebar" from calendar settings, must be the same like others in my blog /when I set this option of course/ and to showing up the calendar only.

    Sry but I don't know how to explain this in different way. My english is not so good... :)

  4. LuboUzunov
    Member
    Posted 1 year ago #

    Maybe if I fix this error /the-events-calendar.class.php on line 2615/, the problem with the sidebar will disappear... It's just a guess :)

  5. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Thanks for the follow-up here, LuboUzunov. Makes sense and I should have a dev from the team taking a look here today. Thanks for your patience so far.

  6. Daniel Dvorkin (MZAWeb)
    Member
    Posted 1 year ago #

    Hi LoboUzunov,

    The theme is using the page-template-full-width-page-php css class to remove the sidebar background. This is not happening in this case, because the calendar is not _really_ a page. Sort of :)

    Two ways for you to solve this:

    1) In the theme's styles.css around line 162 change this:

    .page-template-full-width-page-php #main,
    .single-attachment #main,
    .error404 #main {
    	background-color: #eeeae8;
    	background-image: none;
    }

    to

    .page-template-full-width-page-php #main,
    .single-attachment #main,
    .error404 #main,
    .events-gridview #main {
    	background-color: #eeeae8;
    	background-image: none;
    }

    or

    2) Add this to your functions.php file

    add_filter( 'body_class', 'custom_the_events_calendar_remove_sidebar' );
    function custom_the_events_calendar_remove_sidebar( $class ) {
    	if ( get_query_var( 'post_type' ) == TribeEvents::POSTTYPE ) {
    		$class[] = 'page-template-full-width-page-php';
    	}
    
    	return $class;
    }

    I think the second option is safer.

    Let me know if this fixes the issue for you.

    Cheers

  7. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Hey there Lubo. Any thoughts as to whether Daniel's solution(s) above help get you where you need to be? Let me know if we can mark this thread RESOLVED or if you need anything else here. Thanks!

  8. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Lubo, I'm going to assume that Daniel's suggestion above did the trick, and am going to mark this "Resolved" as a result. If you feel I've done so in error or have further questions here, please do let us know and we'll continue to review this for you. Cheers.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic