Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues with duplicate activity entries in BuddyBoss when adding a new job in WP Jobmanager, and the links for each language in the activity entries are incorrect, this is a known issue. The problem arises because when a job post is created and set as translatable in WPML, translated posts are automatically generated in all languages, leading to multiple activity posts.
Solution:
Currently, there is no direct workaround from our side as this issue requires adjustments in the BuddyBoss plugin. We recommend monitoring the BuddyBoss updates and checking the related known issues on our site. You can view the specific issue here: https://wpml.org/errata/buddyboss-posts-and-activities-not-filtered-by-language-on-feed-pages/.
Additionally, there is a client-suggested workaround that might help, but it could break pagination. You can find more details here: https://wpml.org/forums/topic/filter-by-language-does-not-work-for-activity-feed/page/2/#post-13969021.

If this solution does not apply to your case, or if it seems outdated, we highly recommend opening a new support ticket. Please also check related known issues (https://wpml.org/known-issues/), verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, you can contact us directly at the WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 12 replies, has 0 voices.

Last updated by ericH-23 6 days, 20 hours ago.

Assisted by: Dražen.

Author Posts
November 30, 2024 at 9:08 pm #16462327

ericH-23

Background of the issue:
I am working on a site under development and encountered an error while using WP Jobmanager with WPML.

Symptoms:
Adding a new job in WP Jobmanager creates duplicate activity entries in Buddyboss for every language, and the links are incorrect.

Questions:
How can I prevent duplicate activity entries in Buddyboss when adding a new job?
Why are the links incorrect for each language in the activity entries?

I contacted Buddyboss already:
I have a setting in which a job is added in a multilanguage site and is copied into the other languages automatically. This working well. But Buddyboss setting of adding an activity post by a new job post adds not the activity post with the main job listing, but also for every copy. Here also the link to the job is wrong, so this is something, which should be blocked. How can this be done, so how can an activity post of a job copy be blocked?

Buddyboss answered:
Upon further checking, it seems like this issue is coming from WPML. As I explained in my previous response, since you have enabled six languages in WPML and set your jobs as translatable, whenever a job post is created, translated posts are automatically generated in all languages.
This results in six activity posts being created, and the translated activities are not properly attached to the translated jobs. You may need to contact WPML support to resolve this issue. Once you hover over the activities, you can see the link generated, but when you open it, it redirects to the original post. Please reach out to WPML support to address this issue.

Can you check this please?
Thanks, kind regards
Eric

December 4, 2024 at 7:50 am #16474757

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

1)  In order to expedite handling your support requests, can you please share WPML support debug information from your site.

- To give debug information, login to your site and go to WPML → Support. From there click on the “debug information” link at the bottom of the page.
- Once on the “debug information” page, select the entire content of the text box and copy it.
- Now go back to our support forum, find debug information box and paste it.

More information on the link: https://wpml.org/faq/provide-debug-information-faster-support/

2) I am not sure I understand your issue, can you share steps and more info what happens and goes wrong, or a short video of your steps so we can see and understand it better?

Thanks,
Drazen

December 4, 2024 at 8:26 am #16474953

ericH-23

Hi,
Thanks for your message. I have disabled my functions.php and showed this in a simple try. The problem arises in the way:

1) add a job (WP Jobmanager), in the standard language EN
-> a buddyboss entry in the activities is made = ok

2) I did a duplicate/copy in the backend to show the job also in the other language, for example DE
- a further buddyboss entry is made in the activities (fore every language)

As a result you get with 7 languages 7 activities entries for the same one job, if this is done with automatically translation the link is not set right and it goes at all entries to the original job in EN.

So here it would be good to disable somehow activity entries of duplications/copies of jobs / other custom post types in the buddyboss system.

Thanks, kind regards
Eric

two activity entries.png
duplicate DE.png
December 4, 2024 at 8:48 am #16475074

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for getting back, it is more clear now.

Does this happen only for WP Job manager jobs, or for any other post type? Does the issue happen with only Buddyboss and WPML plugins, all other disabled?

I am trying to see if this is connected with the compatibility of buddyboss or WPJob manager, or to some other code.

Let me know.

Thanks,
Drazen

December 4, 2024 at 9:53 am #16475549

ericH-23

