• Resolved eduwebdev

    (@eduwebdev)


    I recently updated The Events Calendar from 5.9.2 to 6.4 on my multisite environment. My custom templates, on all blogs that are not the primary events blog where the Events Calendar events are stored, which were using switch_to_blog to go to the main events blog and then pulling events using tribe_get_events, started returning an empty array. However, the exact same tribe_get_events code (without switch_to_blog) continues to work on the main Events Calendar blog. Is there some contextual data that is needed to pull events using tribe_get_events on a different multisite blog in version 6?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Darian

    (@d0153)

    Hi @eduwebdev

    Thanks for reaching out. Let me help you with this one.

    tribe_get_events should still work without issues in V6.

    If you are experiencing any issues, it is important to check whether you have migrated your events from V5 to V6. If not, please do so as soon as possible to ensure that your system is working without any problems. The process of migrating your events from V5 to V6 is straightforward, and it is recommended that you complete this process as soon as possible to avoid any potential issues.

    I hope this helps. Let me know if you have further questions or concerns.

    Plugin Support Darian

    (@d0153)

    Hi @eduwebdev

    I forgot to mention on my last reply, please first migrate your events on your staging site before applying to your live site. This is to avoid unnecessary downtime to your live site.

    Thread Starter eduwebdev

    (@eduwebdev)

    Hi Darian,

    Thanks for the feedback. I had run the events upgrade multiple times on local test/staging servers, but it always stops in the preview scan with no errors and about 24 events left to scan. Assuming this might be the issue based on your comments and other threads, I deleted hundreds of old drafted events (we had nearly 3,000 events), emptied the trash, and finally got the preview to complete. This identified 50+ events that failed to migrate, so I deleted those and emptied the trash. This time the preview completed, and then I was able to complete the migration. I will test this on our public staging server environment that matches the live site environment more closely and see if it works on there.

    Plugin Support Darian

    (@d0153)

    Hi @eduwebdev

    It’s great to hear that the migration process was successfully completed. Please don’t hesitate to reach out to us if you have any additional questions or concerns that need to be addressed. Our team is always here to assist you in any way we can.

    Plugin Support Darian

    (@d0153)

    Hi there,

    This thread has been inactive for a while, so we’ll go ahead and mark it Resolved. Please open a new thread if any other questions arise, and we’d be happy to help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘tribe_get_events returns empty array on multisite switch_to_blog after upgrade’ is closed to new replies.