Any news on a fix for the categories with no events bug?

Home Forums Calendar Products Events Calendar PRO Any news on a fix for the categories with no events bug?

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #76888
    morktron
    Participant

    Hi, I really need to launch my clients site so I can get paid but there is a serious bug in Events Calendar Pro where error code is shown for categories with no current events. It’s been 10 days now since the bug was first reported but still no news on a fix: https://theeventscalendar.com/support/forums/topic/catchable-fatal-error-when-no-events-in-category/#post-76178

    Events Calendar Pro is basically unusable until this is fixed. I bought a pro subscription since it usually means pro support but you guys are letting us down.

    ECP is great and so are the talented developers, but please you must fix this as soon as possible since my family needs to eat πŸ˜‰

    #76932
    Antonio
    Participant

    Same problem here! Please fix this ASAP

    The output of var_dump($tax_term) is string(0) “”

    If I comment this line, the error disappear but notice don’t show

    elseif ( ! empty( $tax_term ) && tribe_is_upcoming() ) {
    TribeEvents::setNotice( ‘events-not-found’, sprintf( __(‘No matching events listed under %s. Check out upcoming events for this category or view the full calendar.’, ‘tribe-events-calendar’) . $tax_term ) );
    }

    #76935
    Antonio
    Participant
    #77052
    Chris
    Participant

    Hi there,
    We’ll be fixing this in the next release

    -Chris

    #77229
    morktron
    Participant

    Hi Antonio, thanks for the temporary fix. Does that go in functions.php ?

    Hi Chris, thanks for letting us know this will be fixed in the next release. If you have any idea of when that would be please let me know, thanks

    #77230
    morktron
    Participant

    Hi Antonia, doh! silly me! Of course it is in “wp-content/plugins/the-events-calendar/lib/tribe-template-factory.class.php on line 265”

    the temp fix works very well, thanks πŸ™‚

    #77481
    Barry
    Member

    Great that you figured out a solution there.

    We do indeed have a fix that should arrive in the next maintenance release: if you are happy with Antonio’s temporary fix (thanks Antonio!) that should be fine, alternatively you can replace the-events-calendar/lib/tribe-template-factory.class.php with this alternative version of the same file.

    That change (as with Antonio’s) will be wiped when the next update takes place, but of course a substantive fix ought to be in place at that point.

    Sorry once again for the inconvenience.

    #77521
    morktron
    Participant

    Excellent thanks Barry, much appreciated.

    While you are fixing the code you could add some usability enhancement. At the moment it says:

    “No matching events listed under category. Check out upcoming events for this category or view the full calendar”

    but if there are no upcoming events for the category then it there is no logic in suggesting checking out upcoming events for that category.

    Secondly you may as well put a link on the words “view the full calendar”

    Lastly on the page with no current event there is a link to “previous events”, if you click it you get to watch a loading icon for all eternity.

    If you go to the link it’s trying to go to you get different error:

    “Catchable fatal error: Object of class stdClass could not be converted to string in ***/wp-content/plugins/the-events-calendar/lib/tribe-template-factory.class.php on line 269”

    It’s trying to go to a url with /past on the end

    Anyway, I look forward to the new release, thanks again πŸ™‚

    #77621
    Barry
    Member

    Apologies because I inadvertently seem to have linked to the same Pastebin code as Antonio suggested in my last reply. I’ve updated that now and what I intended to link to was actually http://d.pr/f/eh0I (important, because that should also solve the other fatal error you cited, too).

    β€œNo matching events listed under category. Check out upcoming events for this category or view the full calendar”

    but if there are no upcoming events for the category then it there is no logic in suggesting checking out upcoming events for that category.

    Great point – we’ll get that on the issue tracker πŸ™‚

    #77713
    morktron
    Participant

    Cool Barry, no worries, thanks πŸ™‚

    #77740
    Barry
    Member

    Since I think we’ve all got workarounds for the main issue and your suggestion has been logged (morktron) I’ll go ahead and close this thread. Of course if there is anything else we can help with please don’t hesitate to create new threads as required.

    Thanks!

    #172238
    Leah
    Member

    Hi there,

    I just wanted to let you know that we have been working diligently on a fix for this issue. Our next release (3.6) will be available soon and should correct this problem. Please keep an eye on your Plugins and Updates pages for a version update. If you are still having problems after updating, please start a new thread with the details and we can assist you.

    Best,
    Leah

    #983262
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Any news on a fix for the categories with no events bug?’ is closed to new replies.