Hi,
Yes, I just made further test with the wordpress post and it is the same behavior. So this could be shown easily in a sandbox, I think, if you want.
Kind regards
Eric

December 4, 2024 at 10:10 am #16475665

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello Eric,

great, thanks for testing.

Yes, please let's replicate it on sandbox, and then I can easily escalate it.

I have prepared a sandbox site, let me know the steps to reproduce, or try to reproduce the issue there and share what you have done.

- hidden link

Thanks,
Drazen

December 4, 2024 at 8:15 pm #16478600

ericH-23

Hi,
OK,
1) I installed only the free version of buddyboss,
2) activated wordpress post entry in activities in the settings of buddyboss,
3) created a wordpress post and
4) made a duplication for German.

This results in two entries into the buddyboss activity feed, please see here: hidden link

So the proof is made that this behavior is the standard at the moment with all post types and should be improved, because it is too much to have a further activity entry for every duplication/copy of a post.

Thanks, kind regards
Eric

December 5, 2024 at 7:33 am #16479462

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello Eric,

thanks.

One thing, I have checked and I can see the issue also happens when the post is translated, it shows both EN and DE post in activity feed, so I actually think this is expected and not a bug with the duplication method, since the activity feed shows each post, and post in each language are created.

You can try it on the sandbox site, and let me know what do you think.

Regards,
Drazen

December 5, 2024 at 8:25 am #16479804

ericH-23

Hi Dražen,

Oh, yes, I missed that. I have in mind that a translated custom post type was shown only once, but in my own test I see the same, both, translation / duplication gives an entry for every language.

Theoretical I understand, that this behavior could be standard and is ok. But practical it is not, here are the reasons:

Standard in Buddyboss
- in Buddyboss activities are all other entries only one and are shown with translated strings in all languages, like a discussion entry for example (and all others like member has new photo, a new registration and so on, if this is activated)

Different behavor standard / second language
- a new post added in the standard language and the translations are set to automatically gives 7 entries in the activity stream, if you have 7 languages activated
- a new post added in a second language gives only 1 entry to the activivity stream
- therefore I added in functions.php the code for automatically duplication of a post in a second language and then here the same behavior as with the standard language occurs, 7 entries

False link
- see in the sandbox also: all language versions of a post activity entry has the link according to the language, means, in German the EN and DE entry lead to the DE entry

Summary:
- false link: could be a hint that the entries for every language are not standard
- in Buddyboss all other entries are only once and shown with translates string in other languages
- in my eyes it makes no sence that the user has activity entries for every language, because they choose the language in the browser and want to see only entries of this language

So my message getting longer and longer but I would like to convince you, that here only one entry should be made, only the one of the current language should be shown.

Thanks, kind regards
Eric

December 5, 2024 at 8:50 am #16480027

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello Eric,

I checked further, and you are correct, it should not show both language feeds on EN page.

I did some investigation, and it seems this is a known issue and has already been reported to us.

For now, we do not have a workaround, as it requires an adjustment in the BuddyBoss plugin, not much we can do from our side.

- https://wpml.org/errata/buddyboss-posts-and-activities-not-filtered-by-language-on-feed-pages/

The best I can suggest is to monitor their updates and errata shared.

Regards,
Drazen

December 5, 2024 at 9:01 am #16480141

ericH-23

Hi,
oh, I see.

I have had already a ticket at Buddyboss and they said, that I have to address it to WPML. Now I reactivate that ticket at Buddyboss and hope, that they respond in a positive way.

Thanks, kind regards
Eric

December 5, 2024 at 9:10 am #16480217

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

sure, if there is anything else we can do to help, let us know.

You can try the next workaround from the client, but it is not ideal it breaks pagination:

https://wpml.org/forums/topic/filter-by-language-does-not-work-for-activity-feed/page/2/#post-13969021

Regards,
Drazen

December 5, 2024 at 1:44 pm #16481859

ericH-23

Hi,
Ok, thanks, I can try this, do you an idea what it means, that the pagination is breaked? I have Load more button and it stucks after about 3 times showing more content, is this ment?
Thanks, kind regards
Eric

December 5, 2024 at 5:03 pm #16483093

ericH-23

Hi,
We could adjust the code regarding the paging and now it works! The code snippet was a great help! Thanks for this info and your good help!
Kind regards