Home › Forums › Calendar Products › Events Calendar PRO › Any news on a fix for the categories with no events bug?
- This topic has 12 replies, 6 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
November 17, 2013 at 3:12 pm #76888
morktron
ParticipantHi, 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 π
November 18, 2013 at 6:50 am #76932Antonio
ParticipantSame 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 ) );
}November 18, 2013 at 7:05 am #76935Antonio
Participanttemporary fix
http://pastebin.com/2m6HXyVnNovember 18, 2013 at 3:04 pm #77052Chris
ParticipantHi there,
We’ll be fixing this in the next release-Chris
November 18, 2013 at 6:29 pm #77229morktron
ParticipantHi 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
November 18, 2013 at 6:42 pm #77230morktron
ParticipantHi 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 π
November 19, 2013 at 12:51 pm #77481Barry
MemberGreat 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.
November 19, 2013 at 3:23 pm #77521morktron
ParticipantExcellent 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 π
November 20, 2013 at 6:51 am #77621Barry
MemberApologies 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 π
November 20, 2013 at 2:04 pm #77713morktron
ParticipantCool Barry, no worries, thanks π
November 20, 2013 at 4:42 pm #77740Barry
MemberSince 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!
May 23, 2014 at 11:47 am #172238Leah
MemberHi 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,
LeahJuly 7, 2015 at 6:30 am #983262Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Any news on a fix for the categories with no events bug?’ is closed to new replies.
