WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
Tons of Notices on Calendar View (22 posts)

  1. mrwweb
    Member
    Posted 2 years ago #

    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/

  2. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    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.

  3. mrwweb
    Member
    Posted 2 years ago #

    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.

  4. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

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

  5. jonahcoyote
    Member
    Posted 2 years ago #

    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

  6. mrwweb
    Member
    Posted 2 years ago #

    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.

  7. jonahcoyote
    Member
    Posted 2 years ago #

    Have you tried deactivating all other plugins?

  8. mrwweb
    Member
    Posted 2 years ago #

    Yes.

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

  9. jonahcoyote
    Member
    Posted 2 years ago #

    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

  10. mrwweb
    Member
    Posted 2 years ago #

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

  11. mrwweb
    Member
    Posted 2 years ago #

    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.

  12. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    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!

  13. mrwweb
    Member
    Posted 2 years ago #

    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.

  14. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    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.

  15. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    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?

  16. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

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

  17. mrwweb
    Member
    Posted 1 year ago #

    Hey All,

    I just spent another 30 minutes poking and prodding. This is still an issue.

    Environment

    • WP 3.4.2
    • Twenty Eleven 1.4
    • TEC 2.0.9, Free version
    • <i>Multiple</i> LAMP environments.
    • No other plugins.
    • Any permalink settings including default with exposed paramenters

    To replicate:

    • Events > Settings > Template: Events Template: Default Page Template (or anything else that's not "Default Events Template")
    • Visit the "Events list" or "Calendar" pages

    Turn on WP_Debug and watch things EXPLODE: http://pastebin.com/dLhU4EBq

    Without WP_Debug, the only problem I've found is that the body_class() and post_class() functions don't work. However, themes often rely on those pretty heavily, so this is a problem.

    I don't think this is any different than earlier, but hopefully I've included some new detail that helps.

  18. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Hey, thanks for the follow-up here. Still kind of stumped on this issue: I too am on 3.4.2, using 2011 1.4, and running 2.0.9 without any other plugins active. My permalinks are turned to DEFAULT as yours were. With wp-debug set to true, viewing the calendar and list views both look fine. The only difference is that I don't have any LAMP environments. If you have an environment where you can test without those, it'd be awesome. If not...any chance you'd be willing to send over a link where I can view this? The one you'd initially included above seems to be restricted to logged in users.

    Come to think of it, what is driving the aspect that requires users to log in? Is that another plugin or something you built yourself?

  19. mrwweb
    Member
    Posted 1 year ago #

    You were right, that was a network activated plugin, but it doesn't change anything.

    Here's a new WordPress install just for you guys: http://mrwweb.com/test/tec/?post_type=tribe_events

    That's as vanilla as it gets. Shared hosting with BlueHost. Same results with XAMPP.

  20. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Ahh, I think I know what's up now. Can you do me a favor and try adding at least 1 event to that calendar? Working on another issue with a user in a similar position as you are, and we found that these notices are only showing when there are no events scheduled for the month-in-question. I am indeed seeing all those errors on your fresh WordPress install there...but I'm also seeing no events. If you could try just adding an event (any event; the criteria matters not), turning on permalinks (just to see if it persists there too) and letting me know...we can see if my hypothesis is correct.

    Thanks, as always, for your patience on this so far.

  21. mrwweb
    Member
    Posted 1 year ago #

    Yup. That resolves it, sort of. As suspected, the issue is still there for months without an event:

    "Solved": http://mrwweb.com/test/tec/?post_type=tribe_events&eventDisplay=month&eventDate=2012-10
    Not Solved: http://mrwweb.com/test/tec/?post_type=tribe_events&eventDisplay=month&eventDate=2012-11

  22. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Ah, gotcha. Yes - this is an issue I am seeing as already logged in our system, specifically for months without events scheduled. This is among the bugs we're trying to tackle for our next release that should be out sometime this month.

    Appreciate you working through this and giving me some more context to pass onto the devs. Sorry I couldn't offer up more in the short-term, but please know we do have this on the radar and are working to get it resolved. Let me know if you need anything else here though.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic