• Resolved drlovable

    (@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?

    http://wordpress.org/extend/plugins/the-events-calendar/

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

    (@drlovable)

    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;

    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?
    Thanks

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.