• Resolved Earthman Media

    (@earthman100)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Earthman Media

    (@earthman100)

    Hello, for #1 – I have solved this, using the code below worked – simply adding single-event as the first argument to the function fixed it:

    {{fn('tribe_events_before_html')}}
    {{fn('tribe_get_view','single-event')}}
    {{fn('tribe_events_after_html')}}

    Perhaps this information could be added to your article at: https://evnt.is/v1-removal to help others?

    #2 – Regarding the non-responsive update preview after 98% competion, I have only tested the upgrade locally, so I will try on a remote copy of the site to see if the problem exists there as well

    Plugin Support Abz

    (@abzlevelup)

    Hi @earthman100, apologies for the delay here.

    For the migration issues, we’ve encountered a couple of issues, and we’ve shared fixes and workarounds in this article here.

    Appreciate you sharing the solution. I’d check and confirm with our dev team in regard to this. We’d definitely take note of this. ??

    I have solved this, using the code below worked – simply adding?single-event?as the first argument to the function fixed it:

    {{fn('tribe_events_before_html')}}
    {{fn('tribe_get_view','single-event')}}
    {{fn('tribe_events_after_html')}}

    With issue number two here, it seems like your migration is stuck. We’ve had these issues with migration, and one of them is that migrating to the new data system could either be slow or incomplete. Please follow this article here, as we have shared solutions. See if that works on your end.

    Again, thanks for your patience. Please do keep us posted.

    Best,
    Abz

    Plugin Support Darian

    (@d0153)

    Hi @earthman100

    We haven’t heard from you in a while, so I’m going to mark this as resolved. Feel free to start a new thread if you have any more questions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Deprecated notice not clear on fix’ is closed to new replies.