The Events Calendar
[resolved] 404 error on foreign language pages (4 posts)

  1. drlovable
    Posted 4 years ago #

    We have a bi-lingual setup using wordpress network (multisite), not using wpml plugin. The event calendar plugin works great on the english site. It works great on the french site for the default view (fr/events/) and for viewing a single event.
    However, when we try to get to fr/events/upcoming/ or fr/events/month we get a "page not found" error.
    Any ideas how we might fix that?


  2. drlovable
    Posted 4 years ago #

    For whatever reason, the functions tribe_get_listview_link() and tribe_get_gridview_link() are not always returning the correct path. Sometimes it's un-translated, sometimes it just returns to the current page.

    We ended up hardcoding the over-ridden view files to return what we needed in the french language.
    $upcoming = "upcoming";
    if(get_bloginfo('language')=="fr-CA") {
    $upcoming = "a-venir";
    href='<?php echo get_site_url() . '/events/'.$upcoming;

  3. Rob La Gatta
    Modern Tribe Support
    Plugin Author

    Posted 3 years ago #

    Hey drlovable. Glad to hear you figured this solution out, and apologies for the fact you had to do so without our assistance. Yes, this is an unfortunate bug with the code that we're working to iron out. The method you've found as a stopgap should work fine for now, though if you encounter any issues down the road please do let us know and we'll try to advise best we can.

    Thanks for your support so far.

  4. Patrick O'Keeffe
    Posted 3 years ago #

    hi drlovable - can you please tell me what file and where you added this override?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • The Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.