• Resolved Zukes

    (@zukes)


    When search is made for example “tribute” there are no results and url is weird: https://www.mus.auth.gr/en/cal/(/?:list)/&tribe-bar-search=tribute
    That (/?:list) seems problematic. Reloading this url brings a 404 error.
    Running latest version of Events Calendar and latest version of WP. Got WPML installed.

    Thank you in advance.

    • This topic was modified 3 years, 5 months ago by Zukes.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Truman

    (@tdorn)

    Hi there,

    Sorry about the issues you are having, this is actually related to a known bug, and we have a ticket out for this and are currently working on it. Can you please give this workaround a try?

    WPML workaround

    Edit the file located in wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 189

    `from remove_filter( ‘locale’, $force_locale ); to

    remove_filter( ‘locale’, $force_locale );

    foreach ( (array) $args[1] as $domain => $file ) {
    // Reload it with the correct language.
    unload_textdomain( $domain );

    if ( ‘default’ === $domain ) {
    load_default_textdomain();
    } else {
    Common::instance()->load_text_domain( $domain, $file );
    }
    }

    Please let me know if that helps at all!

    Thread Starter Zukes

    (@zukes)

    Hi, found a solution to this problem:
    Went to WPML string translation, searched for the string “list” in Greek (λ?στα), changed the translation of the string to english. Then did the same for the string “page” in greek (σελ?δα). The later because it was breaking the previous events button) pagination.

    So this:
    https://www.mus.auth.gr/cal/(/?:list)/(/?:page)/(_d)/?eventDisplay=past
    Became:
    https://www.mus.auth.gr/cal/list/page/2/?eventDisplay=past

    A couple of months ago this solution was not possible, probably became possible because of updated software.

    I did not try the above solution you mentioned.

    You list your plugin as WPML compatible, it is clearly not.

    • This reply was modified 3 years, 3 months ago by Zukes.
    Thread Starter Zukes

    (@zukes)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Event Search broken’ is closed to new replies.