Deprecated notice not clear on fix
-
Hello, I recently inherited a codebase which I am bringing up to date
One of the requirements is upgrading to the latest version of Events Calendar
I run into two problems:
#1 – We use Timber/Twig as a template engine. The current template uses these three lines to display the single event details:
{{fn('tribe_events_before_html')}} {{fn('tribe_get_view')}} {{fn('tribe_events_after_html')}}
Your plugin’s latest version now provides a deprecated notice:
Function tribe_get_view( $view = false ) is deprecated since version 6.0.0! Use of this method without a defined $view will be completely removed soon. Please refer to https://evnt.is/v1-removal for template customization instead.
..but the info at your doc links do not provide sufficient information to fix this problem, they just tell me about a whole other templating system which we do not need or want to use. We just need a function to do what
tribe_get_view
used to do.Can you please tell me, what is the direct code replacement for those function calls above, to simply output the same Event view that we were using into our template before, without modifications, so the error does not continue to appear?
#2 – When I try to preform the data upgrade, my site will process the ‘Preview” for all but 4 events, in one case, and all but 1 event in another site. Both operations do not complete, they do not throw errors, and when I leave the page and come back they are never completed.
How do I debug/fix this, please, when no errors are shown from the admin-ajax calls?
Can you please email me privately and I can send video and links to a test site, for you to reproduce the issues…?
Kind regards,
Terrance
- The topic ‘Deprecated notice not clear on fix’ is closed to new replies.