Support » Plugin: The Events Calendar » [Plugin: The Events Calendar] Tons of Notices on Calendar View

  • Despite what the form says, I’m using 3.4.1, TEC 2.0.7, and the latest Twenty Eleven. I can replicate this with no plugins activated other than TEC. It persists regardless of which view is set as the default “Events” view (list or grid) and regardless of which Template is selected.

    The symptom is that there is no post_class() output in the template, but when I turn on WP_Debug, I get a crazy number of Notices and Warnings. Whatever’s going on also throws additional warnings for Yoast’s WordPress SEO plugin. If I had to guess, this looks like the page wants an ID but doesn’t have one. Either way, I really need those post classes!

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

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author Rob La Gatta

    (@roblagatta)

    Modern Tribe Support

    Hey there mrwweb. Thanks for the note here. We do keep a running issue related to notices in the plugin and definitely try to squash as many of those as we can with each release, but we definitely advise users not to work with wp-debug mode on unless they have to.

    That being said…this does appear to be cause for concern, and the ramifications are outside my area of expertise. I’ve asked our lead dev on this project, Paul, to take a look and see if he can offer up any insights directly. Stay tuned and thanks for your patience so far.

    Thanks as always for the quick response @roblagatta.

    To be clear, the main issue isn’t the notices (though that probably explains what’s going on), but rather it’s this:

    <article class="" id="post-">

    The post_class() and ID fail to get printed.

    The weird thing I should’ve mentioned in the previous post and didn’t is that when you enable WP_Debug, you see the post classes among the notices. I wasn’t able to track down the issue (otherwise, I would post a patch-y piece of code), but that does make me think that there might be a relatively simple fix at least to restore the classes.

    But with that many notices on the calendar view (and not the listing or individual events), I can’t help but wonder if there are other issues going on too.

    Plugin Author Rob La Gatta

    (@roblagatta)

    Modern Tribe Support

    Gotcha – makes perfect sense, thanks for clarifying. Paul should be taking a look here shorty and can hopefully shine some light on this for us 🙂

    Hey mrwweb,

    Are you seeing this behavior on all pages on the site or just the event related pages? Have you tried deactivating all other plugins to see if there’s maybe a conflict going on? Do you have a link we can take a look at?

    Thanks,
    Jonah

    It’s only on the Calendar page.

    I’m using 3.4.1, TEC 2.0.7, and the latest Twenty Eleven. I can replicate this with no plugins activated other than TEC. It persists regardless of which view is set as the default “Events” view (list or grid) and regardless of which Template is selected.

    Right now I’m developing on my local machine so no URL. I may push changes live in a day or two, so I’ll post a link then if you can’t replicate it.

    Have you tried deactivating all other plugins?

    Yes.

    I can replicate this with no plugins activated other than TEC [The Events Calendar].

    Hey mrwweb, sorry I now see that you said that in your original post 🙂

    I’m going to have another dev take a look at this. I get post classes showing up when in Twenty Eleven so I’m not sure what’s going on. Have you modified anything in the theme?

    – Jonah

    Ok. Thanks for the reply. I’ll try to replicate on a different install. I haven’t touched core or anything like that.

    Ok. One detail I mentioned earlier is wrong. I thought I had corrected this.

    In Settings > The Events Calendar > Templates, “Default Page Template” has to be selected. I get the same set of errors on both Twenty Eleven and my custom Theme.

    Plugin Author Rob La Gatta

    (@roblagatta)

    Modern Tribe Support

    Hey there mrwweb. Were you ever able to recreate this on another install? So far two members of our dev team have tried to recreate this on a default 2011 install with no luck. Let me know because we want to help you out here best we can…thanks!

    Nope. Still going. Happens on local machine and server. Here’s a link: http://mrwweb.com/clients/drcc/events/month/

    • WP 3.4.1.
    • The Events Calendar free 2.0.7 with no other plugins enabled.
    • Twenty Eleven (and other themes).
    • Settings > The Events Calendar > Templates > Event Template is set to “Default Page Template.”
      • This is the settings that triggers the problem.
    • WP_Debug is turned on, BUT the big problem that persists even with it turned off is found on Line 167 of the code:

    <article id="post-" class="">

    In the Twenty Eleven source, this is (I think) Line 11 of content-page.php:

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

    With no classes on the <article> wrapper element, that throws off a ton of styles that are often necessary in a theme.

    Plugin Author Rob La Gatta

    (@roblagatta)

    Modern Tribe Support

    Thanks for the follow-up, mrwweb. This one has gone a bit outside my area of expertise but let me get our lead dev Paul to chime in directly and see if he has any ideas. Stay tuned and thanks for your patience so far.

    Plugin Author Rob La Gatta

    (@roblagatta)

    Modern Tribe Support

    Hey there again mrwweb. I’ve had my devs checking your site the past week or so, and as of last Friday they noted that it looks like your site is also showing the post classes now. Was this an old issue that has since been resolved, either by updating the plugin or something else in your set up?

    Plugin Author Rob La Gatta

    (@roblagatta)

    Modern Tribe Support

    Just wanted to follow-up again here…let us know if my last note was apt or if the issue persists here. Thanks man!

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘[Plugin: The Events Calendar] Tons of Notices on Calendar View’ is closed to new replies.