• Resolved leopeppe

    (@leopeppe)


    After upgrade and migration my single page of event broken.
    The error is:

    Fatal error: Uncaught Error: Call to undefined method Tribe__Events__Main::get_closest_event() in /home/xx/apulialiberauniversita.it/wp-content/themes/educator/tribe-events/single-event.php:186 Stack trace: #0 /home/xx/apulialiberauniversita.it/wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php(42): include() #1 /home/xx/apulialiberauniversita.it/wp-content/themes/educator/tribe-events/default-template.php(9): tribe_get_view() #2 /home/xx/apulialiberauniversita.it/wp-includes/template-loader.php(106): include('/home/x/x...') #3 /home/xx/apulialiberauniversita.it/wp-blog-header.php(19): require_once('/home/xx/...') #4 /home/xx/apulialiberauniversita.it/index.php(17): require('/home/xx/...') #5 {main} thrown in /home/xx/apulialiberauniversita.it/wp-content/themes/educator/tribe-events/single-event.php on line 186
    Si è verificato un errore critico sul tuo sito web.
    
    Scopri di più riguardo la risoluzione dei problemi in WordPress.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Victor Zarranz

    (@vicskf)

    Hi @leopeppe!

    Sorry to hear you bumped into that error.

    The error log indicates that there is a template override being done in your theme at /wp-content/themes/educator/tribe-events/single-event.php:186 that is calling the method get_closest_event() which was removed in The Events Calendar 6.0.0.

    For a complete list of developer changes, including the functions and methods that were removed, please go to https://theeventscalendar.com/knowledgebase/k/developer-changes-version-6-0-with-legacy-views-removal/

    To confirm the above issue is in your theme, you can switch to a default theme like Twenty Twenty One and see if the error goes away.

    Hope that helps.

    Best,
    Victor

    Thread Starter leopeppe

    (@leopeppe)

    How can fix this problem?

    Hola @leopeppe

    You need to either remove or update the customizations found under /wp-content/themes/educator/tribe-events/single-event.php

    Before you do anything, you should make a backup.

    Once that’s done:

    1. Use an FTP client or your CPanel’s file manager
    2. Navigate to /wp-content/themes/educator/tribe-events/
    3. Rename the single-event.php file to something like z_single-event.php

    That should remove the error

    Best,
    Geoff

    Thread Starter leopeppe

    (@leopeppe)

    i try but not working.
    The page that includes tribes-event functionality broken on layout.
    Now i deactivate version 6.0.1, i download the version 5.16.4 and working but i need a solution for update the plugin.
    Someone can help me?

    Hi @leopeppe !

    It’s possible you have other custom templates in your theme for event views with a similar problem.

    If you temporarily switch to a default WordPress theme, do the event pages display without the errors?

    Is this theme “educator” one that you created yourself? If not, you might reach out to the theme developer to see if they have an update coming to replace the functions that were removed in The Events Calendar version 6.0.0.

    @leopeppe

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error after upgrade and migration’ is closed to new replies.