Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Duplicates of Events Manager events with translation pop up randomly in results

Viewing 10 posts - 1 through 10 (of 42 total)
  • Jean Pietrowicz
    #203797

    Hi Trevor,

    This is a follow-up to the problems I had been having with translated events popping up in the default language (German) search results. I have since been in contact with Events Manager support and have done some further testing. The problem arises when an event in the default language has been created by duplication (in my current project, most all of them have) and then is translated. If an event has been created by the “add new” button, then the translation of that event does not show up randomly in the Search and Filter Pro results. But if I duplicate that new event (with its translation), then the duplicated event shows up three times in the S&F results: once in its correct chronological order, and then two times at random locations in the results, once in German and once in English.

    This problem with duplication does not occur in the Events Manager search form or in the default WordPress search, so they suggested I ask you about this.

    Do you have any ideas? Avoiding duplication of events is not an option, as it would entail more work.

    Thanks!

    Kind regards,

    Jean

    Trevor Moderator
    #203802

    I need to get a little bit more understanding of the two methods.

    You duplicate the event. Note that, by doing this, WordPress will make the new event and run the save_post() function, which will trigger our plugin to add it to the cache. At this point is the event open in the editor, or do you have to open it to then translate it? When you translate it, does it gain a new Post ID compared to the Post ID of the duplicate?

    Can you try this also. Make an event in German (the default language). Then deactivate our plugin. Then duplicate it. Then, just before you duplicate it, reactivate our plugin. Does the same effect still happen?

    Jean Pietrowicz
    #203810

    Hi Trevor,

    I can confirm that the duplicates and the translations of the events (whether new or duplicate) all have a unique post ID. Nearly all the translations, except for my tests, have taken place at a date later than when the German events were created. They were created with the event closed by clicking the plus symbol.

    I tried your suggestion. I created a new event — this shows up in the correct position on the filter. Then I translated it (the problems with duplication always occur when translation comes into play) with the plugin still active, this also shows up where it is supposed to. Then I deactivated the plugin and made a duplicate of my previous event. Upon reactivating the plugin, the duplicated German event does not show up in the correct chronological position and the English translation of that event pops up in the German results, although this English event is still under drafts in Events Manager as it has not been published yet.

    Trevor Moderator
    #203813

    If you then delete the duplicated German event, does the translation of it also disappear?

    Jean Pietrowicz
    #203827

    No, you have to delete the translation separately. And you have to permanently delete both the original and the translation to remove them from appearing randomly in the search results. (I do have the search filter set to show only “published” events.)

    I have been doing more testing and discovered that these unwanted “copies” appear in the filtered results even for new events without translation — I never noticed that before. Not sure if this is a new development or whether I overlooked it before (we have over 200 events).

    So I’m guessing that everytime the background processes save the event during creation (temporarily as a draft), that the filter is somehow taking them up into its cache?

    Trevor Moderator
    #203868

    Are you you using a translation plugin, like WPML?

    Jean Pietrowicz
    #203870

    Yes, WPML.

    Trevor Moderator
    #203912
    This reply has been marked as private.
    Trevor Moderator
    #203922
    This reply has been marked as private.
    Jean Pietrowicz
    #203940
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 42 total)

The forum ‘Search & Filter Pro’ is closed to new topics and replies.