WordPress.org

Forums

The Events Calendar
[resolved] Calendar Month View Issues (12 posts)

  1. smielock
    Member
    Posted 2 years ago #

    Greetings.

    This may have been fixed or addressed, but I could not find it in the past post so I apologize for repeating a question. Two Calendary Month view problems.

    First when I select April, May, June (any of those three months) I get the following displayed at the top of the page just as it looks like this:

    Warning: in_array() expects parameter 2 to be array, null given in /home/content/66/10132466/html/wp-includes/post-template.php on line 1039

    Warning: in_array() expects parameter 2 to be array, null given in /home/content/66/10132466/html/wp-includes/post-template.php on line 1039

    Warning: in_array() expects parameter 2 to be array, null given in /home/content/66/10132466/html/wp-includes/post-template.php on line 1039

    Warning: in_array() expects parameter 2 to be array, null given in /home/content/66/10132466/html/wp-includes/post-template.php on line 1039

    Warning: in_array() expects parameter 2 to be array, null given in /home/content/66/10132466/html/wp-includes/post-template.php on line 1039

    Warning: in_array() expects parameter 2 to be array, null given in /home/content/66/10132466/html/wp-includes/post-template.php on line 1039

    http://www.dancinmis.com/events/2013-04/
    http://www.dancinmis.com/events/2013-05/
    http://www.dancinmis.com/events/2013-06/

    When I select the Month of July those lines go away; however, the calendar month grid view does not display equal size boxes.

    http://www.dancinmis.com/events/2013-07/

    I am sure that is some sort of table setting, but I do not know how to change the individual months. The same with April - June. Obviously, some sort of open command line of some sort, but not sure where to look or how to fix.

    Any help would be great. Thanks.

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

  2. smielock
    Member
    Posted 2 years ago #

    I wanted to reply back to my own post in order to keep this clean. I found a fix for the Array Warning, actually off of the WordPress Support Ticket site. Here is the work around.

    /wp-includes/post-template.php file is the one you will edit.

    Line 1039 of wp-includes/post-template looks like:

    if ( in_array( $page->ID, $_current_page->ancestors ) )

    Recommended change:

    if ( gettype($_current_page->ancestors) === 'array' && in_array( $page->ID, $_current_page->ancestors ) )

    I also recommend you simply rename the original post-template.php file in case this does not work or creates additional problems.

    I am still having calendar grid view issues as seen in my July Month.

    http://www.dancinmis.com/events/2013-07/

    Thanks.

  3. Andy Fragen
    Member
    Posted 2 years ago #

    @smielock, try something like the following in your CSS

    .tribe-events-thismonth, .tribe-events-othermonth { min-width: 50px; max-width:60px; }

    You might also try selecting 'Default Events Template' from the Events Calendar Settings > Templates

  4. smielock
    Member
    Posted 2 years ago #

    Andy:

    Thanks for the reply. I will have to pass on the 'Default Events Template' because I am encountering issues with the side bar being placed at the bottom and completing throwing off the asthetics of the overall site format. I have reviewed many post with many "solutions", but nothing I could get value from. If someone would like to assist with that aspect I would be open to solutions.

    However, I do agree that the design of the calendar is CSS related. Since it only occurs in July 2013 that I am aware of makes it interesting. Even July 2014 is good to go that I know of. Does anyone know the code location which controls the data of each calendar? Perhaps there is an open code as it relates to Month configuration. Thanks.

  5. Andy Fragen
    Member
    Posted 2 years ago #

    It seems that the event title in that month has very long words. You could try adding 'overflow:scroll;' to the above CSS.

  6. Andy Fragen
    Member
    Posted 2 years ago #

    Or overflow:auto;

  7. smielock
    Member
    Posted 2 years ago #

    Thanks Andy.

    I will give that a try. Would that CSS line just go at the bottom of my main theme CSS or would I edit the CSS line as it directly relates to the plug? If so, which file and approx location would I insert that CSS line you recommended. Thanks in advance.

  8. Andy Fragen
    Member
    Posted 2 years ago #

    At end of you theme's style.css should work.

  9. smielock
    Member
    Posted 2 years ago #

    Hi Andy,

    Thanks once again. I couldn't get the CSS working or at least show any change. However, you were on to something when you mentioned the "title of the event" being rather long. What I did was played with the actual way of naming the event in order to use words no longer than 9 or 10 letters in length. Whether you have scroll or not it seems there is no way to "break" a word in half, lol, so I just used smaller words or appreviation. Thanks for all of your help.

  10. Rob La Gatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Thanks for your help here, Andy! Most appreciated as always.

    smielock: are you all set here? Let me know if you need anything else, or if this one can be marked as RESOLVED. I'm guessing the latter but just wanted to check.

  11. smielock
    Member
    Posted 2 years ago #

    I would say this is resolved. Although, I would love to see if the calendar could expand ALL the boxes in order to keep that block format, when one block expands due to content. Just an asthetics thing from my OCD, :) and quite possibly doesn't effect everyone. Thanks.

  12. Rob La Gatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    The 3.0 release should offer up some changes on this end that you might find valuable. Glad to hear that the core issue of this thread is set, going to mark it RESOLVED officially. Cheers!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic