Home › Forums › Calendar Products › Events Calendar PRO › Navigation error when using List view
- This topic has 8 replies, 2 voices, and was last updated 11 years, 6 months ago by
Brian.
-
AuthorPosts
-
October 7, 2014 at 1:27 pm #794727
thejoshevans
ParticipantHi,
I’m receiving this error when trying to display the next/previous courses navigation in list view:
“Fatal error: Call to undefined function tribe_has_past_events() in /home/fit2trainco/public_html/wp-content/themes/fit2train/tribe-events/list/nav.php on line 30”
This doesn’t happen when I use the default theme but does when using my own custom one. Do I need to declare the tribe_has_past_events() function somewhere?
Note: I have removed the navigation from the page temporarily until I can fix the issue.
Many thanks
Josh
October 7, 2014 at 2:37 pm #794882Brian
MemberJosh,
Sorry for the issue. From the error you provided:
Fatal error: Call to undefined function tribe_has_past_events() in /home/fit2trainco/public_html/wp-content/themes/fit2train/tribe-events/list/nav.php on line 30
It looks like this function tribe_has_past_events() is in a custom template for the Events Calendar in your theme and that function is no longer available.
If you can go in there update the nav.php from the latest version in the Events Calender that should resolve the error. I am not sure what customizations you have in the nav.php so you may have to make some changes to get it working.
Does that work? Or let me know if you would like some more help.
Thanks
October 8, 2014 at 1:42 pm #797192thejoshevans
ParticipantI knew it would be something simple!
Thanks very much, as always, your support is fantastic!
October 8, 2014 at 1:58 pm #797212thejoshevans
ParticipantSorry, one more problem has cropped up.
Both the previous/next links appear correctly, however if I click on the next link, it shows the correct events but the previous link now disappears?Please see this page for an example: https://www.fit2train.co.uk/courses/category/entry/
October 9, 2014 at 8:47 am #798782Brian
MemberHow strange.
I see what you mean about the Previous Events not appearing.
Could you back out all the custom templates you have out of your theme and see if that resolves the issue?
It could be another custom template is suppose to provide some information for those links on the Ajax call and it is not there.
Another test can be to change themes to a default WordPress theme and see if that narrows down the source of the problem.
Let me know what you find out from those two and we can go from there.
Thanks
October 9, 2014 at 1:10 pm #799230thejoshevans
ParticipantEven if I completely remove the tribe-events folder in my theme, and switch to the default WordPress themes the link disappears!
The link only disappears when it reaches the end of the list, on the all courses page I can link next once and both the prev/next links remain, but then when I click next to get to the end of the list the problem persists.
Any ideas?
October 9, 2014 at 1:21 pm #799252Brian
MemberThanks for doing the steps to see if that would resolve the issue.
It appears we have an issue and have a bug ticket in place to fix in our next release(which hopefully is early next week)
I am going to add this ticket to our bug ticket so we can notify you of the progress.
Does that work for you?
October 9, 2014 at 1:32 pm #799267thejoshevans
ParticipantYeah that’s great.
If you need me to test it or anything I am happy to do so.
Thanks!
October 10, 2014 at 8:06 am #800819Brian
MemberThank you for the offer. We will let you know. I am going to close this ticket as there is nothing more we can do right now on this. We will update you by posting to this ticket when we have a fix coming out in a release. We are currently working on it and hope to do that early next week, but that is not 100% certain.
If you have any other issues or would like to follow up on this please create a new ticket.
Thanks
-
AuthorPosts
- The topic ‘Navigation error when using List view’ is closed to new replies.
