Support » Plugin: The Events Calendar » [Plugin: The Events Calendar] 404 error on foreign language pages

  • Resolved drlovable


    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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;

    Plugin Author Rob La Gatta


    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.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: The Events Calendar] 404 error on foreign language pages’ is closed to new replies.